Variables
greeting = "hello"
location = "world"
x = 8
y = 3
// Created by STRd6 | |
// MIT License | |
// jquery.paste_image_reader.js | |
(function($) { | |
var defaults; | |
$.event.fix = (function(originalFix) { | |
return function(event) { | |
event = originalFix.apply(this, arguments); | |
if (event.type.indexOf('copy') === 0 || event.type.indexOf('paste') === 0) { | |
event.clipboardData = event.originalEvent.clipboardData; |
<script>alert("yolo!")</script> |
require "sinatra" | |
configure do | |
set :root, "." | |
set :public_folder, "." | |
end | |
# Any post to /save will write data to the path provided. | |
post '/save' do | |
data = params["data"] |
+ | |
- | |
* | |
/ | |
% | |
^ | |
| | |
& | |
** | |
< |
/* lexical grammar */ | |
%lex | |
%% | |
\n return 'NEWLINE'; | |
<<EOF>> return 'EOF'; | |
" " return 'INDENT'; | |
"-" return 'HYPHEN'; | |
"(" return 'LEFT_PARENTHESIS'; |
{print} = require('sys') | |
{exec} = require('child_process') | |
sh = (cmd, fn=->) -> | |
print cmd | |
exec cmd, (error, stdout, stderr) -> | |
print(stdout) | |
if error |
_____.___. .__ _________ .__ __
\__ | | ____ | | ____ / _____/ ___________|__|______/ |_
/ | |/ _ \| | / _ \\_____ \_/ ___\_ __ \ \____ \ __\
\____ ( <_> ) |_( <_> ) \ \___| | \/ | |_> > |
/ ______|\____/|____/\____/_______ /\___ >__| |__| __/|__|
\/ \/ \/ |__|
YoloScript is a stupid little language with functions, objects, and messages.
tickets: [ | |
{name: "None", price: null} | |
{name: "Economy", price: 199.95} | |
{name: "Business", price: 449.22} | |
{name: "First Class", price: 1199.99} | |
] | |
chosenTicket: Observable() | |
resetTicket: -> | |
@chosenTicket(@tickets[0]) |
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<AllowedHeader>Content-*</AllowedHeader> | |
</CORSRule> | |
</CORSConfiguration> |