first commit
This commit is contained in:
11
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/.gitignore
vendored
Executable file
11
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/.gitignore
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
# A sample .gitignore file.
|
||||
|
||||
.buildlog
|
||||
.DS_Store
|
||||
.svn
|
||||
|
||||
# Negated patterns:
|
||||
!foo.bar
|
||||
|
||||
# Also ignore user settings...
|
||||
/.settings
|
53
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/Dockerfile
Executable file
53
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/Dockerfile
Executable file
@@ -0,0 +1,53 @@
|
||||
#
|
||||
# example Dockerfile for http://docs.docker.io/en/latest/examples/postgresql_service/
|
||||
#
|
||||
|
||||
FROM ubuntu
|
||||
MAINTAINER SvenDowideit@docker.com
|
||||
|
||||
# Add the PostgreSQL PGP key to verify their Debian packages.
|
||||
# It should be the same key as https://www.postgresql.org/media/keys/ACCC4CF8.asc
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
|
||||
|
||||
# Add PostgreSQL's repository. It contains the most recent stable release
|
||||
# of PostgreSQL, ``9.3``.
|
||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
|
||||
|
||||
# Update the Ubuntu and PostgreSQL repository indexes
|
||||
RUN apt-get update
|
||||
|
||||
# Install ``python-software-properties``, ``software-properties-common`` and PostgreSQL 9.3
|
||||
# There are some warnings (in red) that show up during the build. You can hide
|
||||
# them by prefixing each apt-get statement with DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get -y -q install python-software-properties software-properties-common
|
||||
RUN apt-get -y -q install postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3
|
||||
|
||||
# Note: The official Debian and Ubuntu images automatically ``apt-get clean``
|
||||
# after each ``apt-get``
|
||||
|
||||
# Run the rest of the commands as the ``postgres`` user created by the ``postgres-9.3`` package when it was ``apt-get installed``
|
||||
USER postgres
|
||||
|
||||
# Create a PostgreSQL role named ``docker`` with ``docker`` as the password and
|
||||
# then create a database `docker` owned by the ``docker`` role.
|
||||
# Note: here we use ``&&\`` to run commands one after the other - the ``\``
|
||||
# allows the RUN command to span multiple lines.
|
||||
RUN /etc/init.d/postgresql start &&\
|
||||
psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" &&\
|
||||
createdb -O docker docker
|
||||
|
||||
# Adjust PostgreSQL configuration so that remote connections to the
|
||||
# database are possible.
|
||||
RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.3/main/pg_hba.conf
|
||||
|
||||
# And add ``listen_addresses`` to ``/etc/postgresql/9.3/main/postgresql.conf``
|
||||
RUN echo "listen_addresses='*'" >> /etc/postgresql/9.3/main/postgresql.conf
|
||||
|
||||
# Expose the PostgreSQL port
|
||||
EXPOSE 5432
|
||||
|
||||
# Add VOLUMEs to allow backup of config, logs and databases
|
||||
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]
|
||||
|
||||
# Set the default command to run when starting the container
|
||||
CMD ["/usr/lib/postgresql/9.3/bin/postgres", "-D", "/var/lib/postgresql/9.3/main", "-c", "config_file=/etc/postgresql/9.3/main/postgresql.conf"]
|
17
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/Haxe.hx
Executable file
17
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/Haxe.hx
Executable file
@@ -0,0 +1,17 @@
|
||||
class Haxe
|
||||
{
|
||||
public static function main()
|
||||
{
|
||||
// Say Hello!
|
||||
var greeting:String = "Hello World";
|
||||
trace(greeting);
|
||||
|
||||
var targets:Array<String> = ["Flash","Javascript","PHP","Neko","C++","iOS","Android","webOS"];
|
||||
trace("Haxe is a great language that can target:");
|
||||
for (target in targets)
|
||||
{
|
||||
trace (" - " + target);
|
||||
}
|
||||
trace("And many more!");
|
||||
}
|
||||
}
|
247
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/Jack.jack
Executable file
247
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/Jack.jack
Executable file
@@ -0,0 +1,247 @@
|
||||
vars it, p
|
||||
|
||||
p = {label, value|
|
||||
print("\n" + label)
|
||||
print(inspect(value))
|
||||
}
|
||||
-- Create an array from 0 to 15
|
||||
p("range", i-collect(range(5)))
|
||||
|
||||
-- Create an array from 0 to 15 and break up in chunks of 4
|
||||
p("chunked range", i-collect(i-chunk(4, range(16))))
|
||||
|
||||
-- Check if all or none items in stream pass test.
|
||||
p("all < 60 in range(60)", i-all?({i|i<60}, range(60)))
|
||||
p("any < 60 in range(60)", i-any?({i|i>60}, range(60)))
|
||||
p("all < 60 in range(70)", i-all?({i|i<60}, range(70)))
|
||||
p("any < 60 in range(70)", i-any?({i|i>60}, range(70)))
|
||||
|
||||
-- Zip three different collections together
|
||||
p("zipped", i-collect(i-zip(
|
||||
range(10),
|
||||
[1,2,3,4,5],
|
||||
i-map({i|i*i}, range(10))
|
||||
)))
|
||||
|
||||
vars names, person, i, doubles, lengths, cubeRange
|
||||
names = ["Thorin", "Dwalin", "Balin", "Bifur", "Bofur", "Bombur", "Oin",
|
||||
"Gloin", "Ori", "Nori", "Dori", "Fili", "Kili", "Bilbo", "Gandalf"]
|
||||
|
||||
for name in names {
|
||||
if name != "Bilbo" && name != "Gandalf" {
|
||||
print(name)
|
||||
}
|
||||
}
|
||||
|
||||
person = {name: "Tim", age: 30}
|
||||
for key, value in person {
|
||||
print(key + " = " + value)
|
||||
}
|
||||
|
||||
i = 0
|
||||
while i < 10 {
|
||||
i = i + 1
|
||||
print(i)
|
||||
}
|
||||
|
||||
print("range")
|
||||
for i in range(10) {
|
||||
print(i + 1)
|
||||
}
|
||||
for i in range(10) {
|
||||
print(10 - i)
|
||||
}
|
||||
|
||||
-- Dynamic object that gives the first 10 doubles
|
||||
doubles = {
|
||||
@len: {| 10 }
|
||||
@get: {key|
|
||||
if key is Integer { key * key }
|
||||
}
|
||||
}
|
||||
print("#doubles", #doubles)
|
||||
|
||||
print("Doubles")
|
||||
for k, v in doubles {
|
||||
print([k, v])
|
||||
}
|
||||
|
||||
-- Dynamic object that has names list as keys and string lenth as values
|
||||
lengths = {
|
||||
@keys: {| names }
|
||||
@get: {key|
|
||||
if key is String { #key }
|
||||
}
|
||||
}
|
||||
|
||||
print ("Lengths")
|
||||
for k, v in lengths {
|
||||
print([k, v])
|
||||
}
|
||||
|
||||
|
||||
cubeRange = {n|
|
||||
vars i, v
|
||||
i = 0
|
||||
{
|
||||
@call: {|
|
||||
v = i
|
||||
i = i + 1
|
||||
if v < n { v * v * v }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
print("Cubes")
|
||||
for k, v in cubeRange(5) {
|
||||
print([k, v])
|
||||
}
|
||||
print("String")
|
||||
for k, v in "Hello World" {
|
||||
print([k, v])
|
||||
}
|
||||
|
||||
|
||||
print([i for i in range(10)])
|
||||
print([i for i in range(20) if i % 3])
|
||||
|
||||
|
||||
|
||||
-- Example showing how to do parallel work using split..and
|
||||
base = {bootstrap, target-dir|
|
||||
split {
|
||||
copy("res", target-dir)
|
||||
} and {
|
||||
if newer("src/*.less", target-dir + "/style.css") {
|
||||
lessc("src/" + bootstrap + ".less", target-dir + "/style.css")
|
||||
}
|
||||
} and {
|
||||
build("src/" + bootstrap + ".js", target-dir + "/app.js")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
vars Dragon, pet
|
||||
|
||||
Dragon = {name|
|
||||
vars asleep, stuff-in-belly, stuff-in-intestine,
|
||||
feed, walk, put-to-bed, toss, rock,
|
||||
hungry?, poopy?, passage-of-time
|
||||
|
||||
asleep = false
|
||||
stuff-in-belly = 10 -- He's full.
|
||||
stuff-in-intestine = 0 -- He doesn't need to go.
|
||||
|
||||
print(name + ' is born.')
|
||||
|
||||
feed = {|
|
||||
print('You feed ' + name + '.')
|
||||
stuff-in-belly = 10
|
||||
passage-of-time()
|
||||
}
|
||||
|
||||
walk = {|
|
||||
print('You walk ' + name + ".")
|
||||
stuff-in-intestine = 0
|
||||
passage-of-time
|
||||
}
|
||||
|
||||
put-to-bed = {|
|
||||
print('You put ' + name + ' to bed.')
|
||||
asleep = true
|
||||
for i in range(3) {
|
||||
if asleep {
|
||||
passage-of-time()
|
||||
}
|
||||
if asleep {
|
||||
print(name + ' snores, filling the room with smoke.')
|
||||
}
|
||||
}
|
||||
if asleep {
|
||||
asleep = false
|
||||
print(name + ' wakes up slowly.')
|
||||
}
|
||||
}
|
||||
|
||||
toss = {|
|
||||
print('You toss ' + name + ' up into the air.')
|
||||
print('He giggles, which singes your eyebrows.')
|
||||
passage-of-time()
|
||||
}
|
||||
|
||||
rock = {|
|
||||
print('You rock ' + name + ' gently.')
|
||||
asleep = true
|
||||
print('He briefly dozes off...')
|
||||
passage-of-time()
|
||||
if asleep {
|
||||
asleep = false
|
||||
print('...but wakes when you stop.')
|
||||
}
|
||||
}
|
||||
|
||||
hungry? = {|
|
||||
stuff-in-belly <= 2
|
||||
}
|
||||
|
||||
poopy? = {|
|
||||
stuff-in-intestine >= 8
|
||||
}
|
||||
|
||||
passage-of-time = {|
|
||||
if stuff-in-belly > 0 {
|
||||
-- Move food from belly to intestine
|
||||
stuff-in-belly = stuff-in-belly - 1
|
||||
stuff-in-intestine = stuff-in-intestine + 1
|
||||
} else { -- Our dragon is starving!
|
||||
if asleep {
|
||||
asleep = false
|
||||
print('He wakes up suddenly!')
|
||||
}
|
||||
print(name + ' is starving! In desperation, he ate YOU!')
|
||||
abort "died"
|
||||
}
|
||||
|
||||
if stuff-in-intestine >= 10 {
|
||||
stuff-in-intestine = 0
|
||||
print('Whoops! ' + name + ' had an accident...')
|
||||
}
|
||||
|
||||
if hungry?() {
|
||||
if asleep {
|
||||
asleep = false
|
||||
print('He wakes up suddenly!')
|
||||
}
|
||||
print(name + "'s stomach grumbles...")
|
||||
}
|
||||
|
||||
if poopy?() {
|
||||
if asleep {
|
||||
asleep = false
|
||||
print('He wakes up suddenly!')
|
||||
}
|
||||
print(name + ' does the potty dance...')
|
||||
}
|
||||
}
|
||||
|
||||
-- Export the public interface to this closure object.
|
||||
{
|
||||
feed: feed
|
||||
walk: walk
|
||||
put-to-bed: put-to-bed
|
||||
toss: toss
|
||||
rock: rock
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
pet = Dragon('Norbert')
|
||||
pet.feed()
|
||||
pet.toss()
|
||||
pet.walk()
|
||||
pet.put-to-bed()
|
||||
pet.rock()
|
||||
pet.put-to-bed()
|
||||
pet.put-to-bed()
|
||||
pet.put-to-bed()
|
||||
pet.put-to-bed()
|
122
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/Makefile
Executable file
122
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/Makefile
Executable file
@@ -0,0 +1,122 @@
|
||||
.PHONY: apf ext worker mode theme package test
|
||||
|
||||
default: apf worker
|
||||
|
||||
update: worker
|
||||
|
||||
# packages apf
|
||||
|
||||
# This is the first line of a comment \
|
||||
and this is still part of the comment \
|
||||
as is this, since I keep ending each line \
|
||||
with a backslash character
|
||||
|
||||
apf:
|
||||
cd node_modules/packager; node package.js projects/apf_cloud9.apr
|
||||
cd node_modules/packager; cat build/apf_release.js | sed 's/\(\/\*FILEHEAD(\).*//g' > ../../plugins-client/lib.apf/www/apf-packaged/apf_release.js
|
||||
|
||||
# package debug version of apf
|
||||
apfdebug:
|
||||
cd node_modules/packager/projects; cat apf_cloud9.apr | sed 's/<p:define name=\"__DEBUG\" value=\"0\" \/>/<p:define name=\"__DEBUG\" value=\"1\" \/>/g' > apf_cloud9_debug2.apr
|
||||
cd node_modules/packager/projects; cat apf_cloud9_debug2.apr | sed 's/apf_release/apf_debug/g' > apf_cloud9_debug.apr; rm apf_cloud9_debug2.apr
|
||||
cd node_modules/packager; node package.js projects/apf_cloud9_debug.apr
|
||||
cd node_modules/packager; cat build/apf_debug.js | sed 's/\(\/\*FILEHEAD(\).*\/apf\/\(.*\)/\1\2/g' > ../../plugins-client/lib.apf/www/apf-packaged/apf_debug.js
|
||||
|
||||
# package_apf--temporary fix for non-workering infra
|
||||
pack_apf:
|
||||
mkdir -p build/src
|
||||
mv plugins-client/lib.apf/www/apf-packaged/apf_release.js build/src/apf_release.js
|
||||
node build/r.js -o name=./build/src/apf_release.js out=./plugins-client/lib.apf/www/apf-packaged/apf_release.js baseUrl=.
|
||||
|
||||
# makes ace; at the moment, requires dryice@0.4.2
|
||||
ace:
|
||||
cd node_modules/ace; make clean pre_build; ./Makefile.dryice.js minimal
|
||||
|
||||
|
||||
# packages core
|
||||
core: ace
|
||||
mkdir -p build/src
|
||||
node build/r.js -o build/core.build.js
|
||||
|
||||
# generates packed template
|
||||
helper:
|
||||
node build/packed_helper.js
|
||||
|
||||
helper_clean:
|
||||
mkdir -p build/src
|
||||
node build/packed_helper.js 1
|
||||
|
||||
# packages ext
|
||||
ext:
|
||||
node build/r.js -o build/app.build.js
|
||||
|
||||
# calls dryice on worker & packages it
|
||||
worker: plugins-client/lib.ace/www/worker/worker-language.js
|
||||
|
||||
plugins-client/lib.ace/www/worker/worker-language.js plugins-client/lib.ace/www/worker/worker-javascript.js : \
|
||||
$(wildcard node_modules/ace/*) $(wildcard node_modules/ace/*/*) $(wildcard node_modules/ace/*/*/mode/*) \
|
||||
$(wildcard plugins-client/ext.language/*) \
|
||||
$(wildcard plugins-client/ext.language/*/*) \
|
||||
$(wildcard plugins-client/ext.linereport/*) \
|
||||
$(wildcard plugins-client/ext.codecomplete/*) \
|
||||
$(wildcard plugins-client/ext.codecomplete/*/*) \
|
||||
$(wildcard plugins-client/ext.jslanguage/*) \
|
||||
$(wildcard plugins-client/ext.jslanguage/*/*) \
|
||||
$(wildcard plugins-client/ext.csslanguage/*) \
|
||||
$(wildcard plugins-client/ext.csslanguage/*/*) \
|
||||
$(wildcard plugins-client/ext.htmllanguage/*) \
|
||||
$(wildcard plugins-client/ext.htmllanguage/*/*) \
|
||||
$(wildcard plugins-client/ext.jsinfer/*) \
|
||||
$(wildcard plugins-client/ext.jsinfer/*/*) \
|
||||
$(wildcard node_modules/treehugger/lib/*) \
|
||||
$(wildcard node_modules/treehugger/lib/*/*) \
|
||||
$(wildcard node_modules/ace/lib/*) \
|
||||
$(wildcard node_modules/ace/*/*) \
|
||||
Makefile.dryice.js
|
||||
mkdir -p plugins-client/lib.ace/www/worker
|
||||
rm -rf /tmp/c9_worker_build
|
||||
mkdir -p /tmp/c9_worker_build/ext
|
||||
ln -s `pwd`/plugins-client/ext.language /tmp/c9_worker_build/ext/language
|
||||
ln -s `pwd`/plugins-client/ext.codecomplete /tmp/c9_worker_build/ext/codecomplete
|
||||
ln -s `pwd`/plugins-client/ext.jslanguage /tmp/c9_worker_build/ext/jslanguage
|
||||
ln -s `pwd`/plugins-client/ext.csslanguage /tmp/c9_worker_build/ext/csslanguage
|
||||
ln -s `pwd`/plugins-client/ext.htmllanguage /tmp/c9_worker_build/ext/htmllanguage
|
||||
ln -s `pwd`/plugins-client/ext.linereport /tmp/c9_worker_build/ext/linereport
|
||||
ln -s `pwd`/plugins-client/ext.linereport_php /tmp/c9_worker_build/ext/linereport_php
|
||||
node Makefile.dryice.js worker
|
||||
cp node_modules/ace/build/src/worker* plugins-client/lib.ace/www/worker
|
||||
|
||||
define
|
||||
|
||||
ifeq
|
||||
|
||||
override
|
||||
|
||||
# copies built ace modes
|
||||
mode:
|
||||
mkdir -p plugins-client/lib.ace/www/mode
|
||||
cp `find node_modules/ace/build/src | grep -E "mode-[a-zA-Z_0-9]+.js"` plugins-client/lib.ace/www/mode
|
||||
|
||||
# copies built ace themes
|
||||
theme:
|
||||
mkdir -p plugins-client/lib.ace/www/theme
|
||||
cp `find node_modules/ace/build/src | grep -E "theme-[a-zA-Z_0-9]+.js"` plugins-client/lib.ace/www/theme
|
||||
|
||||
gzip_safe:
|
||||
for i in `ls ./plugins-client/lib.packed/www/*.js`; do \
|
||||
gzip -9 -v -c -q -f $$i > $$i.gz ; \
|
||||
done
|
||||
|
||||
gzip:
|
||||
for i in `ls ./plugins-client/lib.packed/www/*.js`; do \
|
||||
gzip -9 -v -q -f $$i ; \
|
||||
done
|
||||
|
||||
c9core: apf ace core worker mode theme
|
||||
|
||||
package_clean: helper_clean c9core ext
|
||||
|
||||
package: helper c9core ext
|
||||
|
||||
test check:
|
||||
test/run-tests.sh
|
57
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/Nix.nix
Executable file
57
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/Nix.nix
Executable file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
# Name of our deployment
|
||||
network.description = "HelloWorld";
|
||||
# Enable rolling back to previous versions of our infrastructure
|
||||
network.enableRollback = true;
|
||||
|
||||
# It consists of a single server named 'helloserver'
|
||||
helloserver =
|
||||
# Every server gets passed a few arguments, including a reference
|
||||
# to nixpkgs (pkgs)
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
# We import our custom packages from ./default passing pkgs as argument
|
||||
packages = import ./default.nix { pkgs = pkgs; };
|
||||
# This is the nodejs version specified in default.nix
|
||||
nodejs = packages.nodejs;
|
||||
# And this is the application we'd like to deploy
|
||||
app = packages.app;
|
||||
in
|
||||
{
|
||||
# We'll be running our application on port 8080, because a regular
|
||||
# user cannot bind to port 80
|
||||
# Then, using some iptables magic we'll forward traffic designated to port 80 to 8080
|
||||
networking.firewall.enable = true;
|
||||
# We will open up port 22 (SSH) as well otherwise we're locking ourselves out
|
||||
networking.firewall.allowedTCPPorts = [ 80 8080 22 ];
|
||||
networking.firewall.allowPing = true;
|
||||
|
||||
# Port forwarding using iptables
|
||||
networking.firewall.extraCommands = ''
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
|
||||
'';
|
||||
|
||||
# To run our node.js program we're going to use a systemd service
|
||||
# We can configure the service to automatically start on boot and to restart
|
||||
# the process in case it crashes
|
||||
systemd.services.helloserver = {
|
||||
description = "Hello world application";
|
||||
# Start the service after the network is available
|
||||
after = [ "network.target" ];
|
||||
# We're going to run it on port 8080 in production
|
||||
environment = { PORT = "8080"; };
|
||||
serviceConfig = {
|
||||
# The actual command to run
|
||||
ExecStart = "${nodejs}/bin/node ${app}/server.js";
|
||||
# For security reasons we'll run this process as a special 'nodejs' user
|
||||
User = "nodejs";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
|
||||
# And lastly we ensure the user we run our application as is created
|
||||
users.extraUsers = {
|
||||
nodejs = { };
|
||||
};
|
||||
};
|
||||
}
|
41
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/abap.abap
Executable file
41
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/abap.abap
Executable file
@@ -0,0 +1,41 @@
|
||||
***************************************
|
||||
** Program: EXAMPLE **
|
||||
** Author: Joe Byte, 07-Jul-2007 **
|
||||
***************************************
|
||||
|
||||
REPORT BOOKINGS.
|
||||
|
||||
* Read flight bookings from the database
|
||||
SELECT * FROM FLIGHTINFO
|
||||
WHERE CLASS = 'Y' "Y = economy
|
||||
OR CLASS = 'C'. "C = business
|
||||
(...)
|
||||
|
||||
REPORT TEST.
|
||||
WRITE 'Hello World'.
|
||||
|
||||
USERPROMPT = 'Please double-click on a line in the output list ' &
|
||||
'to see the complete details of the transaction.'.
|
||||
|
||||
|
||||
DATA LAST_EOM TYPE D. "last end-of-month date
|
||||
|
||||
* Start from today's date
|
||||
LAST_EOM = SY-DATUM.
|
||||
* Set characters 6 and 7 (0-relative) of the YYYYMMDD string to "01",
|
||||
* giving the first day of the current month
|
||||
LAST_EOM+6(2) = '01'.
|
||||
* Subtract one day
|
||||
LAST_EOM = LAST_EOM - 1.
|
||||
|
||||
WRITE: 'Last day of previous month was', LAST_EOM.
|
||||
|
||||
DATA : BEGIN OF I_VBRK OCCURS 0,
|
||||
VBELN LIKE VBRK-VBELN,
|
||||
ZUONR LIKE VBRK-ZUONR,
|
||||
END OF I_VBRK.
|
||||
|
||||
SORT i_vbrk BY vbeln ASCENDING.
|
||||
SORT i_vbrk BY vbeln DESCENDING.
|
||||
|
||||
RETURN.
|
171
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/abc.abc
Executable file
171
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/abc.abc
Executable file
@@ -0,0 +1,171 @@
|
||||
%abc-2.1
|
||||
H:This file contains some example English tunes
|
||||
% note that the comments (like this one) are to highlight usages
|
||||
% and would not normally be included in such detail
|
||||
O:England % the origin of all tunes is England
|
||||
|
||||
X:1 % tune no 1
|
||||
T:Dusty Miller, The % title
|
||||
T:Binny's Jig % an alternative title
|
||||
C:Trad. % traditional
|
||||
R:DH % double hornpipe
|
||||
M:3/4 % meter
|
||||
K:G % key
|
||||
B>cd BAG|FA Ac BA|B>cd BAG|DG GB AG:|
|
||||
Bdd gfg|aA Ac BA|Bdd gfa|gG GB AG:|
|
||||
BG G/2G/2G BG|FA Ac BA|BG G/2G/2G BG|DG GB AG:|
|
||||
W:Hey, the dusty miller, and his dusty coat;
|
||||
W:He will win a shilling, or he spend a groat.
|
||||
W:Dusty was the coat, dusty was the colour;
|
||||
W:Dusty was the kiss, that I got frae the miller.
|
||||
|
||||
X:2
|
||||
T:Old Sir Simon the King
|
||||
C:Trad.
|
||||
S:Offord MSS % from Offord manuscript
|
||||
N:see also Playford % reference note
|
||||
M:9/8
|
||||
R:SJ % slip jig
|
||||
N:originally in C % transcription note
|
||||
K:G
|
||||
D|GFG GAG G2D|GFG GAG F2D|EFE EFE EFG|A2G F2E D2:|
|
||||
D|GAG GAB d2D|GAG GAB c2D|[1 EFE EFE EFG|[A2G] F2E D2:|\ % no line-break in score
|
||||
M:12/8 % change of meter
|
||||
[2 E2E EFE E2E EFG|\ % no line-break in score
|
||||
M:9/8 % change of meter
|
||||
A2G F2E D2|]
|
||||
|
||||
X:3
|
||||
T:William and Nancy
|
||||
T:New Mown Hay
|
||||
T:Legacy, The
|
||||
C:Trad.
|
||||
O:England; Gloucs; Bledington % place of origin
|
||||
B:Sussex Tune Book % can be found in these books
|
||||
B:Mally's Cotswold Morris vol.1 2
|
||||
D:Morris On % can be heard on this record
|
||||
P:(AB)2(AC)2A % play the parts in this order
|
||||
M:6/8
|
||||
K:G
|
||||
[P:A] D|"G"G2G GBd|"C"e2e "G"dBG|"D7"A2d "G"BAG|"C"E2"D7"F "G"G2:|
|
||||
[P:B] d|"G"e2d B2d|"C"gfe "G"d2d| "G"e2d B2d|"C"gfe "D7"d2c|
|
||||
"G"B2B Bcd|"C"e2e "G"dBG|"D7"A2d "G"BAG|"C"E2"D7"F "G"G2:|
|
||||
% changes of meter, using inline fields
|
||||
[T:Slows][M:4/4][L:1/4][P:C]"G"d2|"C"e2 "G"d2|B2 d2|"Em"gf "A7"e2|"D7"d2 "G"d2|\
|
||||
"C"e2 "G"d2|[M:3/8][L:1/8] "G"B2 d |[M:6/8] "C"gfe "D7"d2c|
|
||||
"G"B2B Bcd|"C"e2e "G"dBG|"D7"A2d "G"BAG|"C"E2"D7"F "G"G2:|
|
||||
|
||||
X:4
|
||||
T:South Downs Jig
|
||||
R:jig
|
||||
S:Robert Harbron
|
||||
M:6/8
|
||||
L:1/8
|
||||
K:G
|
||||
|: d | dcA G3 | EFG AFE | DEF GAB | cde d2d |
|
||||
dcA G3 | EFG AFE | DEF GAB | cAF G2 :|
|
||||
B | Bcd e2c | d2B c2A | Bcd e2c | [M:9/8]d2B c2B A3 |
|
||||
[M:6/8]DGF E3 | cBA FED | DEF GAB |1 cAF G2 :|2 cAF G3 |]
|
||||
|
||||
X:5
|
||||
T:Atholl Brose
|
||||
% in this example, which reproduces Highland Bagpipe gracing,
|
||||
% the large number of grace notes mean that it is more convenient to be specific about
|
||||
% score line-breaks (using the $ symbol), rather than using code line breaks to indicate them
|
||||
I:linebreak $
|
||||
K:D
|
||||
{gcd}c<{e}A {gAGAG}A2 {gef}e>A {gAGAG}Ad|
|
||||
{gcd}c<{e}A {gAGAG}A>e {ag}a>f {gef}e>d|
|
||||
{gcd}c<{e}A {gAGAG}A2 {gef}e>A {gAGAG}Ad|
|
||||
{g}c/d/e {g}G>{d}B {gf}gG {dc}d>B:|$
|
||||
{g}c<e {gf}g>e {ag}a>e {gf}g>e|
|
||||
{g}c<e {gf}g>e {ag}a2 {GdG}a>d|
|
||||
{g}c<e {gf}g>e {ag}a>e {gf}g>f|
|
||||
{gef}e>d {gf}g>d {gBd}B<{e}G {dc}d>B|
|
||||
{g}c<e {gf}g>e {ag}a>e {gf}g>e|
|
||||
{g}c<e {gf}g>e {ag}a2 {GdG}ad|
|
||||
{g}c<{GdG}e {gf}ga {f}g>e {g}f>d|
|
||||
{g}e/f/g {Gdc}d>c {gBd}B<{e}G {dc}d2|]
|
||||
|
||||
X:6
|
||||
T:Untitled Reel
|
||||
C:Trad.
|
||||
K:D
|
||||
eg|a2ab ageg|agbg agef|g2g2 fgag|f2d2 d2:|\
|
||||
ed|cecA B2ed|cAcA E2ed|cecA B2ed|c2A2 A2:|
|
||||
K:G
|
||||
AB|cdec BcdB|ABAF GFE2|cdec BcdB|c2A2 A2:|
|
||||
|
||||
X:7
|
||||
T:Kitchen Girl
|
||||
C:Trad.
|
||||
K:D
|
||||
[c4a4] [B4g4]|efed c2cd|e2f2 gaba|g2e2 e2fg|
|
||||
a4 g4|efed cdef|g2d2 efed|c2A2 A4:|
|
||||
K:G
|
||||
ABcA BAGB|ABAG EDEG|A2AB c2d2|e3f edcB|ABcA BAGB|
|
||||
ABAG EGAB|cBAc BAG2|A4 A4:|
|
||||
|
||||
%abc-2.1
|
||||
%%pagewidth 21cm
|
||||
%%pageheight 29.7cm
|
||||
%%topspace 0.5cm
|
||||
%%topmargin 1cm
|
||||
%%botmargin 0cm
|
||||
%%leftmargin 1cm
|
||||
%%rightmargin 1cm
|
||||
%%titlespace 0cm
|
||||
%%titlefont Times-Bold 32
|
||||
%%subtitlefont Times-Bold 24
|
||||
%%composerfont Times 16
|
||||
%%vocalfont Times-Roman 14
|
||||
%%staffsep 60pt
|
||||
%%sysstaffsep 20pt
|
||||
%%musicspace 1cm
|
||||
%%vocalspace 5pt
|
||||
%%measurenb 0
|
||||
%%barsperstaff 5
|
||||
%%scale 0.7
|
||||
X: 1
|
||||
T: Canzonetta a tre voci
|
||||
C: Claudio Monteverdi (1567-1643)
|
||||
M: C
|
||||
L: 1/4
|
||||
Q: "Andante mosso" 1/4 = 110
|
||||
%%score [1 2 3]
|
||||
V: 1 clef=treble name="Soprano"sname="A"
|
||||
V: 2 clef=treble name="Alto" sname="T"
|
||||
V: 3 clef=bass middle=d name="Tenor" sname="B"
|
||||
%%MIDI program 1 75 % recorder
|
||||
%%MIDI program 2 75
|
||||
%%MIDI program 3 75
|
||||
K: Eb
|
||||
% 1 - 4
|
||||
[V: 1] |:z4 |z4 |f2ec |_ddcc |
|
||||
w: Son que-sti~i cre-spi cri-ni~e
|
||||
w: Que-sti son gli~oc-chi che mi-
|
||||
[V: 2] |:c2BG|AAGc|(F/G/A/B/)c=A|B2AA |
|
||||
w: Son que-sti~i cre-spi cri-ni~e que - - - - sto~il vi-so e
|
||||
w: Que-sti son~gli oc-chi che mi-ran - - - - do fi-so mi-
|
||||
[V: 3] |:z4 |f2ec|_ddcf |(B/c/_d/e/)ff|
|
||||
w: Son que-sti~i cre-spi cri-ni~e que - - - - sto~il
|
||||
w: Que-sti son~gli oc-chi che mi-ran - - - - do
|
||||
% 5 - 9
|
||||
[V: 1] cAB2 |cAAA |c3B|G2!fermata!Gz ::e4|
|
||||
w: que-sto~il vi-so ond' io ri-man-go~uc-ci-so. Deh,
|
||||
w: ran-do fi-so, tut-to re-stai con-qui-so.
|
||||
[V: 2] AAG2 |AFFF |A3F|=E2!fermata!Ez::c4|
|
||||
w: que-sto~il vi-so ond' io ri-man-go~uc-ci-so. Deh,
|
||||
w: ran-do fi-so tut-to re-stai con-qui-so.
|
||||
[V: 3] (ag/f/e2)|A_ddd|A3B|c2!fermata!cz ::A4|
|
||||
w: vi - - - so ond' io ti-man-go~uc-ci-so. Deh,
|
||||
w: fi - - - so tut-to re-stai con-qui-so.
|
||||
% 10 - 15
|
||||
[V: 1] f_dec |B2c2|zAGF |\
|
||||
w: dim-me-lo ben mi-o, che que-sto\
|
||||
=EFG2 |1F2z2:|2F8|] % more notes
|
||||
w: sol de-si-o_. % more lyrics
|
||||
[V: 2] ABGA |G2AA|GF=EF |(GF3/2=E//D//E)|1F2z2:|2F8|]
|
||||
w: dim-me-lo ben mi-o, che que-sto sol de-si - - - - o_.
|
||||
[V: 3] _dBc>d|e2AF|=EFc_d|c4 |1F2z2:|2F8|]
|
||||
w: dim-me-lo ben mi-o, che que-sto sol de-si-o_.
|
@@ -0,0 +1,51 @@
|
||||
package code
|
||||
{
|
||||
/*****************************************
|
||||
* based on textmate actionscript bundle
|
||||
****************************************/
|
||||
|
||||
import fl.events.SliderEvent;
|
||||
|
||||
public class Foo extends MovieClip
|
||||
{
|
||||
//*************************
|
||||
// Properties:
|
||||
|
||||
public var activeSwatch:MovieClip;
|
||||
|
||||
// Color offsets
|
||||
public var c1:Number = 0; // R
|
||||
|
||||
//*************************
|
||||
// Constructor:
|
||||
|
||||
public function Foo()
|
||||
{
|
||||
// Respond to mouse events
|
||||
swatch1_btn.addEventListener(MouseEvent.CLICK,swatchHandler,false,0,false);
|
||||
previewBox_btn.addEventListener(MouseEvent.MOUSE_DOWN,dragPressHandler);
|
||||
|
||||
// Respond to drag events
|
||||
red_slider.addEventListener(SliderEvent.THUMB_DRAG,sliderHandler);
|
||||
|
||||
// Draw a frame later
|
||||
addEventListener(Event.ENTER_FRAME,draw);
|
||||
}
|
||||
|
||||
protected function clickHandler(event:MouseEvent):void
|
||||
{
|
||||
car.transform.colorTransform = new ColorTransform(0,0,0,1,c1,c2,c3);
|
||||
}
|
||||
|
||||
protected function changeRGBHandler(event:Event):void
|
||||
{
|
||||
c1 = Number(c1_txt.text);
|
||||
|
||||
if(!(c1>=0)){
|
||||
c1 = 0;
|
||||
}
|
||||
|
||||
updateSliders();
|
||||
}
|
||||
}
|
||||
}
|
5
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/ada.ada
Executable file
5
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/ada.ada
Executable file
@@ -0,0 +1,5 @@
|
||||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
procedure Hello is
|
||||
begin
|
||||
Put_Line("Hello, world!");
|
||||
end Hello;
|
@@ -0,0 +1,9 @@
|
||||
# Example taken from https://github.com/alda-lang/alda-core/blob/master/examples/across_the_sea.alda
|
||||
(tempo! 90)
|
||||
(quant! 95)
|
||||
|
||||
piano:
|
||||
o5 g- > g- g-/f > e- d-4. < b-8 d-2 | c-4 e- d- d- <b-1/>g-
|
||||
|
||||
flute:
|
||||
r2 g-4 a- b-2. > d-32~ e-16.~8 < b-2 a- g-1
|
44
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/apex.apex
Executable file
44
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/apex.apex
Executable file
@@ -0,0 +1,44 @@
|
||||
public class testBlockDuplicatesLeadTrigger {
|
||||
|
||||
static testMethod void testDuplicateTrigger(){
|
||||
|
||||
Lead[] l1 =new Lead[]{
|
||||
new Lead( Email='homer@fox.tv', LastName='Simpson', Company='fox' )
|
||||
};
|
||||
insert l1; // add a known lead
|
||||
|
||||
Lead[] l2 =new Lead[]{
|
||||
new Lead( Email='homer@fox.tv', LastName='Simpson', Company='fox' )
|
||||
};
|
||||
// try to add a matching lead
|
||||
try { insert l2; } catch ( System.DmlException e) {
|
||||
system.assert(e.getMessage().contains('first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, A lead with this email address already exists'),
|
||||
e.getMessage());
|
||||
}
|
||||
|
||||
// test duplicates in the same batch
|
||||
Lead[] l3 =new Lead[]{
|
||||
new Lead( Email='marge@fox.tv', LastName='Simpson', Company='fox' ),
|
||||
new Lead( Email='marge@fox.tv', LastName='Simpson', Company='fox' )
|
||||
};
|
||||
try { insert l3; } catch ( System.DmlException e) {
|
||||
system.assert(e.getMessage().contains('first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Another new lead has the same email'),
|
||||
e.getMessage());
|
||||
|
||||
}
|
||||
|
||||
// test update also
|
||||
Lead[] lup = new Lead[]{
|
||||
new Lead( Email='marge@fox.tv', LastName='Simpson', Company='fox' )
|
||||
};
|
||||
insert lup;
|
||||
Lead marge = [ select id,Email from lead where Email = 'marge@fox.tv' limit 1];
|
||||
system.assert(marge!=null);
|
||||
marge.Email = 'homer@fox.tv';
|
||||
|
||||
try { update marge; } catch ( System.DmlException e) {
|
||||
system.assert(e.getMessage().contains('irst error: FIELD_CUSTOM_VALIDATION_EXCEPTION, A lead with this email address already exists'),
|
||||
e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
3
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/aql.aql
Executable file
3
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/aql.aql
Executable file
@@ -0,0 +1,3 @@
|
||||
FOR user IN users
|
||||
FILTER user.username == "olivier"
|
||||
RETURN user
|
6040
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/asciidoc.asciidoc
Executable file
6040
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/asciidoc.asciidoc
Executable file
File diff suppressed because it is too large
Load Diff
81
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/asl.dsl
Executable file
81
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/asl.dsl
Executable file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20180105
|
||||
*
|
||||
* ASL example
|
||||
*/
|
||||
DefinitionBlock ("", "SSDT", 1, "PmRef", "Cpu0Ist", 0x00003000)
|
||||
{
|
||||
External (_PR_.CPU0, DeviceObj)
|
||||
External (_SB_.CPUP, UnknownObj)
|
||||
|
||||
Scope (\_PR.CPU0)
|
||||
{
|
||||
Method (_PCT, 0, NotSerialized) // _PCT: Performance Control
|
||||
{
|
||||
If (((CFGD & One) && (PDC0 & One)))
|
||||
{
|
||||
Return (Package (0x02)
|
||||
{
|
||||
ResourceTemplate ()
|
||||
{
|
||||
Register (FFixedHW,
|
||||
0x00, // Bit Width
|
||||
0x00, // Bit Offset
|
||||
0x0000000000000000, // Address
|
||||
,)
|
||||
},
|
||||
|
||||
ResourceTemplate ()
|
||||
{
|
||||
Register (FFixedHW,
|
||||
0x00, // Bit Width
|
||||
0x00, // Bit Offset
|
||||
0x0000000000000000, // Address
|
||||
,)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Return (Package (0x02)
|
||||
{
|
||||
ResourceTemplate ()
|
||||
{
|
||||
Register (SystemIO,
|
||||
0x10, // Bit Width
|
||||
0x00, // Bit Offset
|
||||
0x0000000000001000, // Address
|
||||
,)
|
||||
},
|
||||
|
||||
ResourceTemplate ()
|
||||
{
|
||||
Register (SystemIO,
|
||||
0x08, // Bit Width
|
||||
0x00, // Bit Offset
|
||||
0x00000000000000B3, // Address
|
||||
,)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Name (PSDF, Zero)
|
||||
Method (_PSD, 0, NotSerialized) // _PSD: Power State Dependencies
|
||||
{
|
||||
If (!PSDF)
|
||||
{
|
||||
DerefOf (HPSD [Zero]) [0x04] = TCNT /* External reference */
|
||||
DerefOf (SPSD [Zero]) [0x04] = TCNT /* External reference */
|
||||
PSDF = Ones
|
||||
}
|
||||
|
||||
If ((PDC0 & 0x0800))
|
||||
{
|
||||
Return (HPSD) /* \_PR_.CPU0.HPSD */
|
||||
}
|
||||
|
||||
Return (SPSD) /* \_PR_.CPU0.SPSD */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,18 @@
|
||||
section .text
|
||||
global main ;must be declared for using gcc
|
||||
|
||||
main: ;tell linker entry point
|
||||
|
||||
mov edx, len ;message length
|
||||
mov ecx, msg ;message to write
|
||||
mov ebx, 1 ;file descriptor (stdout)
|
||||
mov eax, 4 ;system call number (sys_write)
|
||||
int 0x80 ;call kernel
|
||||
|
||||
mov eax, 1 ;system call number (sys_exit)
|
||||
int 0x80 ;call kernel
|
||||
|
||||
section .data
|
||||
|
||||
msg db 'Hello, world!',0xa ;our dear string
|
||||
len equ $ - msg ;length of our dear string
|
@@ -0,0 +1,9 @@
|
||||
---
|
||||
const visible = true;
|
||||
const name = "Legend Sabbir"
|
||||
---
|
||||
{visible && <p>Show me!</p>}
|
||||
|
||||
{visible ? <p>Show me!</p> : <p>Else show me!</p>}
|
||||
|
||||
<h1>{name}</h1>
|
@@ -0,0 +1,35 @@
|
||||
#NoEnv
|
||||
SetBatchLines -1
|
||||
|
||||
CoordMode Mouse, Screen
|
||||
OnExit GuiClose
|
||||
|
||||
zoom := 9
|
||||
|
||||
computeSize(){
|
||||
global as_x
|
||||
as_x := Round(ws_x/zoom/2 - 0.5)
|
||||
if (zoom>1) {
|
||||
pix := Round(zoom)
|
||||
} ele {
|
||||
pix := 1
|
||||
}
|
||||
ToolTip Message %as_x% %zoom% %ws_x% %hws_x%
|
||||
}
|
||||
|
||||
hdc_frame := DllCall("GetDC", UInt, MagnifierID)
|
||||
|
||||
; comment
|
||||
DrawCross(byRef x="", rX,rY,z, dc){
|
||||
;specify the style, thickness and color of the cross lines
|
||||
h_pen := DllCall( "gdi32.dll\CreatePen", Int, 0, Int, 1, UInt, 0x0000FF)
|
||||
}
|
||||
|
||||
;Ctrl ^; Shift +; Win #; Alt !
|
||||
^NumPadAdd::
|
||||
^WheelUp::
|
||||
^;:: ;comment
|
||||
If(zoom < ws_x and ( A_ThisHotKey = "^WheelUp" or A_ThisHotKey ="^NumPadAdd") )
|
||||
zoom *= 1.189207115 ; sqrt(sqrt(2))
|
||||
Gosub,setZoom
|
||||
return
|
@@ -0,0 +1,15 @@
|
||||
:: batch file highlighting in Ace!
|
||||
@echo off
|
||||
|
||||
CALL set var1=%cd%
|
||||
echo unhide everything in %var1%!
|
||||
|
||||
:: FOR loop in bat is super strange!
|
||||
FOR /f "tokens=*" %%G IN ('dir /A:D /b') DO (
|
||||
echo %var1%%%G
|
||||
attrib -r -a -h -s "%var1%%%G" /D /S
|
||||
)
|
||||
|
||||
pause
|
||||
|
||||
REM that's all
|
34
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/bibtex.bib
Executable file
34
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/bibtex.bib
Executable file
@@ -0,0 +1,34 @@
|
||||
@Comment{
|
||||
@Book{tes03,
|
||||
author = {John Smith},
|
||||
title = {Cooking},
|
||||
publisher = {Culinary Expert},
|
||||
year = 1890
|
||||
}
|
||||
}
|
||||
|
||||
@String(mar = "march")
|
||||
|
||||
@Book{sweig-42,
|
||||
Author = { Stefan Sweig },
|
||||
title = { The impossible book },
|
||||
publisher = { Dead Poet Society},
|
||||
year = 1942,
|
||||
month = mar
|
||||
}
|
||||
|
||||
@String {firstname = "John"}
|
||||
@String {lastname = "Smith"}
|
||||
@String {email = firstname # "." # lastname # "@imag.en"}
|
||||
|
||||
@Article{key01,
|
||||
title = { The history of @ sign }
|
||||
}
|
||||
|
||||
Everything " " outside {entries} is treated as comment in BibTeX.
|
||||
|
||||
@Article{key03,
|
||||
title = "A {bunch {of} braces {in}} title"
|
||||
}
|
||||
|
||||
@preamble {"This bibliography was generated on \today"}
|
26
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/bro.bro
Executable file
26
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/bro.bro
Executable file
@@ -0,0 +1,26 @@
|
||||
##! Add countries for the originator and responder of a connection
|
||||
##! to the connection logs.
|
||||
|
||||
module Conn;
|
||||
|
||||
export {
|
||||
redef record Conn::Info += {
|
||||
## Country code for the originator of the connection based
|
||||
## on a GeoIP lookup.
|
||||
orig_cc: string &optional &log;
|
||||
## Country code for the responser of the connection based
|
||||
## on a GeoIP lookup.
|
||||
resp_cc: string &optional &log;
|
||||
};
|
||||
}
|
||||
|
||||
event connection_state_remove(c: connection)
|
||||
{
|
||||
local orig_loc = lookup_location(c$id$orig_h);
|
||||
if ( orig_loc?$country_code )
|
||||
c$conn$orig_cc = orig_loc$country_code;
|
||||
|
||||
local resp_loc = lookup_location(c$id$resp_h);
|
||||
if ( resp_loc?$country_code )
|
||||
c$conn$resp_cc = resp_loc$country_code;
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
Searching for var in/.c9/metadata/workspace/pluginsregexp, case sensitive, whole word
|
||||
|
||||
configs/default.js:
|
||||
1: var fs = require("fs");
|
||||
2: var argv = require('optimist').argv;
|
||||
3: var path = require("path");
|
||||
5: var clientExtensions = {};
|
||||
6: var clientDirs = fs.readdirSync(__dirname + "/../plugins-client");
|
||||
7: for (var i = 0; i < clientDirs.length; i++) {
|
||||
8: var dir = clientDirs[i];
|
||||
12: var name = dir.split(".")[1];
|
||||
16: var projectDir = (argv.w && path.resolve(process.cwd(), argv.w)) || process.cwd();
|
||||
17: var fsUrl = "/workspace";
|
||||
19: var port = argv.p || process.env.PORT || 3131;
|
||||
20: var host = argv.l || "localhost";
|
||||
22: var config = {
|
||||
|
||||
configs/local.js:
|
||||
2: var config = require("./default");
|
||||
|
||||
configs/packed.js:
|
||||
1: var config = require("./default");
|
||||
|
||||
|
||||
Found 15 matches in 3 files
|
46
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/c_cpp.cpp
Executable file
46
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/c_cpp.cpp
Executable file
@@ -0,0 +1,46 @@
|
||||
// compound assignment operators
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include \
|
||||
<iostream>
|
||||
|
||||
#include \
|
||||
\
|
||||
<iostream>
|
||||
|
||||
#include \
|
||||
\
|
||||
"iostream"
|
||||
|
||||
#include <boost/asio/io_service.hpp>
|
||||
#include "boost/asio/io_service.hpp"
|
||||
|
||||
#include \
|
||||
\
|
||||
"iostream" \
|
||||
"string" \
|
||||
<vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
//
|
||||
int main ()
|
||||
{
|
||||
int a, b=3; /* foobar */
|
||||
a = b; // single line comment\
|
||||
continued
|
||||
a+=2; // equivalent to a=a+2
|
||||
cout << a;
|
||||
#if VERBOSE >= 2
|
||||
prints("trace message\n");
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Print an error message and get out */
|
||||
#define ABORT \
|
||||
do { \
|
||||
print( "Abort\n" ); \
|
||||
exit(8); \
|
||||
} while (0) /* Note: No semicolon */
|
42
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/cirru.cirru
Executable file
42
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/cirru.cirru
Executable file
@@ -0,0 +1,42 @@
|
||||
-- https://github.com/Cirru/cirru-gopher/blob/master/code/scope.cr,
|
||||
|
||||
set a (int 2)
|
||||
|
||||
print (self)
|
||||
|
||||
set c (child)
|
||||
|
||||
under c
|
||||
under parent
|
||||
print a
|
||||
|
||||
print $ get c a
|
||||
|
||||
set c x (int 3)
|
||||
print $ get c x
|
||||
|
||||
set just-print $ code
|
||||
print a
|
||||
|
||||
print just-print
|
||||
|
||||
eval (self) just-print
|
||||
eval just-print
|
||||
|
||||
print (string "string with space")
|
||||
print (string "escapes \n \"\\")
|
||||
|
||||
brackets ((((()))))
|
||||
|
||||
"eval" $ string "eval"
|
||||
|
||||
print (add $ (int 1) (int 2))
|
||||
|
||||
print $ unwrap $
|
||||
map (a $ int 1) (b $ int 2)
|
||||
|
||||
print a
|
||||
int 1
|
||||
, b c
|
||||
int 2
|
||||
, d
|
23
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/clojure.clj
Executable file
23
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/clojure.clj
Executable file
@@ -0,0 +1,23 @@
|
||||
(defn parting
|
||||
"returns a String parting in a given language"
|
||||
([] (parting "World"))
|
||||
([name] (parting name "en"))
|
||||
([name language]
|
||||
; condp is similar to a case statement in other languages.
|
||||
; It is described in more detail later.
|
||||
; It is used here to take different actions based on whether the
|
||||
; parameter "language" is set to "en", "es" or something else.
|
||||
(condp = language
|
||||
"en" (str "Goodbye, " name)
|
||||
"es" (str "Adios, " name)
|
||||
(throw (IllegalArgumentException.
|
||||
(str "unsupported language " language))))))
|
||||
|
||||
(println (parting)) ; -> Goodbye, World
|
||||
(println (parting "Mark")) ; -> Goodbye, Mark
|
||||
(println (parting "Mark" "es")) ; -> Adios, Mark
|
||||
(println (parting "Mark", "xy")) ; -> java.lang.IllegalArgumentException: unsupported language xy
|
||||
|
||||
(print (re-matches #"abc(.*)
|
||||
(r)" "abcxyz
|
||||
r") )
|
43
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/cobol.CBL
Executable file
43
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/cobol.CBL
Executable file
@@ -0,0 +1,43 @@
|
||||
GNU >>SOURCE FORMAT IS FIXED
|
||||
Cobol *> ***************************************************************
|
||||
*> Purpose: Say hello to GNU Cobol
|
||||
Hello *> Tectonics: cobc -x bigworld.cob
|
||||
money *> ***************************************************************
|
||||
identification division.
|
||||
program-id. bigworld.
|
||||
|
||||
DATA data division.
|
||||
working-storage section.
|
||||
01 hello pic $$$$,$$$,$$$,$$$,$$$,$$$.99.
|
||||
01 world pic s9(18)v99 value zero.
|
||||
|
||||
01 people pic ZZZ,ZZZ,ZZZ,ZZ9.
|
||||
01 persons pic 9(18) value 7182044470.
|
||||
|
||||
01 each pic 9(5)v99 value 26202.42.
|
||||
|
||||
*> ***************************************************************
|
||||
CODE procedure division.
|
||||
|
||||
multiply persons by each giving world
|
||||
on size error
|
||||
display "We did it. We broke the world bank" end-display
|
||||
end-multiply
|
||||
|
||||
move world to hello
|
||||
move persons to people
|
||||
|
||||
display "Hello, world" end-display
|
||||
display " " end-display
|
||||
display
|
||||
"On " function locale-date(20130927)
|
||||
" at " function locale-time(120000)
|
||||
", according to UN estimates:"
|
||||
end-display
|
||||
display
|
||||
"You were home to some " people " people,"
|
||||
" with an estimated worth of " hello
|
||||
end-display
|
||||
|
||||
goback.
|
||||
end program bigworld.
|
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env coffee
|
||||
|
||||
try
|
||||
throw URIError decodeURI(0xC0ffee * 123456.7e-8 / .9)
|
||||
catch e
|
||||
console.log 'qstring' + "qqstring" + '''
|
||||
qdoc
|
||||
''' + """
|
||||
qqdoc
|
||||
"""
|
||||
|
||||
do ->
|
||||
###
|
||||
herecomment
|
||||
###
|
||||
re = /regex/imgy.test ///
|
||||
heregex # comment
|
||||
///imgy
|
||||
this isnt: `just JavaScript`
|
||||
undefined
|
||||
|
||||
sentence = "#{ 22 / 7 } is a decent approximation of π"
|
@@ -0,0 +1,5 @@
|
||||
<!--- hello world --->
|
||||
|
||||
<cfset welcome="Hello World!">
|
||||
|
||||
<cfoutput>#welcome#</cfoutput>
|
33
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/crystal.cr
Executable file
33
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/crystal.cr
Executable file
@@ -0,0 +1,33 @@
|
||||
# crystal comment
|
||||
|
||||
require "llvm"
|
||||
|
||||
NUM_CELLS = 30000
|
||||
CELL_SIZE_IN_BYTES = 1
|
||||
|
||||
abstract class Instruction
|
||||
abstract def compile(program, bb)
|
||||
end
|
||||
|
||||
class Increment < Instruction
|
||||
def initialize(@amount : Int32)
|
||||
end
|
||||
|
||||
def compile(program, bb)
|
||||
cell_val_is_zero = builder.icmp LLVM::IntPredicate::EQ, cell_val, zero
|
||||
call_args = [@ctx.int32.const_int(NUM_CELLS), @ctx.int32.const_int(CELL_SIZE_IN_BYTES)]
|
||||
builder.cond cell_val_is_zero, loop_after, loop_body_block
|
||||
|
||||
@body.each do |instruction|
|
||||
loop_body_block = instruction.compile(program, loop_body_block)
|
||||
end
|
||||
|
||||
builder.position_at_end loop_body_block
|
||||
|
||||
unless matching_close_index
|
||||
error "Unmatched '[' at position #{i}"
|
||||
end
|
||||
|
||||
bb
|
||||
end
|
||||
end
|
@@ -0,0 +1,4 @@
|
||||
public void HelloWorld() {
|
||||
//Say Hello!
|
||||
Console.WriteLine("Hello World");
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
text
|
||||
<CsoundSynthesizer>
|
||||
<CsInstruments>
|
||||
0dbfs = 1
|
||||
prints "hello, world\n"
|
||||
</CsInstruments>
|
||||
<CsScore>
|
||||
i 1 0 0
|
||||
</CsScore>
|
||||
<html>
|
||||
<!DOCTYPE html>
|
||||
</html>
|
||||
</CsoundSynthesizer>
|
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* comment
|
||||
*/
|
||||
; comment
|
||||
// comment
|
||||
|
||||
instr/**/1,/**/N_a_M_e_,/**/+Name/**///
|
||||
iDuration = p3
|
||||
outc:a(aSignal)
|
||||
endin
|
||||
|
||||
opcode/**/aUDO,/**/i[],/**/aik//
|
||||
aUDO
|
||||
endop
|
||||
|
||||
123 0123456789
|
||||
0xabcdef0123456789 0XABCDEF
|
||||
1e2 3e+4 5e-6 7E8 9E+0 1E-2 3. 4.56 .789
|
||||
|
||||
"characters$MACRO."
|
||||
"\\\a\b\n\r\t\012\345\67\""
|
||||
|
||||
{{
|
||||
characters$MACRO.
|
||||
}}
|
||||
{{\\\a\b\n\r\t\"\012\345\67}}
|
||||
|
||||
+ - ~ ¬ ! * / ^ % << >> < > <= >= == != & # | && || ? : += -= *= /=
|
||||
|
||||
0dbfs A4 kr ksmps nchnls nchnls_i sr
|
||||
|
||||
do else elseif endif enduntil fi if ithen kthen od then until while
|
||||
return rireturn
|
||||
|
||||
aLabel:
|
||||
label2:
|
||||
|
||||
goto aLabel
|
||||
reinit aLabel
|
||||
cggoto 1==0, aLabel
|
||||
timout 0, 0, aLabel
|
||||
loop_ge 0, 0, 0, aLabel
|
||||
|
||||
readscore {{
|
||||
i 1 0 0
|
||||
}}
|
||||
pyrun {{
|
||||
# Python
|
||||
}}
|
||||
lua_exec {{
|
||||
-- Lua
|
||||
}}
|
||||
|
||||
#include/**/"file.udo"
|
||||
#include/**/|file.udo|
|
||||
|
||||
#ifdef MACRO
|
||||
#else
|
||||
#ifndef MACRO
|
||||
#endif
|
||||
#undef MACRO
|
||||
|
||||
# define MACRO#macro_body#
|
||||
#define/**/
|
||||
MACRO/**/
|
||||
#\#macro
|
||||
body\##
|
||||
|
||||
#define MACRO(ARG1#ARG2) #macro_body#
|
||||
#define/**/
|
||||
MACRO(ARG1'ARG2'ARG3)/**/
|
||||
#\#macro
|
||||
body\##
|
||||
|
||||
$MACRO $MACRO.
|
||||
$MACRO(x)
|
||||
@0
|
||||
@@ 1
|
||||
$MACRO.(((x#y\)))' "(#'x)\)x\))"# {{x\))x)\)(#'}});
|
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* comment
|
||||
*/
|
||||
; comment
|
||||
// comment
|
||||
a B b C d e f i q s t v x y
|
||||
z
|
||||
np0 nP1 Np2 NP3
|
||||
m/**/label;
|
||||
n label
|
||||
123 0123456789
|
||||
0xabcdef0123456789 0XABCDEF
|
||||
1e2 3e+4 5e-6 7E8 9E+0 1E-2 3. 4.56 .789
|
||||
"characters$MACRO."
|
||||
{ 1 I
|
||||
{ 2 J
|
||||
{ 3 K
|
||||
$I $J $K
|
||||
}
|
||||
}
|
||||
}
|
||||
#include "score.sco"
|
43
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/css.css
Executable file
43
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/css.css
Executable file
@@ -0,0 +1,43 @@
|
||||
.text-layer {
|
||||
font: 12px Monaco, "Courier New", monospace;
|
||||
font-size: 3vmin;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.blinker {
|
||||
animation: blink 1s linear infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0%, 40% {
|
||||
opacity: 0; /*
|
||||
*/
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
40.5%, 100% {
|
||||
opacity: 1
|
||||
}
|
||||
}
|
||||
|
||||
@document url(http://c9.io/), url-prefix(http://ace.c9.io/build/),
|
||||
domain(c9.io), regexp("https:.*") /**/
|
||||
{
|
||||
/**/
|
||||
img[title]:before
|
||||
{
|
||||
content: attr(title) "\AImage \
|
||||
retrieved from"
|
||||
attr(src); /*
|
||||
*/
|
||||
white-space: pre;
|
||||
display: block;
|
||||
background: url(asdasd); "err
|
||||
}
|
||||
}
|
||||
|
||||
@viewport {
|
||||
min-zoom: 1;
|
||||
max-zoom: 200%;
|
||||
user-zoom: fixed;
|
||||
}
|
16
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/curly.curly
Executable file
16
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/curly.curly
Executable file
@@ -0,0 +1,16 @@
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<style type="text/css">
|
||||
.text-layer {
|
||||
font-family: Monaco, "Courier New", monospace;
|
||||
font-size: 12px;
|
||||
cursor: text;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1 style="color:red">{{author_name}}</h1>
|
||||
</body>
|
||||
</html>
|
@@ -0,0 +1,11 @@
|
||||
include extras.conf # overflow config file
|
||||
|
||||
ring_size = 32
|
||||
|
||||
# experimental
|
||||
anti_entropy = debug
|
||||
|
||||
# logging
|
||||
log.error.file = /var/log/error.log
|
||||
log.console.file = /var/log/console.log
|
||||
log.syslog = on
|
14
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/d.d
Executable file
14
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/d.d
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env rdmd
|
||||
// Computes average line length for standard input.
|
||||
import std.stdio;
|
||||
|
||||
void main() {
|
||||
ulong lines = 0;
|
||||
double sumLength = 0;
|
||||
foreach (line; stdin.byLine()) {
|
||||
++lines;
|
||||
sumLength += line.length;
|
||||
}
|
||||
writeln("Average line length: ",
|
||||
lines ? sumLength / lines : 0);
|
||||
}
|
19
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/dart.dart
Executable file
19
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/dart.dart
Executable file
@@ -0,0 +1,19 @@
|
||||
// Go ahead and modify this example.
|
||||
|
||||
import "dart:html";
|
||||
|
||||
// Computes the nth Fibonacci number.
|
||||
int fibonacci(int n) {
|
||||
if (n < 2) return n;
|
||||
return fibonacci(n - 1) + fibonacci(n - 2);
|
||||
}
|
||||
|
||||
// Displays a Fibonacci number.
|
||||
void main() {
|
||||
int i = 20;
|
||||
String message = "fibonacci($i) = ${fibonacci(i)}";
|
||||
|
||||
// This example uses HTML to display the result and it will appear
|
||||
// in a nested HTML frame (an iframe).
|
||||
document.body.append(new HeadingElement.h1()..appendText(message));
|
||||
}
|
69
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/diff.diff
Executable file
69
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/diff.diff
Executable file
@@ -0,0 +1,69 @@
|
||||
diff --git a/lib/ace/edit_session.js b/lib/ace/edit_session.js
|
||||
index 23fc3fc..ed3b273 100644
|
||||
--- a/lib/ace/edit_session.js
|
||||
+++ b/lib/ace/edit_session.js
|
||||
@@ -51,6 +51,7 @@ var TextMode = require("./mode/text").Mode;
|
||||
var Range = require("./range").Range;
|
||||
var Document = require("./document").Document;
|
||||
var BackgroundTokenizer = require("./background_tokenizer").BackgroundTokenizer;
|
||||
+var SearchHighlight = require("./search_highlight").SearchHighlight;
|
||||
|
||||
/**
|
||||
* class EditSession
|
||||
@@ -307,6 +308,13 @@ var EditSession = function(text, mode) {
|
||||
return token;
|
||||
};
|
||||
|
||||
+ this.highlight = function(re) {
|
||||
+ if (!this.$searchHighlight) {
|
||||
+ var highlight = new SearchHighlight(null, "ace_selected-word", "text");
|
||||
+ this.$searchHighlight = this.addDynamicMarker(highlight);
|
||||
+ }
|
||||
+ this.$searchHighlight.setRegexp(re);
|
||||
+ }
|
||||
/**
|
||||
* EditSession.setUndoManager(undoManager)
|
||||
* - undoManager (UndoManager): The new undo manager
|
||||
@@ -556,7 +564,8 @@ var EditSession = function(text, mode) {
|
||||
type : type || "line",
|
||||
renderer: typeof type == "function" ? type : null,
|
||||
clazz : clazz,
|
||||
- inFront: !!inFront
|
||||
+ inFront: !!inFront,
|
||||
+ id: id
|
||||
}
|
||||
|
||||
if (inFront) {
|
||||
diff --git a/lib/ace/editor.js b/lib/ace/editor.js
|
||||
index 834e603..b27ec73 100644
|
||||
--- a/lib/ace/editor.js
|
||||
+++ b/lib/ace/editor.js
|
||||
@@ -494,7 +494,7 @@ var Editor = function(renderer, session) {
|
||||
* Emitted when a selection has changed.
|
||||
**/
|
||||
this.onSelectionChange = function(e) {
|
||||
- var session = this.getSession();
|
||||
+ var session = this.session;
|
||||
|
||||
if (session.$selectionMarker) {
|
||||
session.removeMarker(session.$selectionMarker);
|
||||
@@ -509,12 +509,40 @@ var Editor = function(renderer, session) {
|
||||
this.$updateHighlightActiveLine();
|
||||
}
|
||||
|
||||
- var self = this;
|
||||
- if (this.$highlightSelectedWord && !this.$wordHighlightTimer)
|
||||
- this.$wordHighlightTimer = setTimeout(function() {
|
||||
- self.session.$mode.highlightSelection(self);
|
||||
- self.$wordHighlightTimer = null;
|
||||
- }, 30, this);
|
||||
+ var re = this.$highlightSelectedWord && this.$getSelectionHighLightRegexp()
|
||||
};
|
||||
diff --git a/lib/ace/search_highlight.js b/lib/ace/search_highlight.js
|
||||
new file mode 100644
|
||||
index 0000000..b2df779
|
||||
--- /dev/null
|
||||
+++ b/lib/ace/search_highlight.js
|
||||
@@ -0,0 +1,3 @@
|
||||
+new
|
||||
+empty file
|
@@ -0,0 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Ace Django Template{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Hello, {{ name|default:"World" }}!</h1>
|
||||
{% endblock %}
|
@@ -0,0 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Ace Django Template{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Hello, {{ name|default:"World" }}!</h1>
|
||||
{% endblock %}
|
110
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/dot.dot
Executable file
110
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/dot.dot
Executable file
@@ -0,0 +1,110 @@
|
||||
// Original source: http://www.graphviz.org/content/lion_share
|
||||
##"A few people in the field of genetics are using dot to draw "marriage node diagram" pedigree drawings. Here is one I have done of a test pedigree from the FTREE pedigree drawing package (Lion Share was a racehorse)." Contributed by David Duffy.
|
||||
|
||||
##Command to get the layout: "dot -Tpng thisfile > thisfile.png"
|
||||
|
||||
digraph Ped_Lion_Share {
|
||||
# page = "8.2677165,11.692913" ;
|
||||
ratio = "auto" ;
|
||||
mincross = 2.0 ;
|
||||
label = "Pedigree Lion_Share" ;
|
||||
|
||||
"001" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"002" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"003" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"004" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"005" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"006" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"007" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"009" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"014" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"015" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"016" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"ZZ01" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"ZZ02" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"017" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"012" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"008" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"011" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"013" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"010" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"023" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"020" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"021" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"018" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"025" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"019" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"022" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"024" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"027" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
|
||||
"026" [shape=box , regular=1,style=filled,fillcolor=white ] ;
|
||||
"028" [shape=box , regular=1,style=filled,fillcolor=grey ] ;
|
||||
"marr0001" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"001" -> "marr0001" [dir=none,weight=1] ;
|
||||
"007" -> "marr0001" [dir=none,weight=1] ;
|
||||
"marr0001" -> "017" [dir=none, weight=2] ;
|
||||
"marr0002" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"001" -> "marr0002" [dir=none,weight=1] ;
|
||||
"ZZ02" -> "marr0002" [dir=none,weight=1] ;
|
||||
"marr0002" -> "012" [dir=none, weight=2] ;
|
||||
"marr0003" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"002" -> "marr0003" [dir=none,weight=1] ;
|
||||
"003" -> "marr0003" [dir=none,weight=1] ;
|
||||
"marr0003" -> "008" [dir=none, weight=2] ;
|
||||
"marr0004" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"002" -> "marr0004" [dir=none,weight=1] ;
|
||||
"006" -> "marr0004" [dir=none,weight=1] ;
|
||||
"marr0004" -> "011" [dir=none, weight=2] ;
|
||||
"marr0005" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"002" -> "marr0005" [dir=none,weight=1] ;
|
||||
"ZZ01" -> "marr0005" [dir=none,weight=1] ;
|
||||
"marr0005" -> "013" [dir=none, weight=2] ;
|
||||
"marr0006" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"004" -> "marr0006" [dir=none,weight=1] ;
|
||||
"009" -> "marr0006" [dir=none,weight=1] ;
|
||||
"marr0006" -> "010" [dir=none, weight=2] ;
|
||||
"marr0007" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"005" -> "marr0007" [dir=none,weight=1] ;
|
||||
"015" -> "marr0007" [dir=none,weight=1] ;
|
||||
"marr0007" -> "023" [dir=none, weight=2] ;
|
||||
"marr0008" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"005" -> "marr0008" [dir=none,weight=1] ;
|
||||
"016" -> "marr0008" [dir=none,weight=1] ;
|
||||
"marr0008" -> "020" [dir=none, weight=2] ;
|
||||
"marr0009" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"005" -> "marr0009" [dir=none,weight=1] ;
|
||||
"012" -> "marr0009" [dir=none,weight=1] ;
|
||||
"marr0009" -> "021" [dir=none, weight=2] ;
|
||||
"marr0010" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"008" -> "marr0010" [dir=none,weight=1] ;
|
||||
"017" -> "marr0010" [dir=none,weight=1] ;
|
||||
"marr0010" -> "018" [dir=none, weight=2] ;
|
||||
"marr0011" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"011" -> "marr0011" [dir=none,weight=1] ;
|
||||
"023" -> "marr0011" [dir=none,weight=1] ;
|
||||
"marr0011" -> "025" [dir=none, weight=2] ;
|
||||
"marr0012" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"013" -> "marr0012" [dir=none,weight=1] ;
|
||||
"014" -> "marr0012" [dir=none,weight=1] ;
|
||||
"marr0012" -> "019" [dir=none, weight=2] ;
|
||||
"marr0013" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"010" -> "marr0013" [dir=none,weight=1] ;
|
||||
"021" -> "marr0013" [dir=none,weight=1] ;
|
||||
"marr0013" -> "022" [dir=none, weight=2] ;
|
||||
"marr0014" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"019" -> "marr0014" [dir=none,weight=1] ;
|
||||
"020" -> "marr0014" [dir=none,weight=1] ;
|
||||
"marr0014" -> "024" [dir=none, weight=2] ;
|
||||
"marr0015" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"022" -> "marr0015" [dir=none,weight=1] ;
|
||||
"025" -> "marr0015" [dir=none,weight=1] ;
|
||||
"marr0015" -> "027" [dir=none, weight=2] ;
|
||||
"marr0016" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"024" -> "marr0016" [dir=none,weight=1] ;
|
||||
"018" -> "marr0016" [dir=none,weight=1] ;
|
||||
"marr0016" -> "026" [dir=none, weight=2] ;
|
||||
"marr0017" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
|
||||
"026" -> "marr0017" [dir=none,weight=1] ;
|
||||
"027" -> "marr0017" [dir=none,weight=1] ;
|
||||
"marr0017" -> "028" [dir=none, weight=2] ;
|
||||
}
|
127
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/drools.drl
Executable file
127
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/drools.drl
Executable file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* Copyright 2010 JBoss Inc
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
Original source
|
||||
https://github.com/droolsjbpm/drools/blob/master/drools-examples/
|
||||
http://docs.jboss.org/drools/
|
||||
*/
|
||||
package com.example.ace
|
||||
|
||||
import java.math.BigDecimal
|
||||
import function my.package.Foo.hello
|
||||
|
||||
declare FactType
|
||||
@author( Bob )
|
||||
id : String
|
||||
name : String @maxLength(100) @notnull
|
||||
|
||||
value : BigDecimal
|
||||
end
|
||||
|
||||
declare FactType2 extends AnotherType
|
||||
end
|
||||
|
||||
declare trait TraitType extends com.package.AnotherType
|
||||
end
|
||||
|
||||
|
||||
declare trait GoldenCustomer
|
||||
balance : long @Alias( "org.acme.foo.accountBalance" )
|
||||
end
|
||||
|
||||
global org.slf4j.Logger logger
|
||||
|
||||
/**
|
||||
* @param name who we'll salute?
|
||||
*/
|
||||
function String hello(String name) {
|
||||
return "Hello "+name+"!";
|
||||
}
|
||||
|
||||
rule "Trim all strings"
|
||||
dialect "java"
|
||||
no-loop
|
||||
when // fdsfds
|
||||
$s : String(a == null || == "empty", $g : size)
|
||||
Cheese( name matches "(Buffalo)?\\S*Mozarella" )
|
||||
CheeseCounter( cheeses contains $var ) // contains with a variable
|
||||
CheeseCounter( cheese memberof $matureCheeses )
|
||||
Cheese( name soundslike 'foobar' )
|
||||
Message( routingValue str[startsWith] "R1" )
|
||||
Cheese( name in ( "stilton", "cheddar", $cheese ) )
|
||||
Person( eval( age == girlAge + 2 ), sex = 'M' )
|
||||
then
|
||||
/**
|
||||
* TODO There mus be better way
|
||||
*/
|
||||
retract($s);
|
||||
String a = "fd";
|
||||
a.toString();
|
||||
|
||||
insert($s.trim());
|
||||
end
|
||||
|
||||
query isContainedIn( String x, String y )
|
||||
Location( x, y; )
|
||||
or
|
||||
( Location( z, y; ) and isContainedIn( x, z; ) )
|
||||
end
|
||||
|
||||
rule "go" salience 10
|
||||
when
|
||||
$s : String( )
|
||||
then
|
||||
System.out.println( $s );
|
||||
end
|
||||
|
||||
rule "When all English buses are not red"
|
||||
when
|
||||
not(forall( $bus : Bus( nationality == 'english')
|
||||
Bus( this == $bus, color = 'red' ) ))
|
||||
then
|
||||
// What if all english buses are not red?
|
||||
end
|
||||
|
||||
rule "go1"
|
||||
when
|
||||
String( this == "go1" )
|
||||
isContainedIn("Office", "House"; )
|
||||
then
|
||||
System.out.println( "office is in the house" );
|
||||
end
|
||||
|
||||
rule "go2"
|
||||
when
|
||||
String( this == "go2" )
|
||||
isContainedIn("Draw", "House"; )
|
||||
then
|
||||
System.out.println( "Draw in the House" );
|
||||
end
|
||||
|
||||
/**
|
||||
* Go Right
|
||||
*/
|
||||
rule GoRight dialect "mvel" salience (Math.abs( $df.colDiff )) when
|
||||
$df : DirectionDiff(colDiff > 0 )
|
||||
$target : Cell( row == $df.row, col == ($df.col + 1) )
|
||||
CellContents( cell == $target, cellType != CellType.WALL )
|
||||
not Direction(character == $df.fromChar, horizontal == Direction.RIGHT )
|
||||
then
|
||||
System.out.println( "monster right" );
|
||||
retract( $df );
|
||||
insert( new Direction($df.fromChar, Direction.RIGHT, Direction.NONE ) );
|
||||
end
|
26
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/edifact.edi
Executable file
26
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/edifact.edi
Executable file
@@ -0,0 +1,26 @@
|
||||
UNB+UNOA:1+005435656:1+006415160:1+060515:1434+00000000000778'
|
||||
UNH+00000000000117+INVnrOIC:D:97B:UN'
|
||||
BGM+380+342459+9'
|
||||
DTM+3:20060515:102'
|
||||
RFF+ON:521052'
|
||||
NAD+BY+792820524::16++CUMMINS MID-RANGE ENGINE PLANT'
|
||||
NAD+SE+005435656::16++GENERAL WIDGET COMPANY'
|
||||
CUX+1:USD'
|
||||
LIN+1++157870:IN'
|
||||
IMD+F++:::WIDGET'
|
||||
QTY+47:1020:EA'
|
||||
ALI+US'
|
||||
MOA+203:1202.58'
|
||||
PRI+INV:1.179'
|
||||
LIN+2++157871:IN'
|
||||
IMD+F++:::DIFFERENT WIDGET'
|
||||
QTY+47:20:EA'
|
||||
ALI+JP'
|
||||
MOA+203:410'
|
||||
PRI+INV:20.5'
|
||||
UNS+S'
|
||||
MOA+39:2137.58'
|
||||
ALC+C+ABG'
|
||||
MOA+8:525'
|
||||
UNT+23+00000000000117'
|
||||
UNZ+1+00000000000778'
|
30
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/eiffel.e
Executable file
30
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/eiffel.e
Executable file
@@ -0,0 +1,30 @@
|
||||
note
|
||||
description: "Represents a person."
|
||||
|
||||
class
|
||||
PERSON
|
||||
|
||||
create
|
||||
make, make_unknown
|
||||
|
||||
feature {NONE} -- Creation
|
||||
|
||||
make (a_name: like name)
|
||||
-- Create a person with `a_name' as `name'.
|
||||
do
|
||||
name := a_name
|
||||
ensure
|
||||
name = a_name
|
||||
end
|
||||
|
||||
make_unknown
|
||||
do ensure
|
||||
name = Void
|
||||
end
|
||||
|
||||
feature -- Access
|
||||
|
||||
name: detachable STRING
|
||||
-- Full name or Void if unknown.
|
||||
|
||||
end
|
31
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/ejs.ejs
Executable file
31
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/ejs.ejs
Executable file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Cloud9 Rocks!</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Size</th>
|
||||
</tr>
|
||||
<% if (!isRoot) { %>
|
||||
<tr>
|
||||
<td><a href="..">..</a></td>
|
||||
<td></td></td>
|
||||
</tr>
|
||||
<% } %>
|
||||
<% entries.forEach(function(entry) { %>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="glyphicon <%= entry.mime == 'directory' ? 'folder': 'file'%>"></span>
|
||||
<a href="<%= entry.name %>"><%= entry.name %></a>
|
||||
</td>
|
||||
<td><%= entry.size %></td>
|
||||
</tr>
|
||||
<% }) %>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
42
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/elixir.ex
Executable file
42
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/elixir.ex
Executable file
@@ -0,0 +1,42 @@
|
||||
defmodule HelloModule do
|
||||
@moduledoc """
|
||||
This is supposed to be `markdown`.
|
||||
__Yes__ this is [mark](http://down.format)
|
||||
|
||||
# Truly
|
||||
|
||||
## marked
|
||||
|
||||
* with lists
|
||||
* more
|
||||
* and more
|
||||
|
||||
Even.with(code)
|
||||
blocks |> with |> samples
|
||||
|
||||
_Docs are first class citizens in Elixir_ (Jose Valim)
|
||||
"""
|
||||
|
||||
# A "Hello world" function
|
||||
def some_fun do
|
||||
IO.puts "Juhu Kinners!"
|
||||
end
|
||||
# A private function
|
||||
defp priv do
|
||||
is_regex ~r"""
|
||||
This is a regex
|
||||
spanning several
|
||||
lines.
|
||||
"""
|
||||
x = elem({ :a, :b, :c }, 0) #=> :a
|
||||
end
|
||||
end
|
||||
|
||||
test_fun = fn(x) ->
|
||||
cond do
|
||||
x > 10 ->
|
||||
:greater_than_ten
|
||||
true ->
|
||||
:maybe_ten
|
||||
end
|
||||
end
|
12
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/elm.elm
Executable file
12
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/elm.elm
Executable file
@@ -0,0 +1,12 @@
|
||||
{- Ace {- 4 -} Elm -}
|
||||
main = lift clock (every second)
|
||||
|
||||
clock t = collage 400 400 [ filled lightGrey (ngon 12 110)
|
||||
, outlined (solid grey) (ngon 12 110)
|
||||
, hand orange 100 t
|
||||
, hand charcoal 100 (t/60)
|
||||
, hand charcoal 60 (t/720) ]
|
||||
|
||||
hand clr len time =
|
||||
let angle = degrees (90 - 6 * inSeconds time)
|
||||
in traced (solid clr) <| segment (0,0) (len * cos angle, len * sin angle)
|
20
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/erlang.erl
Executable file
20
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/erlang.erl
Executable file
@@ -0,0 +1,20 @@
|
||||
%% A process whose only job is to keep a counter.
|
||||
%% First version
|
||||
-module(counter).
|
||||
-export([start/0, codeswitch/1]).
|
||||
|
||||
start() -> loop(0).
|
||||
|
||||
loop(Sum) ->
|
||||
receive
|
||||
{increment, Count} ->
|
||||
loop(Sum+Count);
|
||||
{counter, Pid} ->
|
||||
Pid ! {counter, Sum},
|
||||
loop(Sum);
|
||||
code_switch ->
|
||||
?MODULE:codeswitch(Sum)
|
||||
% Force the use of 'codeswitch/1' from the latest MODULE version
|
||||
end.
|
||||
|
||||
codeswitch(Sum) -> loop(Sum).
|
35
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/flix.flix
Executable file
35
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/flix.flix
Executable file
@@ -0,0 +1,35 @@
|
||||
/// Mooo's `n` times on channel `c`.
|
||||
def mooo(tx: Sender[String, r], n: Int32): Unit \ IO =
|
||||
match n {
|
||||
case 0 => ()
|
||||
case x => Channel.send("Mooo!", tx); mooo(tx, x - 1)
|
||||
}
|
||||
|
||||
/// Meow's `n` times on channel `c`.
|
||||
def meow(tx: Sender[String, r], n: Int32): Unit \ IO =
|
||||
match n {
|
||||
case 0 => ()
|
||||
case x => Channel.send("Meow!", tx); meow(tx, x - 1)
|
||||
}
|
||||
|
||||
/// Hiss'es `n` times on channel `c`.
|
||||
def hiss(tx: Sender[String, r], n: Int32): Unit \ IO =
|
||||
match n {
|
||||
case 0 => ()
|
||||
case x => Channel.send("Hiss!", tx); hiss(tx, x - 1)
|
||||
}
|
||||
|
||||
/// Start the animal farm...
|
||||
def main(): Unit \ IO = region rc {
|
||||
let (tx1, rx1) = Channel.buffered(rc, 10);
|
||||
let (tx2, rx2) = Channel.buffered(rc, 10);
|
||||
let (tx3, rx3) = Channel.buffered(rc, 10);
|
||||
spawn mooo(tx1, 0) @ rc;
|
||||
spawn meow(tx2, 3) @ rc;
|
||||
spawn hiss(tx3, 7) @ rc;
|
||||
select {
|
||||
case m <- recv(rx1) => m |> println
|
||||
case m <- recv(rx2) => m |> println
|
||||
case m <- recv(rx3) => m |> println
|
||||
}
|
||||
}
|
41
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/forth.frt
Executable file
41
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/forth.frt
Executable file
@@ -0,0 +1,41 @@
|
||||
: HELLO ( -- ) CR ." Hello, world!" ;
|
||||
|
||||
HELLO <cr>
|
||||
Hello, world!
|
||||
|
||||
: [CHAR] CHAR POSTPONE LITERAL ; IMMEDIATE
|
||||
|
||||
0 value ii 0 value jj
|
||||
0 value KeyAddr 0 value KeyLen
|
||||
create SArray 256 allot \ state array of 256 bytes
|
||||
: KeyArray KeyLen mod KeyAddr ;
|
||||
|
||||
: get_byte + c@ ;
|
||||
: set_byte + c! ;
|
||||
: as_byte 255 and ;
|
||||
: reset_ij 0 TO ii 0 TO jj ;
|
||||
: i_update 1 + as_byte TO ii ;
|
||||
: j_update ii SArray get_byte + as_byte TO jj ;
|
||||
: swap_s_ij
|
||||
jj SArray get_byte
|
||||
ii SArray get_byte jj SArray set_byte
|
||||
ii SArray set_byte
|
||||
;
|
||||
|
||||
: rc4_init ( KeyAddr KeyLen -- )
|
||||
256 min TO KeyLen TO KeyAddr
|
||||
256 0 DO i i SArray set_byte LOOP
|
||||
reset_ij
|
||||
BEGIN
|
||||
ii KeyArray get_byte jj + j_update
|
||||
swap_s_ij
|
||||
ii 255 < WHILE
|
||||
ii i_update
|
||||
REPEAT
|
||||
reset_ij
|
||||
;
|
||||
: rc4_byte
|
||||
ii i_update jj j_update
|
||||
swap_s_ij
|
||||
ii SArray get_byte jj SArray get_byte + as_byte SArray get_byte xor
|
||||
;
|
33
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/fortran.f
Executable file
33
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/fortran.f
Executable file
@@ -0,0 +1,33 @@
|
||||
#include "globalDefines.h"
|
||||
|
||||
!=========================================================
|
||||
program main
|
||||
!=========================================================
|
||||
use params_module, only : nx, ny, nz
|
||||
|
||||
implicit none
|
||||
|
||||
integer, parameter :: g = 9.81
|
||||
real, allocatable, dimension(:,:,:) :: array
|
||||
integer :: a, b, c
|
||||
real*8 :: x, y, z
|
||||
|
||||
b = 5
|
||||
c = 7
|
||||
|
||||
#ifdef ARRAY_COMP
|
||||
allocate(array(10,10,10), status=a)
|
||||
|
||||
write(c,'(i5.5)') b
|
||||
#endif
|
||||
|
||||
if(x.lt.5.0) then
|
||||
array(:,:,:) = g
|
||||
else
|
||||
array(:,:,:) = x - y
|
||||
endif
|
||||
|
||||
return
|
||||
!========================================================
|
||||
end program main
|
||||
!========================================================
|
33
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/fortran.f90
Executable file
33
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/fortran.f90
Executable file
@@ -0,0 +1,33 @@
|
||||
#include "globalDefines.h"
|
||||
|
||||
!=========================================================
|
||||
program main
|
||||
!=========================================================
|
||||
use params_module, only : nx, ny, nz
|
||||
|
||||
implicit none
|
||||
|
||||
integer, parameter :: g = 9.81
|
||||
real, allocatable, dimension(:,:,:) :: array
|
||||
integer :: a, b, c
|
||||
real*8 :: x, y, z
|
||||
|
||||
b = 5
|
||||
c = 7
|
||||
|
||||
#ifdef ARRAY_COMP
|
||||
allocate(array(10,10,10), status=a)
|
||||
|
||||
write(c,'(i5.5)') b
|
||||
#endif
|
||||
|
||||
if(x.lt.5.0) then
|
||||
array(:,:,:) = g
|
||||
else
|
||||
array(:,:,:) = x - y
|
||||
endif
|
||||
|
||||
return
|
||||
!========================================================
|
||||
end program main
|
||||
!========================================================
|
14
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/fsharp.fsi
Executable file
14
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/fsharp.fsi
Executable file
@@ -0,0 +1,14 @@
|
||||
(* fsharp (* example *) *)
|
||||
module Test =
|
||||
let (*) x y = (x + y)
|
||||
let func1 x =
|
||||
if x < 100 then
|
||||
x*x
|
||||
else
|
||||
x*x + 1
|
||||
let list = (-1, 42) :: [ for i in 0 .. 99 -> (i, func1(i)) ]
|
||||
let verbatim = @"c:\Program "" Files\"
|
||||
let trippleQuote = """ "hello world" """
|
||||
|
||||
// print
|
||||
printfn "The table of squares from 0 to 99 is:\n%A" list
|
51
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/fsl.fsl
Executable file
51
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/fsl.fsl
Executable file
@@ -0,0 +1,51 @@
|
||||
machine_name : "BGP";
|
||||
machine_version : 1.0.0;
|
||||
|
||||
machine_author : "John Haugeland <stonecypher@gmail.com>";
|
||||
machine_license : MIT;
|
||||
|
||||
graph_layout : dot;
|
||||
|
||||
|
||||
|
||||
Idle 'Invite' => Invited;
|
||||
|
||||
Invited 'Invite, 1xx' -> Invited;
|
||||
Invited '3xx' -> Redirecting;
|
||||
Invited 'Cancel' -> Cancelling;
|
||||
Invited '200' => Accepted;
|
||||
Invited '407' => AuthRequested;
|
||||
Invited '4xx-6xx' -> Failed;
|
||||
|
||||
AuthRequested 'Ack' => Invited;
|
||||
|
||||
Redirecting 'Act' -> Redirected;
|
||||
|
||||
Cancelling '200 (Invite)' -> LateCancel;
|
||||
Cancelling '200 (Cancel)' -> Cancelled;
|
||||
|
||||
Accepted 'Cancel' -> LateCancel;
|
||||
Accepted 'Ack' => Established;
|
||||
|
||||
Failed 'Ack' -> Terminated;
|
||||
|
||||
Redirected 'Invite' -> Invited;
|
||||
Redirected 'Timeout' -> Terminated;
|
||||
|
||||
LateCancel 'Ack' -> Established;
|
||||
|
||||
Cancelled '487' -> Failed;
|
||||
|
||||
Established 'Invite' => SessionModifying;
|
||||
Established 'Bye' -> Closing;
|
||||
|
||||
SessionModifying '488' -> SessionModificationRefused;
|
||||
SessionModifying '200' => SessionModified;
|
||||
|
||||
Closing 'Bye,Ack,200 (Invite)' -> Closing;
|
||||
Closing '200 (Bye)' -> Terminated;
|
||||
|
||||
SessionModificationRefused 'Ack' -> Established;
|
||||
|
||||
SessionModified 'Ack' => Established;
|
||||
SessionModified 'Bye' -> Closing;
|
46
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/ftl.ftl
Executable file
46
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/ftl.ftl
Executable file
@@ -0,0 +1,46 @@
|
||||
<#ftl encoding="utf-8" />
|
||||
<#setting locale="en_US" />
|
||||
<#import "library" as lib />
|
||||
<#--
|
||||
FreeMarker comment
|
||||
${abc} <#assign a=12 />
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<title>${title!"FreeMarker"}<title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Hello ${name!""}</h1>
|
||||
|
||||
<p>Today is: ${.now?date}</p>
|
||||
|
||||
<#assign x = 13>
|
||||
<#if x > 12 && x lt 14>x equals 13: ${x}</#if>
|
||||
|
||||
<ul>
|
||||
<#list items as item>
|
||||
<li>${item_index}: ${item.name!?split("\n")[0]}</li>
|
||||
</#list>
|
||||
</ul>
|
||||
|
||||
User directive: <@lib.function attr1=true attr2='value' attr3=-42.12>Test</@lib.function>
|
||||
<@anotherOne />
|
||||
|
||||
<#if variable?exists>
|
||||
Deprecated
|
||||
<#elseif variable??>
|
||||
Better
|
||||
<#else>
|
||||
Default
|
||||
</#if>
|
||||
|
||||
<img src="images/${user.id}.png" />
|
||||
|
||||
</body>
|
||||
</html>
|
31
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/gcode.gcode
Executable file
31
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/gcode.gcode
Executable file
@@ -0,0 +1,31 @@
|
||||
O003 (DIAMOND SQUARE)
|
||||
N2 G54 G90 G49 G80
|
||||
N3 M6 T1 (1.ENDMILL)
|
||||
N4 M3 S1800
|
||||
N5 G0 X-.6 Y2.050
|
||||
N6 G43 H1 Z.1
|
||||
N7 G1 Z-.3 F50.
|
||||
N8 G41 D1 Y1.45
|
||||
N9 G1 X0 F20.
|
||||
N10 G2 J-1.45
|
||||
(CUTTER COMP CANCEL)
|
||||
N11 G1 Z-.2 F50.
|
||||
N12 Y-.990
|
||||
N13 G40
|
||||
N14 G0 X-.6 Y1.590
|
||||
N15 G0 Z.1
|
||||
N16 M5 G49 G28 G91 Z0
|
||||
N17 CALL O9456
|
||||
N18 #500=0.004
|
||||
N19 #503=[#500+#501]
|
||||
N20 VC45=0.0006
|
||||
VS4=0.0007
|
||||
N21 G90 G10 L20 P3 X5.Y4. Z6.567
|
||||
N22 G0 X5000
|
||||
N23 IF [#1 LT 0.370] GOTO 49
|
||||
N24 X-0.678 Y+.990
|
||||
N25 G84.3 X-0.1
|
||||
N26 #4=#5*COS[45]
|
||||
N27 #4=#5*SIN[45]
|
||||
N28 VZOFZ=652.9658
|
||||
%
|
@@ -0,0 +1,28 @@
|
||||
@these @_are_ @tags
|
||||
Feature: Serve coffee
|
||||
Coffee should not be served until paid for
|
||||
Coffee should not be served until the button has been pressed
|
||||
If there is no coffee left then money should be refunded
|
||||
|
||||
Scenario Outline: Eating
|
||||
Given there are <start> cucumbers
|
||||
When I eat <eat> cucumbers
|
||||
Then I should have <left> cucumbers
|
||||
|
||||
Examples:
|
||||
| start | eat | left |
|
||||
| 12 | 5 | 7 |
|
||||
| @20 | 5 | 15 |
|
||||
|
||||
Scenario: Buy last coffee
|
||||
Given there are 1 coffees left in the machine
|
||||
And I have deposited 1$
|
||||
When I press the coffee button
|
||||
Then I should be served a "coffee"
|
||||
|
||||
# this a comment
|
||||
|
||||
"""
|
||||
this is a
|
||||
pystring
|
||||
"""
|
20
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/glsl.glsl
Executable file
20
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/glsl.glsl
Executable file
@@ -0,0 +1,20 @@
|
||||
uniform float amplitude;
|
||||
attribute float displacement;
|
||||
varying vec3 vNormal;
|
||||
|
||||
void main() {
|
||||
|
||||
vNormal = normal;
|
||||
|
||||
// multiply our displacement by the
|
||||
// amplitude. The amp will get animated
|
||||
// so we'll have animated displacement
|
||||
vec3 newPosition = position +
|
||||
normal *
|
||||
vec3(displacement *
|
||||
amplitude);
|
||||
|
||||
gl_Position = projectionMatrix *
|
||||
modelViewMatrix *
|
||||
vec4(newPosition,1.0);
|
||||
}
|
171
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/gobstones.gbs
Executable file
171
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/gobstones.gbs
Executable file
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
* A Gobstones implementation of Conwey's Game of Life
|
||||
* that tries to use most of Gobstones syntax.
|
||||
*
|
||||
* Check out more about Gobstones at http://gobstones.org
|
||||
*/
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- HELPERS TO MOVE AROUND ALL THE BOARD --
|
||||
-----------------------------------------------------------
|
||||
|
||||
// This helpers allow the user to move around the board
|
||||
// one cell at a time
|
||||
procedure GoToStartOfBoard(firstDir, secondDir) {
|
||||
IrAlBorde(opuesto(firstDir))
|
||||
IrAlBorde(opuesto(secondDir))
|
||||
}
|
||||
|
||||
function isEndOfBoard(firstDir, secondDir) {
|
||||
return (not puedeMover(firstDir) && not puedeMover(secondDir))
|
||||
}
|
||||
|
||||
procedure NextCellOfTheBoard(firstDir, secondDir) {
|
||||
if (puedeMover(firstDir)) {
|
||||
Mover(firstDir)
|
||||
} else {
|
||||
IrAlBorde(opuesto(firstDir))
|
||||
Mover(secondDir)
|
||||
}
|
||||
}
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- TYPE DECLARATIONS --
|
||||
-----------------------------------------------------------
|
||||
// The cell type declarations
|
||||
type CellStatus is variant {
|
||||
case Alive {}
|
||||
case Dead {}
|
||||
}
|
||||
|
||||
type Cell is record {
|
||||
field status # CellStatus
|
||||
field color # Color
|
||||
}
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- PROGRAM DEFINITION --
|
||||
-----------------------------------------------------------
|
||||
interactive program {
|
||||
# Map key press to actions
|
||||
K_UP -> { PrepareNextTick() }
|
||||
K_RIGHT -> { CompleteNextTick() }
|
||||
K_RETURN -> { SimulateNextTick() }
|
||||
}
|
||||
|
||||
/*
|
||||
program {
|
||||
return ( numberOfNeighbors())
|
||||
}
|
||||
*/
|
||||
-----------------------------------------------------------
|
||||
-- FUNCTIONS --
|
||||
-----------------------------------------------------------
|
||||
function isCellAlive() {
|
||||
return (hayBolitas(Verde))
|
||||
}
|
||||
|
||||
function cellStatus() {
|
||||
return (
|
||||
choose
|
||||
Alive when (isCellAlive())
|
||||
Dead otherwise
|
||||
)
|
||||
}
|
||||
|
||||
function readCell() {
|
||||
return (
|
||||
Cell(color <- Verde, status <- cellStatus())
|
||||
)
|
||||
}
|
||||
|
||||
function numberOfNeighbors() {
|
||||
amountOfNeighbors := 0
|
||||
foreach dir in [minDir() .. maxDir()] {
|
||||
amountOfNeighbors := amountOfNeighbors + aliveCellsAt(dir)
|
||||
}
|
||||
return (amountOfNeighbors)
|
||||
}
|
||||
|
||||
function aliveCellsAt(dir) {
|
||||
firstCompare := puedeMover(dir) && hasAliveCellAt(dir)
|
||||
secondCompare := puedeMover(dir) && puedeMover(siguiente(dir)) && hasAliveCellAtD(dir)
|
||||
value :=
|
||||
matching (firstCompare) select
|
||||
1 on True
|
||||
0 otherwise
|
||||
+
|
||||
matching (secondCompare) select
|
||||
1 on True
|
||||
0 otherwise
|
||||
return (value)
|
||||
}
|
||||
|
||||
function hasAliveCellAt(dir) {
|
||||
Mover(dir)
|
||||
return (isCellAlive())
|
||||
}
|
||||
|
||||
function hasAliveCellAtD(dir) {
|
||||
Mover(dir)
|
||||
Mover(siguiente(dir))
|
||||
return (isCellAlive())
|
||||
}
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- ROCEDURES DECLARATIONS --
|
||||
-----------------------------------------------------------
|
||||
procedure TagAsReanimated() {
|
||||
Poner(Azul)
|
||||
}
|
||||
|
||||
procedure TagAsDead() {
|
||||
Poner(Rojo)
|
||||
}
|
||||
|
||||
procedure ProcessAction() {
|
||||
switch (hayBolitas(Rojo)) {
|
||||
True -> { Sacar(Verde); Sacar(Rojo) }
|
||||
_ -> {}
|
||||
}
|
||||
switch (hayBolitas(Azul)) {
|
||||
True -> { Poner(Verde); Sacar(Azul) }
|
||||
_ -> {}
|
||||
}
|
||||
}
|
||||
|
||||
procedure TagCell(numNeighbors) {
|
||||
if ( isCellAlive() && numNeighbors < 2) { TagAsDead() }
|
||||
elseif ( isCellAlive() && numNeighbors > 3) { TagAsDead() }
|
||||
elseif ((not isCellAlive()) && numNeighbors == 3) { TagAsReanimated() }
|
||||
}
|
||||
|
||||
procedure SimulateTicks(amount) {
|
||||
repeat(amount) {
|
||||
SimulateNextTick()
|
||||
}
|
||||
}
|
||||
|
||||
procedure SimulateNextTick() {
|
||||
PrepareNextTick()
|
||||
CompleteNextTick()
|
||||
}
|
||||
|
||||
procedure PrepareNextTick() {
|
||||
GoToStartOfBoard(Norte, Este)
|
||||
while (not isEndOfBoard(Norte, Este)) {
|
||||
TagCell(numberOfNeighbors())
|
||||
NextCellOfTheBoard(Norte, Este)
|
||||
}
|
||||
TagCell(numberOfNeighbors())
|
||||
}
|
||||
|
||||
procedure CompleteNextTick() {
|
||||
GoToStartOfBoard(Norte, Este)
|
||||
while (not isEndOfBoard(Norte, Este)) {
|
||||
ProcessAction()
|
||||
NextCellOfTheBoard(Norte, Este)
|
||||
}
|
||||
ProcessAction()
|
||||
}
|
34
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/golang.go
Executable file
34
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/golang.go
Executable file
@@ -0,0 +1,34 @@
|
||||
// Concurrent computation of pi.
|
||||
// See http://goo.gl/ZuTZM.
|
||||
//
|
||||
// This demonstrates Go's ability to handle
|
||||
// large numbers of concurrent processes.
|
||||
// It is an unreasonable way to calculate pi.
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println(pi(5000))
|
||||
}
|
||||
|
||||
// pi launches n goroutines to compute an
|
||||
// approximation of pi.
|
||||
func pi(n int) float64 {
|
||||
ch := make(chan float64)
|
||||
for k := 0; k <= n; k++ {
|
||||
go term(ch, float64(k))
|
||||
}
|
||||
f := 0.0
|
||||
for k := 0; k <= n; k++ {
|
||||
f += <-ch
|
||||
}
|
||||
return f
|
||||
}
|
||||
|
||||
func term(ch chan float64, k float64) {
|
||||
ch <- 4 * math.Pow(-1, k) / (2*k + 1)
|
||||
}
|
@@ -0,0 +1,73 @@
|
||||
# Main Schema
|
||||
schema {
|
||||
query: Query;
|
||||
}
|
||||
|
||||
scalar Date;
|
||||
|
||||
# Simple type to contain all scalar types
|
||||
type AllTypes {
|
||||
# Field Description for String
|
||||
testString: String;
|
||||
# Field Description for Int
|
||||
testInt: Int;
|
||||
# Field Description for ID
|
||||
testID: ID;
|
||||
# Field Description for Boolean
|
||||
testBoolean: Boolean;
|
||||
# Field Description for Float
|
||||
testFloat: Float;
|
||||
}
|
||||
|
||||
interface ISearchable {
|
||||
searchPreview: String!;
|
||||
}
|
||||
|
||||
union ProductTypes = Movie | Book;
|
||||
|
||||
# Testing enum
|
||||
enum MovieGenere {
|
||||
ACTION
|
||||
COMEDY
|
||||
THRILLER
|
||||
DRAMA
|
||||
}
|
||||
|
||||
# Testing Input
|
||||
input SearchByGenere {
|
||||
before: Date;
|
||||
after: Date;
|
||||
genere: MovieGenere!;
|
||||
}
|
||||
|
||||
# Testing Interface
|
||||
type Movie implements ISearchable {
|
||||
id: ID!;
|
||||
searchPreview: String!;
|
||||
rentPrice: Float;
|
||||
publishDate: Date;
|
||||
genere: MovieGenere;
|
||||
cast: [String];
|
||||
}
|
||||
|
||||
# Testing Interface
|
||||
type Book implements ISearchable {
|
||||
id: ID!;
|
||||
searchPreview: String!;
|
||||
price: Float;
|
||||
publishDate: Date;
|
||||
authors: [String];
|
||||
}
|
||||
|
||||
type Query {
|
||||
testString: String;
|
||||
testDate; Date;
|
||||
allTypes: AllTypes;
|
||||
allProducts: [ProductTypes];
|
||||
|
||||
# searches only movies by genere with sophisticated argument
|
||||
searchMovieByGenere(searchObject: SearchByGenere!): [Movie];
|
||||
|
||||
# Searchs all products by text string
|
||||
searchProduct(text: String!): [ISearchable];
|
||||
}
|
@@ -0,0 +1,41 @@
|
||||
//http://groovy.codehaus.org/Martin+Fowler%27s+closure+examples+in+Groovy
|
||||
|
||||
class Employee {
|
||||
def name, salary
|
||||
boolean manager
|
||||
String toString() { return name }
|
||||
}
|
||||
|
||||
def emps = [new Employee(name:'Guillaume', manager:true, salary:200),
|
||||
new Employee(name:'Graeme', manager:true, salary:200),
|
||||
new Employee(name:'Dierk', manager:false, salary:151),
|
||||
new Employee(name:'Bernd', manager:false, salary:50)]
|
||||
|
||||
def managers(emps) {
|
||||
emps.findAll { e -> e.isManager() }
|
||||
}
|
||||
|
||||
assert emps[0..1] == managers(emps) // [Guillaume, Graeme]
|
||||
|
||||
def highPaid(emps) {
|
||||
threshold = 150
|
||||
emps.findAll { e -> e.salary > threshold }
|
||||
}
|
||||
|
||||
assert emps[0..2] == highPaid(emps) // [Guillaume, Graeme, Dierk]
|
||||
|
||||
def paidMore(amount) {
|
||||
{ e -> e.salary > amount}
|
||||
}
|
||||
def highPaid = paidMore(150)
|
||||
|
||||
assert highPaid(emps[0]) // true
|
||||
assert emps[0..2] == emps.findAll(highPaid)
|
||||
|
||||
def filename = 'test.txt'
|
||||
new File(filename).withReader{ reader -> doSomethingWith(reader) }
|
||||
|
||||
def readersText
|
||||
def doSomethingWith(reader) { readersText = reader.text }
|
||||
|
||||
assert new File(filename).text == readersText
|
75
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/haml.haml
Executable file
75
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/haml.haml
Executable file
@@ -0,0 +1,75 @@
|
||||
!!!5
|
||||
|
||||
/[if IE]
|
||||
%a{ :href => 'http://www.mozilla.com/en-US/firefox/' }
|
||||
%h1 Get Firefox
|
||||
|
||||
-# This is a HAML comment. It will not show in the output HTML
|
||||
|
||||
-#
|
||||
This is a HAML multiline comment
|
||||
This won't be displayed
|
||||
Nor will this
|
||||
Nor will this.
|
||||
|
||||
/ This is a HTML comment. It will be rendered as HTML
|
||||
|
||||
/
|
||||
%p This doesn't render...
|
||||
%div
|
||||
%h1 Because it's commented out!
|
||||
|
||||
.row
|
||||
.col-md-6
|
||||
|
||||
.col-md-6
|
||||
|
||||
|
||||
#users.row.green
|
||||
#articles{:style => "border: 5px;"}
|
||||
#lists.list-inline
|
||||
|
||||
%div#todos.bg-green{:id => "#{@item.type}_#{@item.number}", :class => '#{@item.type} #{@item.urgency}', :phoney => `asdasdasd`}
|
||||
|
||||
/ file: app/views/movies/index.html.haml
|
||||
|
||||
%ads:{:bleh => 33}
|
||||
%p
|
||||
Date/Time:
|
||||
- now = DateTime.now
|
||||
%strong= now
|
||||
= if now DateTime.parse("December 31, 2006")
|
||||
= "Happy new " + "year!"
|
||||
|
||||
%sfd.dfdfg
|
||||
#content
|
||||
.title
|
||||
%h1= @title
|
||||
= link_to 'Home', home_url
|
||||
|
||||
#contents
|
||||
%div#content
|
||||
%div.articles
|
||||
%div.article.title Blah
|
||||
%div.article.date 2006-11-05
|
||||
%div.article.entry
|
||||
Neil Patrick Harris
|
||||
|
||||
%div[@user, :greeting]
|
||||
%bar[290]
|
||||
|
||||
/ This is a comment
|
||||
|
||||
/ This is another comment with line break above
|
||||
|
||||
.row
|
||||
.col-md-6
|
||||
.col-md-6
|
||||
|
||||
.col-md-6
|
||||
|
||||
.row
|
||||
.col-md-6
|
||||
|
||||
|
||||
.col-md-6
|
@@ -0,0 +1,8 @@
|
||||
{{!-- Ace + :-}} --}}
|
||||
|
||||
<div id="comments">
|
||||
{{#each comments}}
|
||||
<h2><a href="/posts/{{../permalink}}#{{id}}">{{title}}</a></h2>
|
||||
<div>{{{body}}}</div>
|
||||
{{/each}}
|
||||
</div>
|
20
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/haskell.hs
Executable file
20
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/haskell.hs
Executable file
@@ -0,0 +1,20 @@
|
||||
-- Type annotation (optional)
|
||||
fib :: Int -> Integer
|
||||
|
||||
-- With self-referencing data
|
||||
fib n = fibs !! n
|
||||
where fibs = 0 : scanl (+) 1 fibs
|
||||
-- 0,1,1,2,3,5,...
|
||||
|
||||
-- Same, coded directly
|
||||
fib n = fibs !! n
|
||||
where fibs = 0 : 1 : next fibs
|
||||
next (a : t@(b:_)) = (a+b) : next t
|
||||
|
||||
-- Similar idea, using zipWith
|
||||
fib n = fibs !! n
|
||||
where fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
|
||||
|
||||
-- Using a generator function
|
||||
fib n = fibs (0,1) !! n
|
||||
where fibs (a,b) = a : fibs (b,a+b)
|
@@ -0,0 +1,77 @@
|
||||
name: reload
|
||||
version: 0.1.0.0
|
||||
synopsis: Initial project template from stack
|
||||
Description:
|
||||
The \'cabal\' command-line program simplifies the process of managing
|
||||
Haskell software by automating the fetching, configuration, compilation
|
||||
and installation of Haskell libraries and programs.
|
||||
homepage: https://github.com/jpmoresmau/dbIDE/reload#readme
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
author: JP Moresmau
|
||||
maintainer: jpmoresmau@gmail.com
|
||||
copyright: 2016 JP Moresmau
|
||||
category: Web
|
||||
build-type: Simple
|
||||
-- extra-source-files:
|
||||
cabal-version: >=1.10
|
||||
|
||||
Flag network-uri
|
||||
description: Get Network.URI from the network-uri package
|
||||
default: True
|
||||
|
||||
library
|
||||
hs-source-dirs: src
|
||||
exposed-modules: Language.Haskell.Reload
|
||||
build-depends: base >= 4.7 && < 5
|
||||
, aeson
|
||||
, scotty
|
||||
, wai
|
||||
, text
|
||||
, directory
|
||||
, filepath
|
||||
, bytestring
|
||||
, containers
|
||||
, mime-types
|
||||
, transformers
|
||||
, wai-handler-launch
|
||||
, wai-middleware-static
|
||||
, wai-extra
|
||||
, http-types
|
||||
default-language: Haskell2010
|
||||
other-modules: Language.Haskell.Reload.FileBrowser
|
||||
ghc-options: -Wall -O2
|
||||
|
||||
executable reload-exe
|
||||
hs-source-dirs: app
|
||||
main-is: Main.hs
|
||||
ghc-options: -threaded -O2 -rtsopts -with-rtsopts=-N
|
||||
build-depends: base
|
||||
, reload
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite reload-test
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: test
|
||||
main-is: Spec.hs
|
||||
build-depends: base
|
||||
, reload
|
||||
, hspec
|
||||
, hspec-wai
|
||||
, hspec-wai-json
|
||||
, aeson
|
||||
, directory
|
||||
, filepath
|
||||
, text
|
||||
, containers
|
||||
, unordered-containers
|
||||
, bytestring
|
||||
, wai-extra
|
||||
ghc-options: -threaded -O2 -rtsopts -with-rtsopts=-N
|
||||
default-language: Haskell2010
|
||||
other-modules: Language.Haskell.Reload.FileBrowserSpec
|
||||
Language.Haskell.ReloadSpec
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/jpmoresmau/dbIDE/reload
|
17
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/haxe.hx
Executable file
17
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/haxe.hx
Executable file
@@ -0,0 +1,17 @@
|
||||
class Haxe
|
||||
{
|
||||
public static function main()
|
||||
{
|
||||
// Say Hello!
|
||||
var greeting:String = "Hello World";
|
||||
trace(greeting);
|
||||
|
||||
var targets:Array<String> = ["Flash","Javascript","PHP","Neko","C++","iOS","Android","webOS"];
|
||||
trace("Haxe is a great language that can target:");
|
||||
for (target in targets)
|
||||
{
|
||||
trace (" - " + target);
|
||||
}
|
||||
trace("And many more!");
|
||||
}
|
||||
}
|
16
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/hjson.hjson
Executable file
16
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/hjson.hjson
Executable file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
# specify rate in requests/second (because comments are helpful!)
|
||||
rate: 1000
|
||||
|
||||
// prefer c-style comments?
|
||||
/* feeling old fashioned? */
|
||||
|
||||
# did you notice that rate doesn't need quotes?
|
||||
hey: look ma, no quotes for strings either!
|
||||
|
||||
# best of all
|
||||
notice: []
|
||||
anything: ?
|
||||
|
||||
# yes, commas are optional!
|
||||
}
|
10
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/htaccess
Executable file
10
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/htaccess
Executable file
@@ -0,0 +1,10 @@
|
||||
Redirect /linux http://www.linux.org
|
||||
Redirect 301 /kernel http://www.linux.org
|
||||
|
||||
# comment
|
||||
RewriteEngine on
|
||||
|
||||
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*
|
||||
RewriteRule ^/$ /homepage.max.html [L]
|
||||
|
||||
RewriteRule ^/$ /homepage.std.html [L]
|
17
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/html.html
Executable file
17
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/html.html
Executable file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<style type="text/css">
|
||||
.text-layer {
|
||||
font-family: Monaco, "Courier New", monospace;
|
||||
font-size: 12px;
|
||||
cursor: text;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1 style="color:red">Juhu Kinners</h1>
|
||||
</body>
|
||||
</html>
|
@@ -0,0 +1,26 @@
|
||||
<h1>Listing Books</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Summary</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<%= for book <- @books do %>
|
||||
<tr>
|
||||
<%# comment %>
|
||||
<td><%= book.title %></td>
|
||||
<td><%= book.content %></td>
|
||||
<td><%= link "Show", to: book_path(@conn, :show, book) %></td>
|
||||
<td><%= link "Edit", to: book_path(@conn, :edit, book) %></td>
|
||||
<td><%= link "Delete", to: book_path(@conn, :delete, book), method: :delete, data: [confirm: "Are you sure?"] %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link "New book", to: book_path(@conn, :new) %>
|
@@ -0,0 +1,26 @@
|
||||
<h1>Listing Books</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Summary</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @books.each do |book| %>
|
||||
<tr>
|
||||
<%# comment %>
|
||||
<td><%= book.title %></td>
|
||||
<td><%= book.content %></td>
|
||||
<td><%= link_to 'Show', book %></td>
|
||||
<td><%= link_to 'Edit', edit_book_path(book) %></td>
|
||||
<td><%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New book', new_book_path %>
|
4
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/ini.ini
Executable file
4
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/ini.ini
Executable file
@@ -0,0 +1,4 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=..\logo.png
|
||||
[ViewState]
|
||||
FolderType=Generic
|
6
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/io.io
Executable file
6
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/io.io
Executable file
@@ -0,0 +1,6 @@
|
||||
// computes factorial of a number
|
||||
factorial := method(n,
|
||||
if(n == 0, return 1)
|
||||
res := 1
|
||||
Range 1 to(n) foreach(i, res = res * i)
|
||||
)
|
68
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/ion.ion
Executable file
68
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/ion.ion
Executable file
@@ -0,0 +1,68 @@
|
||||
// Comment
|
||||
/*
|
||||
Multi
|
||||
Line
|
||||
Comment
|
||||
*/
|
||||
[1,2,3,45 /*TODO: should be 42, obviously*/, 2016-04-21T08:10:46Z, 2016-04-21T08:10:46-08:00, 2016-04-21, 2016, 0x5, 0b0110]
|
||||
(5 7 1 3 [
|
||||
'a', 'b',
|
||||
null, null.int, null.bool, null.list,
|
||||
true, false,
|
||||
nan, -inf, +inf,
|
||||
"str",
|
||||
"str with embedded \" ",
|
||||
'''str with embedded \''' ''',
|
||||
{{"clob content"}},
|
||||
{{ AB/ }}
|
||||
])
|
||||
|
||||
'''
|
||||
|
||||
multi
|
||||
line
|
||||
string
|
||||
|
||||
'''
|
||||
|
||||
states::{
|
||||
// https://amzn.github.io/ion-docs/docs/spec.html
|
||||
root: rules::[
|
||||
include::'value'
|
||||
],
|
||||
|
||||
// https://amzn.github.io/ion-docs/docs/spec.html#string
|
||||
string: rules::[
|
||||
match :: {
|
||||
regex: "(\\\")((?:\\\\\"|[^\"])*)(\\\")",
|
||||
token: ['string.dblq.punc.start', 'string.dblq', 'string.dblq.punc.end']
|
||||
},
|
||||
push::{
|
||||
regex: "\'{3}",
|
||||
token: 'string.trpq.punc.start',
|
||||
states: rules::[
|
||||
pop :: {
|
||||
regex: "\'{3}",
|
||||
token: 'string.trpq.punc.end',
|
||||
},
|
||||
match::{
|
||||
regex: "(?:\\\\'*|.|[^']*)",
|
||||
token: 'string.trpq'
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
|
||||
/*
|
||||
...
|
||||
*/
|
||||
}
|
||||
{
|
||||
"json": {
|
||||
"compatibility": true,
|
||||
"open sourced": "2016-04-21T08:10:46Z",
|
||||
"foo": 9,
|
||||
"bar": 1.1,
|
||||
"baz": [{"id": 1}, {"id":2}]
|
||||
}
|
||||
}
|
247
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jack.jack
Executable file
247
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jack.jack
Executable file
@@ -0,0 +1,247 @@
|
||||
vars it, p
|
||||
|
||||
p = {label, value|
|
||||
print("\n" + label)
|
||||
print(inspect(value))
|
||||
}
|
||||
-- Create an array from 0 to 15
|
||||
p("range", i-collect(range(5)))
|
||||
|
||||
-- Create an array from 0 to 15 and break up in chunks of 4
|
||||
p("chunked range", i-collect(i-chunk(4, range(16))))
|
||||
|
||||
-- Check if all or none items in stream pass test.
|
||||
p("all < 60 in range(60)", i-all?({i|i<60}, range(60)))
|
||||
p("any < 60 in range(60)", i-any?({i|i>60}, range(60)))
|
||||
p("all < 60 in range(70)", i-all?({i|i<60}, range(70)))
|
||||
p("any < 60 in range(70)", i-any?({i|i>60}, range(70)))
|
||||
|
||||
-- Zip three different collections together
|
||||
p("zipped", i-collect(i-zip(
|
||||
range(10),
|
||||
[1,2,3,4,5],
|
||||
i-map({i|i*i}, range(10))
|
||||
)))
|
||||
|
||||
vars names, person, i, doubles, lengths, cubeRange
|
||||
names = ["Thorin", "Dwalin", "Balin", "Bifur", "Bofur", "Bombur", "Oin",
|
||||
"Gloin", "Ori", "Nori", "Dori", "Fili", "Kili", "Bilbo", "Gandalf"]
|
||||
|
||||
for name in names {
|
||||
if name != "Bilbo" && name != "Gandalf" {
|
||||
print(name)
|
||||
}
|
||||
}
|
||||
|
||||
person = {name: "Tim", age: 30}
|
||||
for key, value in person {
|
||||
print(key + " = " + value)
|
||||
}
|
||||
|
||||
i = 0
|
||||
while i < 10 {
|
||||
i = i + 1
|
||||
print(i)
|
||||
}
|
||||
|
||||
print("range")
|
||||
for i in range(10) {
|
||||
print(i + 1)
|
||||
}
|
||||
for i in range(10) {
|
||||
print(10 - i)
|
||||
}
|
||||
|
||||
-- Dynamic object that gives the first 10 doubles
|
||||
doubles = {
|
||||
@len: {| 10 }
|
||||
@get: {key|
|
||||
if key is Integer { key * key }
|
||||
}
|
||||
}
|
||||
print("#doubles", #doubles)
|
||||
|
||||
print("Doubles")
|
||||
for k, v in doubles {
|
||||
print([k, v])
|
||||
}
|
||||
|
||||
-- Dynamic object that has names list as keys and string lenth as values
|
||||
lengths = {
|
||||
@keys: {| names }
|
||||
@get: {key|
|
||||
if key is String { #key }
|
||||
}
|
||||
}
|
||||
|
||||
print ("Lengths")
|
||||
for k, v in lengths {
|
||||
print([k, v])
|
||||
}
|
||||
|
||||
|
||||
cubeRange = {n|
|
||||
vars i, v
|
||||
i = 0
|
||||
{
|
||||
@call: {|
|
||||
v = i
|
||||
i = i + 1
|
||||
if v < n { v * v * v }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
print("Cubes")
|
||||
for k, v in cubeRange(5) {
|
||||
print([k, v])
|
||||
}
|
||||
print("String")
|
||||
for k, v in "Hello World" {
|
||||
print([k, v])
|
||||
}
|
||||
|
||||
|
||||
print([i for i in range(10)])
|
||||
print([i for i in range(20) if i % 3])
|
||||
|
||||
|
||||
|
||||
-- Example showing how to do parallel work using split..and
|
||||
base = {bootstrap, target-dir|
|
||||
split {
|
||||
copy("res", target-dir)
|
||||
} and {
|
||||
if newer("src/*.less", target-dir + "/style.css") {
|
||||
lessc("src/" + bootstrap + ".less", target-dir + "/style.css")
|
||||
}
|
||||
} and {
|
||||
build("src/" + bootstrap + ".js", target-dir + "/app.js")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
vars Dragon, pet
|
||||
|
||||
Dragon = {name|
|
||||
vars asleep, stuff-in-belly, stuff-in-intestine,
|
||||
feed, walk, put-to-bed, toss, rock,
|
||||
hungry?, poopy?, passage-of-time
|
||||
|
||||
asleep = false
|
||||
stuff-in-belly = 10 -- He's full.
|
||||
stuff-in-intestine = 0 -- He doesn't need to go.
|
||||
|
||||
print(name + ' is born.')
|
||||
|
||||
feed = {|
|
||||
print('You feed ' + name + '.')
|
||||
stuff-in-belly = 10
|
||||
passage-of-time()
|
||||
}
|
||||
|
||||
walk = {|
|
||||
print('You walk ' + name + ".")
|
||||
stuff-in-intestine = 0
|
||||
passage-of-time
|
||||
}
|
||||
|
||||
put-to-bed = {|
|
||||
print('You put ' + name + ' to bed.')
|
||||
asleep = true
|
||||
for i in range(3) {
|
||||
if asleep {
|
||||
passage-of-time()
|
||||
}
|
||||
if asleep {
|
||||
print(name + ' snores, filling the room with smoke.')
|
||||
}
|
||||
}
|
||||
if asleep {
|
||||
asleep = false
|
||||
print(name + ' wakes up slowly.')
|
||||
}
|
||||
}
|
||||
|
||||
toss = {|
|
||||
print('You toss ' + name + ' up into the air.')
|
||||
print('He giggles, which singes your eyebrows.')
|
||||
passage-of-time()
|
||||
}
|
||||
|
||||
rock = {|
|
||||
print('You rock ' + name + ' gently.')
|
||||
asleep = true
|
||||
print('He briefly dozes off...')
|
||||
passage-of-time()
|
||||
if asleep {
|
||||
asleep = false
|
||||
print('...but wakes when you stop.')
|
||||
}
|
||||
}
|
||||
|
||||
hungry? = {|
|
||||
stuff-in-belly <= 2
|
||||
}
|
||||
|
||||
poopy? = {|
|
||||
stuff-in-intestine >= 8
|
||||
}
|
||||
|
||||
passage-of-time = {|
|
||||
if stuff-in-belly > 0 {
|
||||
-- Move food from belly to intestine
|
||||
stuff-in-belly = stuff-in-belly - 1
|
||||
stuff-in-intestine = stuff-in-intestine + 1
|
||||
} else { -- Our dragon is starving!
|
||||
if asleep {
|
||||
asleep = false
|
||||
print('He wakes up suddenly!')
|
||||
}
|
||||
print(name + ' is starving! In desperation, he ate YOU!')
|
||||
abort "died"
|
||||
}
|
||||
|
||||
if stuff-in-intestine >= 10 {
|
||||
stuff-in-intestine = 0
|
||||
print('Whoops! ' + name + ' had an accident...')
|
||||
}
|
||||
|
||||
if hungry?() {
|
||||
if asleep {
|
||||
asleep = false
|
||||
print('He wakes up suddenly!')
|
||||
}
|
||||
print(name + "'s stomach grumbles...")
|
||||
}
|
||||
|
||||
if poopy?() {
|
||||
if asleep {
|
||||
asleep = false
|
||||
print('He wakes up suddenly!')
|
||||
}
|
||||
print(name + ' does the potty dance...')
|
||||
}
|
||||
}
|
||||
|
||||
-- Export the public interface to this closure object.
|
||||
{
|
||||
feed: feed
|
||||
walk: walk
|
||||
put-to-bed: put-to-bed
|
||||
toss: toss
|
||||
rock: rock
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
pet = Dragon('Norbert')
|
||||
pet.feed()
|
||||
pet.toss()
|
||||
pet.walk()
|
||||
pet.put-to-bed()
|
||||
pet.rock()
|
||||
pet.put-to-bed()
|
||||
pet.put-to-bed()
|
||||
pet.put-to-bed()
|
||||
pet.put-to-bed()
|
45
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jade.jade
Executable file
45
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jade.jade
Executable file
@@ -0,0 +1,45 @@
|
||||
!!!doctype
|
||||
!!!5
|
||||
!!!
|
||||
|
||||
include something
|
||||
|
||||
include another_thing
|
||||
|
||||
// let's talk about it
|
||||
|
||||
//
|
||||
here it is. a block comment!
|
||||
and another row!
|
||||
but not here.
|
||||
|
||||
//
|
||||
a far spaced
|
||||
should be lack of block
|
||||
|
||||
// also not a comment
|
||||
div.attemptAtBlock
|
||||
|
||||
span#myName
|
||||
|
||||
#{implicit}
|
||||
!{more_explicit}
|
||||
|
||||
#idDiv
|
||||
|
||||
.idDiv
|
||||
|
||||
test(id="tag")
|
||||
header(id="tag", blah="foo", meh="aads")
|
||||
mixin article(obj, parents)
|
||||
|
||||
mixin bleh()
|
||||
|
||||
mixin clever-name
|
||||
|
||||
-var x = "0";
|
||||
- y each z
|
||||
|
||||
- var items = ["one", "two", "three"]
|
||||
each item in items
|
||||
li= item
|
39
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/java.java
Executable file
39
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/java.java
Executable file
@@ -0,0 +1,39 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.Vector;
|
||||
|
||||
public class InfiniteLoop {
|
||||
|
||||
/*
|
||||
* This will cause the program to hang...
|
||||
*
|
||||
* Taken from:
|
||||
* http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/
|
||||
*/
|
||||
@Override
|
||||
public static void main(String[] args) {
|
||||
double d = Double.parseDouble("2.2250738585072012e-308");
|
||||
|
||||
// unreachable code
|
||||
System.out.println("Value: " + d);
|
||||
}
|
||||
}
|
||||
|
||||
String name = "Joan"; String info = STR."My name is \{name}";
|
||||
|
||||
STR."Today's weather is \{ getFeelsLike() }, with a temperature of \{ getTemperature()++ } degrees \{ getUnit() }"
|
||||
|
||||
String nestedMultilineTemplates() {
|
||||
return STR."""
|
||||
{
|
||||
"outerKey1": "outerValue1",
|
||||
"nestedTemplate": "\{
|
||||
STR."""
|
||||
{
|
||||
"innerKey": "\{innerValue.get()}"
|
||||
}
|
||||
"""
|
||||
}",
|
||||
"outerKey2": "outerValue2"
|
||||
}
|
||||
""";
|
||||
}
|
10
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/javascript.js
vendored
Executable file
10
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/javascript.js
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
*
|
||||
* @param {string[]} items
|
||||
* @param nada
|
||||
*/
|
||||
function foo(items, nada) {
|
||||
for (var i=0; i<items.length; i++) {
|
||||
alert(items[i] + "juhu\n");
|
||||
} // Real Tab.
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
|
||||
var exports = {};
|
||||
export default exports;
|
||||
function foo(items, nada) {
|
||||
for (var i=0; i<items.length; i++) {
|
||||
alert(items[i] + "juhu\n");
|
||||
} // Real Tab.
|
||||
}
|
20
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jexl.jexl
Executable file
20
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jexl.jexl
Executable file
@@ -0,0 +1,20 @@
|
||||
#pragma execution.option 42
|
||||
|
||||
##
|
||||
## This is a test script
|
||||
##
|
||||
|
||||
/* This is
|
||||
a multi-line
|
||||
comment
|
||||
*/
|
||||
if (out != null and result == null) out.println("The result is " + result);
|
||||
x = ~/\w+\/test/;
|
||||
y = 2;
|
||||
result = x * y + 5;
|
||||
if (out != null) out.println("The result is " + result);
|
||||
|
||||
@lenient @silent x.someMethod();
|
||||
|
||||
`multi-line string
|
||||
with ${var interpolation = "Hey!"} and \escap\u00E9 chars`
|
66
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/json.json
Executable file
66
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/json.json
Executable file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"query": {
|
||||
"count": 10,
|
||||
"created": "2011-06-21T08:10:46Z",
|
||||
"lang": "en-US",
|
||||
"results": {
|
||||
"photo": [
|
||||
{
|
||||
"farm": "6",
|
||||
"id": "5855620975",
|
||||
"isfamily": "0",
|
||||
"isfriend": "0",
|
||||
"ispublic": "1",
|
||||
"owner": "32021554@N04",
|
||||
"secret": "f1f5e8515d",
|
||||
"server": "5110",
|
||||
"title": "7087 bandit cat"
|
||||
},
|
||||
{
|
||||
"farm": "4",
|
||||
"id": "5856170534",
|
||||
"isfamily": "0",
|
||||
"isfriend": "0",
|
||||
"ispublic": "1",
|
||||
"owner": "32021554@N04",
|
||||
"secret": "ff1efb2a6f",
|
||||
"server": "3217",
|
||||
"title": "6975 rusty cat"
|
||||
},
|
||||
{
|
||||
"farm": "6",
|
||||
"id": "5856172972",
|
||||
"isfamily": "0",
|
||||
"isfriend": "0",
|
||||
"ispublic": "1",
|
||||
"owner": "51249875@N03",
|
||||
"secret": "6c6887347c",
|
||||
"server": "5192",
|
||||
"title": "watermarked-cats"
|
||||
},
|
||||
{
|
||||
"farm": "6",
|
||||
"id": "5856168328",
|
||||
"isfamily": "0",
|
||||
"isfriend": "0",
|
||||
"ispublic": "1",
|
||||
"owner": "32021554@N04",
|
||||
"secret": "0c1cfdf64c",
|
||||
"server": "5078",
|
||||
"title": "7020 mandy cat"
|
||||
},
|
||||
{
|
||||
"farm": "3",
|
||||
"id": "5856171774",
|
||||
"isfamily": "0",
|
||||
"isfriend": "0",
|
||||
"ispublic": "1",
|
||||
"owner": "32021554@N04",
|
||||
"secret": "7f5a3180ab",
|
||||
"server": "2696",
|
||||
"title": "7448 bobby cat"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
25
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/json5.json5
Executable file
25
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/json5.json5
Executable file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
foo: 'bar',
|
||||
while: true,
|
||||
|
||||
this: 'is a \
|
||||
multi-line string',
|
||||
|
||||
// this is an inline comment
|
||||
here: 'is another', // inline comment
|
||||
|
||||
/* this is a block comment
|
||||
that continues on another line */
|
||||
|
||||
hex: 0xDEADbeef,
|
||||
half: .5,
|
||||
delta: +10,
|
||||
to: Infinity, // and beyond!
|
||||
|
||||
finally: 'a trailing comma',
|
||||
oh: [
|
||||
"we shouldn't forget",
|
||||
'arrays can have',
|
||||
'trailing commas too',
|
||||
],
|
||||
}
|
@@ -0,0 +1 @@
|
||||
TODO
|
101
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jsp.jsp
Executable file
101
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jsp.jsp
Executable file
@@ -0,0 +1,101 @@
|
||||
<%-- initial comment --%>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%--@ page isELIgnored="true" //Now EL will be ignored --%>
|
||||
<html>
|
||||
<jsp:declaration>
|
||||
int day = 3;
|
||||
</jsp:declaration>
|
||||
<%@ include file="relative url" %>
|
||||
<jsp:directive.include file="relative url" />
|
||||
<head>
|
||||
<title>Day <%= day %></title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
var x = "abc";
|
||||
function y {
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.class {
|
||||
background: #124356;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>
|
||||
Today's date: <%= (new java.util.Date()).toLocaleString()%>
|
||||
</p>
|
||||
<%! int day = 3; %>
|
||||
|
||||
<jsp:directive.page attribute="value" />
|
||||
|
||||
|
||||
<%-- This comment will not be visible in the page source --%>
|
||||
<!-- html comment -->
|
||||
<body>
|
||||
<p>
|
||||
Today's date: <%= (new java.util.Date()).toLocaleString()%>
|
||||
</p>
|
||||
|
||||
<%! int i = 0; %>
|
||||
<jsp:declaration>
|
||||
int j = 10;
|
||||
</jsp:declaration>
|
||||
|
||||
<%-- This is JSP comment --%>
|
||||
<%@ directive attribute="value" %>
|
||||
|
||||
<h2>Select Languages:</h2>
|
||||
|
||||
<form ACTION="jspCheckBox.jsp">
|
||||
<input type="checkbox" name="id" value="Java"> Java<BR>
|
||||
<input type="checkbox" name="id" value=".NET"> .NET<BR>
|
||||
<input type="checkbox" name="id" value="PHP"> PHP<BR>
|
||||
<input type="checkbox" name="id" value="C/C++"> C/C++<BR>
|
||||
<input type="checkbox" name="id" value="PERL"> PERL <BR>
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
|
||||
<%
|
||||
String select[] = request.getParameterValues("id");
|
||||
if (select != null && select.length != 0) {
|
||||
out.println("You have selected: ");
|
||||
for (int i = 0; i < select.length; i++) {
|
||||
out.println(select[i]);
|
||||
}
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
switch(day) {
|
||||
case 0:
|
||||
out.println("It\'s Sunday.");
|
||||
break;
|
||||
case 1:
|
||||
out.println("It\'s Monday.");
|
||||
break;
|
||||
case 2:
|
||||
out.println("It\'s Tuesday.");
|
||||
break;
|
||||
case 3:
|
||||
out.println("It\'s Wednesday.");
|
||||
break;
|
||||
case 4:
|
||||
out.println("It\'s Thursday.");
|
||||
break;
|
||||
case 5:
|
||||
out.println("It\'s Friday.");
|
||||
break;
|
||||
//hello
|
||||
default:
|
||||
out.println("It's Saturday.");
|
||||
}
|
||||
%>
|
||||
<p>
|
||||
<jsp:scriptlet>
|
||||
out.println("Your IP address is " + request.getRemoteAddr());
|
||||
</jsp:scriptlet>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
25
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jssm.jssm
Executable file
25
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jssm.jssm
Executable file
@@ -0,0 +1,25 @@
|
||||
|
||||
machine_name : "Three-state traffic light, plus off and flash-red";
|
||||
machine_version : 1.2.1;
|
||||
|
||||
jssm_version : >= 5.0.0;
|
||||
graph_layout : dot;
|
||||
|
||||
on_init : ${setup};
|
||||
on_halt : ${finalize};
|
||||
|
||||
|
||||
|
||||
/* turn on */
|
||||
Off 'Enable' { follow: ${turned_on}; } -> Red;
|
||||
|
||||
// main sequence
|
||||
Red 'Proceed' => Green 'Proceed' => Yellow 'Proceed' => Red;
|
||||
|
||||
// emergency flash red
|
||||
[Red Yellow Green] 'Flash' -> Flash;
|
||||
Flash 'Proceed' { label: 'no change'; } -> Flash 'Exit' -> Red;
|
||||
|
||||
// turn off
|
||||
[Red Yellow Green Flash] 'Disable' { follow: ${turned_off}; } ~> Off;
|
||||
|
9
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jsx.jsx
Executable file
9
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/jsx.jsx
Executable file
@@ -0,0 +1,9 @@
|
||||
import * as React from "react";
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<div variant="p">
|
||||
Keywords here are not highlighted, for example class or instance.
|
||||
</div>
|
||||
);
|
||||
}
|
15
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/julia.jl
Executable file
15
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/julia.jl
Executable file
@@ -0,0 +1,15 @@
|
||||
for op = (:+, :*, :&, :|, :$)
|
||||
@eval ($op)(a,b,c) = ($op)(($op)(a,b),c)
|
||||
end
|
||||
|
||||
v = α';
|
||||
function g(x,y)
|
||||
return x * y
|
||||
x + y
|
||||
end
|
||||
|
||||
cd("data") do
|
||||
open("outfile", "w") do f
|
||||
write(f, data)
|
||||
end
|
||||
end
|
136
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/kotlin.kt
Executable file
136
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/kotlin.kt
Executable file
@@ -0,0 +1,136 @@
|
||||
#!/usr/bin/env kotlinc -script
|
||||
|
||||
/*Taken from http://try.kotlinlang.org/#/Examples/Longer%20examples/Life/Life.kt*/
|
||||
/**
|
||||
* This is a straightforward implementation of The Game of Life
|
||||
* See http://en.wikipedia.org/wiki/Conway's_Game_of_Life
|
||||
*/
|
||||
package life
|
||||
|
||||
/*
|
||||
* A field where cells live. Effectively immutable
|
||||
*/
|
||||
class Field(
|
||||
val width: Int,
|
||||
val height: Int,
|
||||
// This function tells the constructor which cells are alive
|
||||
// if init(i, j) is true, the cell (i, j) is alive
|
||||
init: (Int, Int) -> Boolean
|
||||
) {
|
||||
private val live: Array<Array<Boolean>> = Array(height) { i -> Array(width) { j -> init(i, j) } }
|
||||
|
||||
private fun liveCount(i: Int, j: Int)
|
||||
= if (i in 0..height - 1 &&
|
||||
j in 0..width - 1 &&
|
||||
live[i][j]) 1 else 0
|
||||
|
||||
// How many neighbors of (i, j) are alive?
|
||||
fun liveNeighbors(i: Int, j: Int) =
|
||||
liveCount(i - 1, j - 1) +
|
||||
liveCount(i - 1, j) +
|
||||
liveCount(i - 1, j + 1) +
|
||||
liveCount(i, j - 1) +
|
||||
liveCount(i, j + 1) +
|
||||
liveCount(i + 1, j - 1) +
|
||||
liveCount(i + 1, j) +
|
||||
liveCount(i + 1, j + 1)
|
||||
|
||||
// You can say field[i, j], and this function gets called
|
||||
operator fun get(i: Int, j: Int) = live[i][j]
|
||||
}
|
||||
|
||||
class Test public constructor {
|
||||
}
|
||||
var test = "test"
|
||||
|
||||
/**
|
||||
* This function takes the present state of the field
|
||||
* and returns a new field representing the next moment of time
|
||||
*/
|
||||
fun next(field: Field): Field {
|
||||
return Field(field.width, field.height) { i, j ->
|
||||
val n = field.liveNeighbors(i, j)
|
||||
if (field[i, j])
|
||||
// (i, j) is alive
|
||||
n in 2..3 // It remains alive iff it has 2 or 3 neighbors
|
||||
else
|
||||
// (i, j) is dead
|
||||
n == 3 // A new cell is born if there are 3 neighbors alive
|
||||
}
|
||||
}
|
||||
|
||||
/** A few colony examples here */
|
||||
fun main(args: Array<String>) {
|
||||
// Simplistic demo
|
||||
runGameOfLife("***", 3)
|
||||
// "Star burst"
|
||||
runGameOfLife("""
|
||||
_______
|
||||
___*___
|
||||
__***__
|
||||
___*___
|
||||
_______
|
||||
""", 10)
|
||||
// Stable colony
|
||||
runGameOfLife("""
|
||||
_____
|
||||
__*__
|
||||
_*_*_
|
||||
__*__
|
||||
_____
|
||||
""", 3)
|
||||
// Stable from the step 2
|
||||
runGameOfLife("""
|
||||
__**__
|
||||
__**__
|
||||
__**__
|
||||
""", 3)
|
||||
// Oscillating colony
|
||||
runGameOfLife("""
|
||||
__**____
|
||||
__**____
|
||||
____**__
|
||||
____**__
|
||||
""", 6)
|
||||
// A fancier oscillating colony
|
||||
runGameOfLife("""
|
||||
-------------------
|
||||
-------***---***---
|
||||
-------------------
|
||||
-----*----*-*----*-
|
||||
-----*----*-*----*-
|
||||
-----*----*-*----*-
|
||||
-------***---***---
|
||||
-------------------
|
||||
-------***---***---
|
||||
-----*----*-*----*-
|
||||
-----*----*-*----*-
|
||||
-----*----*-*----*-
|
||||
-------------------
|
||||
-------***---***---
|
||||
-------------------
|
||||
""", 10)
|
||||
}
|
||||
|
||||
// UTILITIES
|
||||
|
||||
fun runGameOfLife(fieldText: String, steps: Int) {
|
||||
var field = makeField(fieldText)
|
||||
for (step in 1..steps) {
|
||||
println("Step: $step")
|
||||
for (i in 0..field.height - 1) {
|
||||
for (j in 0..field.width - 1) {
|
||||
print(if (field[i, j]) "*" else " ")
|
||||
}
|
||||
println("")
|
||||
}
|
||||
field = next(field)
|
||||
}
|
||||
}
|
||||
|
||||
fun makeField(s: String): Field {
|
||||
val lines = s.replace(" ", "").split('\n').filter({ it.isNotEmpty() })
|
||||
val longestLine = lines.toList().maxBy { it.length } ?: ""
|
||||
|
||||
return Field(longestLine.length, lines.size) { i, j -> lines[i][j] == '*' }
|
||||
}
|
22
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/latex.tex
Executable file
22
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/latex.tex
Executable file
@@ -0,0 +1,22 @@
|
||||
\usepackage{amsmath}
|
||||
\title{\LaTeX}
|
||||
\date{}
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\LaTeX{} is a document preparation system for the \TeX{}
|
||||
typesetting program. It offers programmable desktop publishing
|
||||
features and extensive facilities for automating most aspects of
|
||||
typesetting and desktop publishing, including numbering and
|
||||
cross-referencing, tables and figures, page layout, bibliographies,
|
||||
and much more. \LaTeX{} was originally written in 1984 by Leslie
|
||||
Lamport and has become the dominant method for using \TeX; few
|
||||
people write in plain \TeX{} anymore. The current version is
|
||||
\LaTeXe.
|
||||
|
||||
% This is a comment; it will not be shown in the final output.
|
||||
% The following shows a little of the typesetting power of LaTeX:
|
||||
\begin{align}
|
||||
E &= mc^2 \\
|
||||
m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}
|
||||
\end{align}
|
||||
\end{document}
|
36
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/latte.latte
Executable file
36
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/latte.latte
Executable file
@@ -0,0 +1,36 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{$title}</title>
|
||||
{*
|
||||
comment
|
||||
*}
|
||||
</head>
|
||||
<body>
|
||||
<h1 n:inner-if=1 title=1>My Webpage</h1>
|
||||
|
||||
<ul n:if="count($navigation) > 0" id="navigation">
|
||||
{foreach [a, b, 'x', 10] as $item}
|
||||
<li><a href="{$item}">{test($item->caption)}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
{$variable}
|
||||
{=$variable}
|
||||
{XXXX::func($variable /* comment */)|filter}
|
||||
{$variable?->obj|filter:10, abc, 'x$var', "x$var"|filter2}
|
||||
|
||||
{if} ... {/if true}
|
||||
|
||||
<script>
|
||||
var a = {$a}, b = {'a': 1}, c = {'a': 1};
|
||||
if (true) {
|
||||
alert();
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body { color: {$color} }
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
28
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/less.less
Executable file
28
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/less.less
Executable file
@@ -0,0 +1,28 @@
|
||||
/* styles.less */
|
||||
|
||||
@base: #f938ab;
|
||||
|
||||
.box-shadow(@style, @c) when (iscolor(@c)) {
|
||||
box-shadow: @style @c;
|
||||
-webkit-box-shadow: @style @c;
|
||||
-moz-box-shadow: @style @c;
|
||||
}
|
||||
.box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) {
|
||||
.box-shadow(@style, rgba(0, 0, 0, @alpha));
|
||||
}
|
||||
|
||||
// Box styles
|
||||
.box {
|
||||
color: saturate(@base, 5%);
|
||||
border-color: lighten(@base, 30%);
|
||||
|
||||
div { .box-shadow(0 0 5px, 30%) }
|
||||
|
||||
a {
|
||||
color: @base;
|
||||
|
||||
&:hover {
|
||||
color: lighten(@base, 50%);
|
||||
}
|
||||
}
|
||||
}
|
127
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/liquid.liquid
Executable file
127
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/liquid.liquid
Executable file
@@ -0,0 +1,127 @@
|
||||
There are a couple of different Liquid variations in circulation. This grammars supports
|
||||
both the Standard and Shopify Liquid variations. The following examples can be found in full at:
|
||||
|
||||
Standard Variation: https://shopify.github.io/liquid
|
||||
Shopify Variation: https://shopify.dev/docs/api/liquid
|
||||
|
||||
Liquid is an extraction from the e-commerce system Shopify.
|
||||
Shopify powers many thousands of e-commerce stores which all call for unique designs.
|
||||
For this we developed Liquid which allows our customers complete design freedom while
|
||||
maintaining the integrity of our servers.
|
||||
|
||||
Liquid has been in production use since June 2006 and is now used by many other
|
||||
hosted web applications.
|
||||
|
||||
It was developed for usage in Ruby on Rails web applications and integrates seamlessly
|
||||
as a plugin but it also works excellently as a stand alone library.
|
||||
|
||||
Here's what it looks like:
|
||||
|
||||
<ul id="products">
|
||||
{% for product in products %}
|
||||
<li>
|
||||
<h2>{{ product.title }}</h2>
|
||||
Only {{ product.price | format_as_money }}
|
||||
|
||||
<p>{{ product.description | prettyprint | truncate: 200 }}</p>
|
||||
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
|
||||
Some more features include:
|
||||
|
||||
<h2>Filters</h2>
|
||||
<p> The word "tobi" in uppercase: {{ 'tobi' | upcase }} </p>
|
||||
<p>The word "tobi" has {{ 'tobi' | size }} letters! </p>
|
||||
<p>Change "Hello world" to "Hi world": {{ 'Hello world' | replace: 'Hello', 'Hi' }} </p>
|
||||
<p>The date today is {{ 'now' | date: "%Y %b %d" }} </p>
|
||||
|
||||
|
||||
<h2>If</h2>
|
||||
<p>
|
||||
{% if user.name == 'tobi' or user.name == 'marc' %}
|
||||
hi marc or tobi
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<h2>Comments</h2>
|
||||
|
||||
{% # Line Comment %}
|
||||
|
||||
{% comment %}
|
||||
Block Comment
|
||||
{% endcomment %}
|
||||
|
||||
<h2>Case</h2>
|
||||
<p>
|
||||
{% case template %}
|
||||
{% when 'index' %}
|
||||
Welcome
|
||||
{% when 'product' %}
|
||||
{{ product.vendor | link_to_vendor }} / {{ product.title }}
|
||||
{% else %}
|
||||
{{ page_title }}
|
||||
{% endcase %}
|
||||
</p>
|
||||
|
||||
|
||||
<h2>For Loops</h2>
|
||||
<p>
|
||||
{% for item in array %}
|
||||
{{ item }}
|
||||
{% endfor %}
|
||||
</p>
|
||||
|
||||
|
||||
<h2>Tables</h2>
|
||||
<p>
|
||||
{% tablerow item in items cols: 3 %}
|
||||
{% if tablerowloop.col_first %}
|
||||
First column: {{ item.variable }}
|
||||
{% else %}
|
||||
Different column: {{ item.variable }}
|
||||
{% endif %}
|
||||
{% endtablerow %}
|
||||
</p>
|
||||
|
||||
<h2>Embedded Code Blocks</h2>
|
||||
|
||||
This support Shopify Liquid variation JSON schema code blocks
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"string": "bar",
|
||||
"boolean": true,
|
||||
"number": 100,
|
||||
"object": {
|
||||
"array": [100, false, "string", {}, [] ]
|
||||
}
|
||||
}
|
||||
{% endschema %}
|
||||
|
||||
This support Shopify Liquid variation Stylesheet and Style code blocks
|
||||
|
||||
{% style %}
|
||||
.class {
|
||||
font-size: 10px; /* comment */
|
||||
}
|
||||
{% endstyle %}
|
||||
|
||||
{% stylesheet %}
|
||||
.class {
|
||||
font-size: 10px; /* comment */
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
This support Shopify Liquid variation JavaScript code blocks
|
||||
|
||||
{% javascript %}
|
||||
|
||||
function foo (param) {
|
||||
|
||||
return 'something' // comment
|
||||
}
|
||||
|
||||
{% endjavascript %}
|
22
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/lisp.lisp
Executable file
22
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/lisp.lisp
Executable file
@@ -0,0 +1,22 @@
|
||||
(defun prompt-for-cd ()
|
||||
"Prompts
|
||||
for CD"
|
||||
(prompt-read "Title" 1.53 1 2/4 1.7 1.7e0 2.9E-4 +42 -7 #b001 #b001/100 #o777 #O777 #xabc55 #c(0 -5.6))
|
||||
(prompt-read "Artist" &rest)
|
||||
(or (parse-integer (prompt-read "Rating") :junk-allowed t) 0)
|
||||
(if x (format t "yes") (format t "no" nil) ;and here comment
|
||||
) 0xFFLL -23ull
|
||||
;; second line comment
|
||||
'(+ 1 2)
|
||||
(defvar *lines*) ; list of all lines
|
||||
(position-if-not #'sys::whitespacep line :start beg))
|
||||
(quote (privet 1 2 3))
|
||||
'(hello world)
|
||||
(* 5 7)
|
||||
(1 2 34 5)
|
||||
(:use "aaaa")
|
||||
(let ((x 10) (y 20))
|
||||
(print (+ x y))
|
||||
) LAmbDa
|
||||
|
||||
"asdad\0eqweqe"
|
245
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/livescript.ls
Executable file
245
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/livescript.ls
Executable file
@@ -0,0 +1,245 @@
|
||||
# Defines an editing mode for [Ace](https://ace.c9.io).
|
||||
#
|
||||
# Open [test/ace.html](../test/ace.html) to test.
|
||||
|
||||
require, exports, module <-! define \ace/mode/ls
|
||||
|
||||
identifier = /(?![\d\s])[$\w\xAA-\uFFDC](?:(?!\s)[$\w\xAA-\uFFDC]|-[A-Za-z])*/$
|
||||
|
||||
exports.Mode = class LiveScriptMode extends require(\ace/mode/text)Mode
|
||||
->
|
||||
@$tokenizer =
|
||||
new (require \ace/tokenizer)Tokenizer LiveScriptMode.Rules
|
||||
if require \ace/mode/matching_brace_outdent
|
||||
@$outdent = new that.MatchingBraceOutdent
|
||||
|
||||
indenter = // (?
|
||||
: [({[=:]
|
||||
| [-~]>
|
||||
| \b (?: e(?:lse|xport) | d(?:o|efault) | t(?:ry|hen) | finally |
|
||||
import (?:\s* all)? | const | var |
|
||||
let | new | catch (?:\s* #identifier)? )
|
||||
) \s* $ //
|
||||
|
||||
getNextLineIndent: (state, line, tab) ->
|
||||
indent = @$getIndent line
|
||||
{tokens} = @$tokenizer.getLineTokens line, state
|
||||
unless tokens.length and tokens[*-1]type is \comment
|
||||
indent += tab if state is \start and indenter.test line
|
||||
indent
|
||||
|
||||
toggleCommentLines: (state, doc, startRow, endRow) ->
|
||||
comment = /^(\s*)#/; range = new (require \ace/range)Range 0 0 0 0
|
||||
for i from startRow to endRow
|
||||
if out = comment.test line = doc.getLine i
|
||||
then line.=replace comment, \$1
|
||||
else line.=replace /^\s*/ \$&#
|
||||
range.end.row = range.start.row = i
|
||||
range.end.column = line.length + 1
|
||||
doc.replace range, line
|
||||
1 - out * 2
|
||||
|
||||
checkOutdent: (state, line, input) -> @$outdent?checkOutdent line, input
|
||||
|
||||
autoOutdent: (state, doc, row) -> @$outdent?autoOutdent doc, row
|
||||
|
||||
### Highlight Rules
|
||||
|
||||
keywordend = /(?![$\w]|-[A-Za-z]|\s*:(?![:=]))/$
|
||||
stringfill = token: \string, regex: '.+'
|
||||
|
||||
LiveScriptMode.Rules =
|
||||
start:
|
||||
* token: \keyword
|
||||
regex: //(?
|
||||
:t(?:h(?:is|row|en)|ry|ypeof!?)
|
||||
|c(?:on(?:tinue|st)|a(?:se|tch)|lass)
|
||||
|i(?:n(?:stanceof)?|mp(?:ort(?:\s+all)?|lements)|[fs])
|
||||
|d(?:e(?:fault|lete|bugger)|o)
|
||||
|f(?:or(?:\s+own)?|inally|unction)
|
||||
|s(?:uper|witch)
|
||||
|e(?:lse|x(?:tends|port)|val)
|
||||
|a(?:nd|rguments)
|
||||
|n(?:ew|ot)
|
||||
|un(?:less|til)
|
||||
|w(?:hile|ith)
|
||||
|o[fr]|return|break|let|var|loop
|
||||
)//$ + keywordend
|
||||
|
||||
* token: \constant.language
|
||||
regex: '(?:true|false|yes|no|on|off|null|void|undefined)' + keywordend
|
||||
|
||||
* token: \invalid.illegal
|
||||
regex: '(?
|
||||
:p(?:ackage|r(?:ivate|otected)|ublic)
|
||||
|i(?:mplements|nterface)
|
||||
|enum|static|yield
|
||||
)' + keywordend
|
||||
|
||||
* token: \language.support.class
|
||||
regex: '(?
|
||||
:R(?:e(?:gExp|ferenceError)|angeError)
|
||||
|S(?:tring|yntaxError)
|
||||
|E(?:rror|valError)
|
||||
|Array|Boolean|Date|Function|Number|Object|TypeError|URIError
|
||||
)' + keywordend
|
||||
|
||||
* token: \language.support.function
|
||||
regex: '(?
|
||||
:is(?:NaN|Finite)
|
||||
|parse(?:Int|Float)
|
||||
|Math|JSON
|
||||
|(?:en|de)codeURI(?:Component)?
|
||||
)' + keywordend
|
||||
|
||||
* token: \variable.language
|
||||
regex: '(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)' + keywordend
|
||||
|
||||
* token: \identifier
|
||||
regex: identifier + /\s*:(?![:=])/$
|
||||
|
||||
* token: \variable
|
||||
regex: identifier
|
||||
|
||||
* token: \keyword.operator
|
||||
regex: /(?:\.{3}|\s+\?)/$
|
||||
|
||||
* token: \keyword.variable
|
||||
regex: /(?:@+|::|\.\.)/$
|
||||
next : \key
|
||||
|
||||
* token: \keyword.operator
|
||||
regex: /\.\s*/$
|
||||
next : \key
|
||||
|
||||
* token: \string
|
||||
regex: /\\\S[^\s,;)}\]]*/$
|
||||
|
||||
* token: \string.doc
|
||||
regex: \'''
|
||||
next : \qdoc
|
||||
|
||||
* token: \string.doc
|
||||
regex: \"""
|
||||
next : \qqdoc
|
||||
|
||||
* token: \string
|
||||
regex: \'
|
||||
next : \qstring
|
||||
|
||||
* token: \string
|
||||
regex: \"
|
||||
next : \qqstring
|
||||
|
||||
* token: \string
|
||||
regex: \`
|
||||
next : \js
|
||||
|
||||
* token: \string
|
||||
regex: '<\\['
|
||||
next : \words
|
||||
|
||||
* token: \string.regex
|
||||
regex: \//
|
||||
next : \heregex
|
||||
|
||||
* token: \comment.doc
|
||||
regex: '/\\*'
|
||||
next : \comment
|
||||
|
||||
* token: \comment
|
||||
regex: '#.*'
|
||||
|
||||
* token: \string.regex
|
||||
regex: //
|
||||
/(?: [^ [ / \n \\ ]*
|
||||
(?: (?: \\.
|
||||
| \[ [^\]\n\\]* (?:\\.[^\]\n\\]*)* \]
|
||||
) [^ [ / \n \\ ]*
|
||||
)*
|
||||
)/ [gimy$]{0,4}
|
||||
//$
|
||||
next : \key
|
||||
|
||||
* token: \constant.numeric
|
||||
regex: '(?:0x[\\da-fA-F][\\da-fA-F_]*
|
||||
|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*
|
||||
|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)
|
||||
(?:e[+-]?\\d[\\d_]*)?[\\w$]*)'
|
||||
|
||||
* token: \lparen
|
||||
regex: '[({[]'
|
||||
|
||||
* token: \rparen
|
||||
regex: '[)}\\]]'
|
||||
next : \key
|
||||
|
||||
* token: \keyword.operator
|
||||
regex: \\\S+
|
||||
|
||||
* token: \text
|
||||
regex: \\\s+
|
||||
|
||||
heregex:
|
||||
* token: \string.regex
|
||||
regex: '.*?//[gimy$?]{0,4}'
|
||||
next : \start
|
||||
* token: \string.regex
|
||||
regex: '\\s*#{'
|
||||
* token: \comment.regex
|
||||
regex: '\\s+(?:#.*)?'
|
||||
* token: \string.regex
|
||||
regex: '\\S+'
|
||||
|
||||
key:
|
||||
* token: \keyword.operator
|
||||
regex: '[.?@!]+'
|
||||
* token: \identifier
|
||||
regex: identifier
|
||||
next : \start
|
||||
* token: \text
|
||||
regex: '.'
|
||||
next : \start
|
||||
|
||||
comment:
|
||||
* token: \comment.doc
|
||||
regex: '.*?\\*/'
|
||||
next : \start
|
||||
* token: \comment.doc
|
||||
regex: '.+'
|
||||
|
||||
qdoc:
|
||||
token: \string
|
||||
regex: ".*?'''"
|
||||
next : \key
|
||||
stringfill
|
||||
|
||||
qqdoc:
|
||||
token: \string
|
||||
regex: '.*?"""'
|
||||
next : \key
|
||||
stringfill
|
||||
|
||||
qstring:
|
||||
token: \string
|
||||
regex: /[^\\']*(?:\\.[^\\']*)*'/$
|
||||
next : \key
|
||||
stringfill
|
||||
|
||||
qqstring:
|
||||
token: \string
|
||||
regex: /[^\\"]*(?:\\.[^\\"]*)*"/$
|
||||
next : \key
|
||||
stringfill
|
||||
|
||||
js:
|
||||
token: \string
|
||||
regex: /[^\\`]*(?:\\.[^\\`]*)*`/$
|
||||
next : \key
|
||||
stringfill
|
||||
|
||||
words:
|
||||
token: \string
|
||||
regex: '.*?\\]>'
|
||||
next : \key
|
||||
stringfill
|
16
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/logiql.logic
Executable file
16
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/logiql.logic
Executable file
@@ -0,0 +1,16 @@
|
||||
// ancestors
|
||||
parentof("douglas", "john").
|
||||
parentof("john", "bob").
|
||||
parentof("bob", "ebbon").
|
||||
|
||||
parentof("douglas", "jane").
|
||||
parentof("jane", "jan").
|
||||
|
||||
ancestorof(A, B) <- parentof(A, B).
|
||||
ancestorof(A, C) <- ancestorof(A, B), parentof(B,C).
|
||||
|
||||
grandparentof(A, B) <- parentof(A, C), parentof(C, B).
|
||||
|
||||
cousins(A,B) <- grandparentof(C,A), grandparentof(C,B).
|
||||
|
||||
parentof[`arg](A, B) -> int[32](A), !string(B).
|
23
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/logtalk.lgt
Executable file
23
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/logtalk.lgt
Executable file
@@ -0,0 +1,23 @@
|
||||
:- object(bottles).
|
||||
|
||||
:- initialization(sing(99)).
|
||||
|
||||
sing(0) :-
|
||||
write('No more bottles of beer on the wall, no more bottles of beer.'), nl,
|
||||
write('Go to the store and buy some more, 99 bottles of beer on the wall.'), nl, nl.
|
||||
sing(N) :-
|
||||
N > 0,
|
||||
N2 is N - 1,
|
||||
beers(N), write(' of beer on the wall, '), beers(N), write(' of beer.'), nl,
|
||||
write('Take one down and pass it around, '), beers(N2), write(' of beer on the wall.'), nl, nl,
|
||||
sing(N2).
|
||||
|
||||
beers(0) :-
|
||||
write('no more bottles').
|
||||
beers(1) :-
|
||||
write('1 bottle').
|
||||
beers(N) :-
|
||||
N > 1,
|
||||
write(N), write(' bottles').
|
||||
|
||||
:- end_object.
|
75
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/lsl.lsl
Executable file
75
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/lsl.lsl
Executable file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
Testing syntax highlighting
|
||||
of Ace Editor
|
||||
for the Linden Scripting Language
|
||||
*/
|
||||
|
||||
integer someIntNormal = 3672;
|
||||
integer someIntHex = 0x00000000;
|
||||
integer someIntMath = PI_BY_TWO;
|
||||
|
||||
integer event = 5673; // invalid.illegal
|
||||
|
||||
key someKeyTexture = TEXTURE_DEFAULT;
|
||||
string someStringSpecial = EOF;
|
||||
|
||||
some_user_defined_function_without_return_type(string inputAsString)
|
||||
{
|
||||
llSay(PUBLIC_CHANNEL, inputAsString);
|
||||
}
|
||||
|
||||
string user_defined_function_returning_a_string(key inputAsKey)
|
||||
{
|
||||
return (string)inputAsKey;
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
key someKey = NULL_KEY;
|
||||
someKey = llGetOwner();
|
||||
|
||||
string someString = user_defined_function_returning_a_string(someKey);
|
||||
|
||||
some_user_defined_function_without_return_type(someString);
|
||||
}
|
||||
|
||||
touch_start(integer num_detected)
|
||||
{
|
||||
list agentsInRegion = llGetAgentList(AGENT_LIST_REGION, []);
|
||||
integer numOfAgents = llGetListLength(agentsInRegion);
|
||||
|
||||
integer index; // defaults to 0
|
||||
for (; index <= numOfAgents - 1; index++) // for each agent in region
|
||||
{
|
||||
llRegionSayTo(llList2Key(agentsInRegion, index), PUBLIC_CHANNEL, "Hello, Avatar!");
|
||||
}
|
||||
}
|
||||
|
||||
touch_end(integer num_detected)
|
||||
{
|
||||
someIntNormal = 3672;
|
||||
someIntHex = 0x00000000;
|
||||
someIntMath = PI_BY_TWO;
|
||||
|
||||
event = 5673; // invalid.illegal
|
||||
|
||||
someKeyTexture = TEXTURE_DEFAULT;
|
||||
someStringSpecial = EOF;
|
||||
|
||||
llSetInventoryPermMask("some item", MASK_NEXT, PERM_ALL); // reserved.godmode
|
||||
|
||||
llWhisper(PUBLIC_CHANNEL, "Leaving \"default\" now...");
|
||||
state other;
|
||||
}
|
||||
}
|
||||
|
||||
state other
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llWhisper(PUBLIC_CHANNEL, "Entered \"state other\", returning to \"default\" again...");
|
||||
state default;
|
||||
}
|
||||
}
|
38
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/lua.lua
Executable file
38
api/jquery/plugins/ace/ace-builds-master/demo/kitchen-sink/docs/lua.lua
Executable file
@@ -0,0 +1,38 @@
|
||||
--[[--
|
||||
num_args takes in 5.1 byte code and extracts the number of arguments
|
||||
from its function header.
|
||||
--]]--
|
||||
|
||||
function int(t)
|
||||
return t:byte(1)+t:byte(2)*0x100+t:byte(3)*0x10000+t:byte(4)*0x1000000
|
||||
end
|
||||
|
||||
function num_args(func)
|
||||
local dump = string.dump(func)
|
||||
local offset, cursor = int(dump:sub(13)), offset + 26
|
||||
--Get the params and var flag (whether there's a ... in the param)
|
||||
return dump:sub(cursor):byte(), dump:sub(cursor+1):byte()
|
||||
end
|
||||
|
||||
-- Usage:
|
||||
num_args(function(a,b,c,d, ...) end) -- return 4, 7
|
||||
|
||||
-- Python styled string format operator
|
||||
local gm = debug.getmetatable("")
|
||||
|
||||
gm.__mod=function(self, other)
|
||||
if type(other) ~= "table" then other = {other} end
|
||||
for i,v in ipairs(other) do other[i] = tostring(v) end
|
||||
return self:format(unpack(other))
|
||||
end
|
||||
|
||||
print([===[
|
||||
blah blah %s, (%d %d)
|
||||
]===]%{"blah", num_args(int)})
|
||||
|
||||
--[=[--
|
||||
table.maxn is deprecated, use # instead.
|
||||
--]=]--
|
||||
print(table.maxn{1,2,[4]=4,[8]=8}) -- outputs 8 instead of 2
|
||||
|
||||
print(5 --[[ blah ]])
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user