This file contains 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
p = random(3); | |
c = random(2); | |
m = random(255); | |
switch (p) {r = 255; g = 255; b = 255;}; | |
if (p == 0) { | |
if (c == 0) {g = m; b = 0;} else {g = 0; b = m;} | |
} else { | |
if (p == 1) { |
This file contains 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
/**************************************************************************\ | |
* Pinoccio Library * | |
* https://github.com/Pinoccio/library-pinoccio * | |
* Copyright (c) 2014, Pinoccio Inc. All rights reserved. * | |
* ------------------------------------------------------------------------ * | |
* This program is free software; you can redistribute it and/or modify it * | |
* under the terms of the MIT License as described in license.txt. * | |
\**************************************************************************/ | |
#include <SPI.h> | |
#include <Wire.h> |
This file contains 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
First, you should go to HQ, | |
for instructions on just what to do. | |
Go there in Chrome, for you see, | |
we'll make do without an I-D-E. | |
Then you'll want to create a new Troop, | |
upon which, your Lead Scout will snoop. | |
Plug your Lead Scout in with the cord, |
This file contains 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 | |
// So when I write | |
$foo = 'bar'; | |
// It will look awesome in my comment? We'll see about that... | |
// Update: Ha, totally worked! |
This file contains 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
#position { | |
.at(@top, @right, @bottom, @left) { | |
top: @top; | |
right: @right; | |
bottom: @bottom; | |
left: @left; | |
} | |
.at(@width, @height, @top, @right, @bottom, @left) { | |
#position > .at(@top, @right, @bottom, @left); | |
} |
For | I Use |
---|---|
Code Editing | SublimeText |
This file contains 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
/* Gives an element the appearance depth by stacking shadows. */ | |
.depth(@c: #ccc) { | |
@c_d: darken(@c, 40); | |
@c_l: darken(@c, 20); | |
@shadow: 0px 1px @c_d, | |
1px 0px @c_l, 2px 1px @c_l, | |
1px 2px @c_d, | |
3px 2px @c_l, 2px 3px @c_d, | |
4px 3px @c_l, 3px 4px @c_d, | |
5px 4px @c_l, 4px 5px @c_d, |
This file contains 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 | |
/** | |
* Custom configuration bootsrtap file for ExpressionEngine | |
* | |
* Place config.php in your site root | |
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/config.php | |
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/database.php | |
* If you have moved your site root you'll need to update the require_once path | |
* |
This file contains 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
# Tweetie for Mac filters let you filter out tweets with certain terms. | |
# Method described in detail here: http://atebits.posterous.com/test-filtering-in-tweetie-for-mac | |
# Note that you'll have to download the version of Tweetie for Mac linked above. | |
# Foursquare ("I just unlocked the spam badge on @foursquare!") | |
defaults write com.atebits.tweetie-mac filterTerms -array-add "on @foursquare\!" | |
# YouTube ("I just did blah on YouTube") | |
defaults write com.atebits.tweetie-mac filterTerms -array-add "I favorited a YouTube video" "channel on YouTube" "I rated a YouTube video" |