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
$f("", {}, | |
{ | |
clip: { | |
onMetaData: function(c) { | |
var fd = c.duration; | |
//create a cue point for 25, 50 and 75% of player progress | |
var cues = [ | |
{ | |
time: fd * .25 * c.cuepointMultiplier, | |
name: "25%" |
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
American Express 3400 0000 0000 009 | |
Carte Blanche 3000 0000 0000 04 | |
Discover 6011 0000 0000 0004 | |
Diner's Club 3000 0000 0000 04 | |
enRoute 2014 0000 0000 009 | |
JCB 2131 0000 0000 0008 | |
MasterCard 5500 0000 0000 0004 | |
Solo 6334 0000 0000 0004 | |
Switch 4903 0100 0000 0009 | |
Visa 4111 1111 1111 1111 |
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
#Find all 4-digit numbers that contain 1,2,3 or 4 | |
(1111..4444).to_a.find_all{|n| n.to_s =~ /[1-4]{4}/} |
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
/^((http|https|ftp):\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/ix |
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 | |
require("postmark.php"); | |
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address"); | |
$result = $postmark->to("[email protected]") | |
->subject("Email Subject") | |
->plain_message("This is a plain text message.") | |
->attachment('File.pdf', $file_as_string, 'application/pdf') |
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
str = "(San Francisco, CA), (San Jose, CA), Palo Alto, Cupertino, (Mountain View, CA)"; | |
//> "(San Francisco, CA), (San Jose, CA), Palo Alto, Cupertino, (Mountain View, CA)" | |
str.split(/\s*,\s*(?![\w\s]*\))/) | |
//> ["(San Francisco, CA)", "(San Jose, CA)", "Palo Alto", "Cupertino", "(Mountain View, CA)"] |
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
raw JSON.parse(@my_object.to_json, :symbolize_names => true) |
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
actionmailer (3.2.14) | |
actionpack (3.2.14) | |
activemodel (3.2.14) | |
activerecord (3.2.14) | |
activeresource (3.2.14) | |
activesupport (3.2.14) | |
acts_as_indexed (0.8.3) | |
arel (3.0.2) | |
awesome_nested_set (2.1.6) | |
awesome_print (1.1.0) |
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
# install dependencies | |
sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm git | |
# clone cpuminer | |
git clone https://github.com/pooler/cpuminer.git | |
# compile | |
cd cpuminer | |
./autogen.sh | |
./configure CFLAGS="-O3" |
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
#From Homebrew/homebrew#10292 https://github.com/Homebrew/homebrew/issues/10292 | |
chown -R $(whoami) /usr/local/.git |
OlderNewer