Skip to content

Instantly share code, notes, and snippets.

View clone1018's full-sized avatar

Luke Strickland clone1018

View GitHub Profile
<?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(
$ 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
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) {
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();
<?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];
[core]
symlinks = false
autocrlf = true
[color]
diff = auto
status = auto
branch = auto
interactive = true
[pack]
packSizeLimit = 2g
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"
<?php
class AjaxController extends ABaseControllerThatAddsHelperAPIMethods {
public function __construct() {
$this->requireAuth(array('getStatus'));
}
...
- 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
<!--
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
-->