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
#current way | |
curl -H "Content-Type: application/json" -d '{ "msg": "your_value_here" }' https://sender.blockspring.com/api/blocks/2a5d9f4c92ae2631f3f35db803f1c52b?api_key=Log-In-to-see-your-API-key | |
#possible alternative | |
curl -H "Content-Type: application/json" -d '{ "block_id": "2a5d9f4c92ae2631f3f35db803f1c52b", "msg": "your_value_here", "api_key": "Log-In-to-see-your-API-key" }' https://sender.blockspring.com/api/ |
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
`curl -O 'http://jakelodwick.imgix.net/bball.jpg\n'` |
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
var colors = ['FC4A39', 'F7CD6C', '79F7B9', 'AFC870', 'FD9A3F', 'FC5879', 'BA63BD', '5CF196']; |
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
# This script assumes a dump of images from the Everyday iOS app. | |
# It distributes all images from images/ into N subdirectories, | |
# starting with 1 and proceeding to N. | |
# the intention is to load these images into a video editor | |
# to make a variant of Kalina's videos that shows multiple | |
# images at once. | |
require 'FileUtils' | |
print "Looking for images in folder 'images'... " |
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
q:before { content: '\201C' } | |
q:after { content: '\201D'; } |
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
// paste this into your browser's console and jQuery will be loaded | |
var jq = document.createElement('script'); | |
jq.type = 'text/javascript'; | |
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'; | |
document.head.appendChild(jq); |
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
* { outline: 1px dotted red } * * { outline: 1px dotted green } * * * { outline: 1px dotted orange } * * * * { outline: 1px dotted blue } * * * * * { outline: 1px solid fuchsia } * * * * * * { outline: 1px solid teal } * * * * * * * { outline: 1px solid indigo } * * * * * * * * { outline: 1px solid brown } |
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
# type this in a terminal window to get your current local ip address: | |
ifconfig | grep 192 | awk '{print $2}' | |
# add this to whatever file runs when you open a new shell | |
# (~/.profile on OS X) | |
alias ip="ifconfig | grep 192 | awk '{print \$2}'" | |
# now you can type "ip" in a terminal window to get your local ip. | |
# note: you can replace "ip" with whatever you want. |
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
$(window).resize(function(){ | |
$('#someElement').each(function(i) { | |
$(this).css('left', ($(this).parent().width() - $(this).outerWidth(true)) / 2); | |
}); | |
}).resize(); |
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 | |
/* | |
neat_r works like print_r but with much less visual clutter. | |
By Jake Lodwick. Copy freely. | |
Example with an array: | |
$data = array( | |
"mode" => "sets", |
NewerOlder