This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSONC = require './public/JSONC.js' | |
s = "H8KLCADCswRiVAIDbVdNb8OcNhDDvSvDgl56w4klPcO6NsKywrhawopLUcKQw4QVwrzChVEEwq7DkRgIaiNNDkXDkMO/w543H8Kkw5ZtwpHDgDscccK5w4N5b8Oewox+HH59w7nDrXB3w6jCn1/Cm8OTw4vDs8OXT1/Cnz7Dv3XDuHDDuFzDrcK7H8KHwpAXP8O6ZnLCsSVew5/CnyjCuEbDvh7Drn7DoSXDvsKPHl/Do8OPwoHCisKdw4bCnmB0wqlLw7gIwr5NIcOJwqPDoMOvT3nDrDfCssOVw5nCj8KdWBvCnR0+I3V4wpzDhVrDjcOVw6bCq8KXw63DscOowoPDn8O4w6DDmMK7wrPCi2rCpV7Cj8KOw6/CjsKOIcONaTnDmSPDnMKiwrczLjnCqnPDrMOIwr45w7Y/UWzDpcOgKQ/Cum/DocKzw5hYfcOrZz9ew5nDjjjCvMOTw7MvfsOFJcOTw4DDtkYzw4nDhyYrwrfCnHh5w7USw4rCo8OEw4LCliYMwpnCrAnDq2lzJWMhw6HCj8KYGVt6w7UPCXFxEgJvw5bCnMK5wrHCk1Bhw7RuEMOLL8O4wq1mwqLDscKqw4vCksOewpzDsV9yGXDCkB7DiTYiw58swrV9wrZ8wrXDuSHCq8OVUw8ULMKjDmdaekcqOHgYFk4cfGzDjcKNIB9Kw6QxFBxXXMOZK8KSa8K9RcOMw7A6w419DcKNw4ErfEIOwqMvwqYXwo4sK8KdwqjDpTNxwq1VfzNvIMOCwqggIG10eMO8wpvCk8K1BMKJdSfCrlxFwpItKHh2fzgcPQLClsKMHcKzw7HDkMKPSRPDjsKPFm80RW7Cmj1Dw6BywqdkHcKcEgNJw6XCqxnChRnDucOGLsK2U8K0w7lYUmrCoEd/wqrDnGXDljUbwrIqFMKKXBZJwojCmwM1wpHDuhPDjcOgw6HCjWdhTxDDj8KKSijCnMOFwr3CmsK4U8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resizeCanvas = function (largerOrSmaller){ | |
scaleValue = (largerOrSmaller == "larger") ? 0.1 : -0.1 | |
$('#canvasHolder').css({ scale: ($('#canvasHolder').css('scale') + scaleValue) }); | |
offset = $("#canvasHolder").offset() | |
if (largerOrSmaller == "larger") | |
if (offset.top > 0 && offset.left > 0) | |
resizeCanvas("larger") | |
else | |
$('#canvasHolder').css({ scale: ($('#canvasHolder').css('scale') - scaleValue) }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Retrieving application files from cloud to put in local database:" | |
printf '%s\n%s\n' `echo " | |
require 'rubygems' | |
require 'couchrest' | |
cloud_db_url = 'http://example.org/zanzibar' | |
local_db_url = 'http://localhost:5984/zanzibar' | |
@cloud_db = CouchRest.database(cloud_db_url) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.couch.db("tangerine").view "tangerine/results", | |
include_docs: true | |
success: (result) -> | |
docs = for row in result.rows | |
row.doc | |
$.couch.db("tangerine").bulkRemove {docs: docs}, | |
success: (result) -> | |
console.log result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# usage: | |
# post.rb <live_form_url> arg1 arg2 arg3 ... | |
require "rest-client" | |
live_form_url = ARGV.shift | |
post_form_url = live_form_url.gsub(/viewform/,"formResponse") | |
params = RestClient.get(live_form_url).scan(/(entry\.\d+)/).flatten |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for dir in tests/*; do \ | |
(cd "$dir" && make) \ | |
done | |
make[1]: Entering directory `/var/www/muvuku/tests/charset' | |
avr-gcc -c -D_MUVUKU_TINY_STRINGS -Os -Wall -fno-strict-aliasing -fomit-frame-pointer -std=gnu99 -mmcu=atmega128 -fno-jump-tables -Wimplicit-function-declaration -fno-builtin -I../../../turbo-devel-1.5.24/include -I../../src -I. charset.c -o charset.o | |
charset.c:11:17: error: variable ‘lc_test_str’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’ | |
charset.c:30:19: error: variable ‘l_test’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’ | |
charset.c:41:17: error: variable ‘lc_topmenu_name’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’ | |
charset.c:47:17: error: variable ‘lc_menu_top’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’ | |
charset.c:52:17: error: variable ‘lc_select_str’ must be const in order to be put |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
require 'rest-client' | |
require 'cgi' | |
set :port, 9494 | |
get '/' do | |
"<form action='/send'> | |
<input id='phone' name='phone' type='text'></input> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@$el.html " | |
Value used for grouping: | |
<select id='groupBy'> | |
#{ | |
_.map propertiesToGroupBy, (value,key) -> | |
"<option #{if key is groupBy then "selected='true'" else ''}> | |
#{key} | |
</option>" | |
} | |
</select> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: POST, GET, OPTIONS'); | |
header('Access-Control-Max-Age: 1000'); | |
header('Access-Control-Allow-Headers: Content-Type'); | |
var_dump($_POST) | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: POST, GET, OPTIONS'); | |
header('Access-Control-Max-Age: 1000'); | |
header('Access-Control-Allow-Headers: Content-Type'); | |
var_dump($_POST) | |
?> |