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
| /* | |
| json2.js | |
| 2008-03-14 | |
| Public Domain | |
| No warranty expressed or implied. Use at your own risk. | |
| See http://www.JSON.org/js.html | |
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
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"" | |
| "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <title>jQuery calculator demo</title> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
| </head> | |
| <body> | |
| <div id="calculator"> |
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 'formula' | |
| class SdlGfx <Formula | |
| url 'http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.20.tar.gz' | |
| homepage 'http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx' | |
| md5 '8a787e538a8e4d80d4927535be5af083' | |
| depends_on 'sdl' | |
| def install |
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
| http = require 'http' | |
| flow = require('../lib/conductor').conductor() | |
| #nodes | |
| port= flow.node 'port', () -> 8000 | |
| listener= flow.node 'listener', (port, request, response) -> | |
| server= http.createServer (req, res) -> | |
| request(req) if request | |
| response(res) if response |
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
| http = require 'http' | |
| flow = require('../lib/conductor').conductor() | |
| #nodes | |
| port= flow.node('port', () -> 8000) | |
| .node('listener', (port, request, response) -> | |
| server= http.createServer (req, res) -> | |
| request(req) if request | |
| response(res) if response | |
| server.listen port) |
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
| http = require 'http' | |
| flow = require('../lib/conductor').conductor() | |
| #nodes | |
| flow.build | |
| port: () -> 8000 | |
| listener: (port, request, response) -> | |
| server= http.createServer (req, res) -> | |
| request(req) if request | |
| response(res) if response |
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
| function sum (fn, xs) { | |
| var toRet = 0; | |
| for (var i = 0, ii = xs.length; i < ii; i++) { | |
| toRet += fn(xs[i], i, xs); | |
| } | |
| return toRet; | |
| } | |
| function update(t, o) { | |
| for (var k in o) { |
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
| import React, {Component} from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import {observable, computed} from 'mobx'; | |
| import {observer} from 'mobx-react'; | |
| // import DevTools from 'mobx-react-devtools'; | |
| class Server { | |
| @observable days = []; | |
| @observable name = ""; | |
| @computed get upDays() { |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Uptime Boxes</title> | |
| <style type="text/css"> | |
| html, body { | |
| margin: 0; | |
| padding: 0; | |
| font-family: sans-serif; | |
| } |
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
| { | |
| "title": "Change spacebar", | |
| "rules": [ | |
| { | |
| "description": "Change spacebar to right_option if pressed with other keys (Post spacebar when pressed alone)", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "spacebar", |