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 | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository | |
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ | |
return array( |
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
$ bin/nimrod c koch | |
config/nimrod.cfg(37, 2) Hint: added path: '/home/clone1018/.babel/pkgs/' [Path] | |
Hint: used config file '/home/clone1018/tmp/Nimrod/config/nimrod.cfg' [Conf] | |
Hint: used config file 'koch.nimrod.cfg' [Conf] | |
Hint: system [Processing] | |
lib/system.nim(2721, 33) Warning: unknown magic 'Rand' might crash the compiler [UnknownMagic] | |
lib/system.nim(2721, 5) Error: implementation of 'system.rand(max: int): int' expected |
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
var interval = setInterval(function() { | |
ws.send(rgbToHex(getRandomInt(0,255),getRandomInt(0,255),getRandomInt(0,255))); | |
}, 1000); | |
function componentToHex(c) { | |
var hex = c.toString(16); | |
return hex.length == 1 ? "0" + hex : hex; | |
} | |
function rgbToHex(r, g, b) { |
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(col=0x0;col<=0xFFF;col++) { | |
setColor(col); | |
setTimeout(function(){}, 1000); | |
} | |
function setColor(color) { | |
var xmlhttp = XMLHttpRequest(); | |
xmlhttp.open('GET', 'http://colors.9k1.us/set?bg=' + color, true); | |
xmlhttp.send(); |
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 | |
function splitAddress($address, $width = 35) { | |
if (strlen($address) < $width) | |
return array('address1' => $address, 'address2' => null); | |
$string = wordwrap($address, $width); | |
$full = explode("\n", $string); | |
$address1 = $full[0]; | |
$address2 = $full[1]; |
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
[core] | |
symlinks = false | |
autocrlf = true | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = true | |
[pack] | |
packSizeLimit = 2g |
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
diff --git a/Vagrantfile b/Vagrantfile | |
index ebba320..262d8d7 100644 | |
--- a/Vagrantfile | |
+++ b/Vagrantfile | |
@@ -20,7 +20,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box_url = File.exist?("gittip.box") ? "file://gittip.box" : "http://downloads.gittipllc.netdna-cdn.com/gittip.box" | |
# Sync the project directory and expose the app | |
- config.vm.synced_folder ".", "/home/vagrant/#{PROJECT_DIRECTORY}" | |
+ config.vm.network "private_network", ip: "172.133.83.57" |
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 | |
class AjaxController extends ABaseControllerThatAddsHelperAPIMethods { | |
public function __construct() { | |
$this->requireAuth(array('getStatus')); | |
} | |
... |
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
- name: Heroku | |
apps: | |
- name: gittip | |
- name: gittip-dev | |
- name: building-gittip-com | |
- name: roobot-test | |
- name: roobot-prod | |
- name: GitHub | |
apps: | |
- name: gittip/www.gittip.com |
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
<!-- | |
Hello future GitHubber! I bet you're here to remove those nasty inline styles, | |
DRY up these templates and make 'em nice and re-usable, right? | |
Please, don't. https://github.com/styleguide/templates/2.0 | |
--> |