View MailinatorAliases
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
@binkmail.com | |
@bobmail.info | |
@chammy.info | |
@devnullmail.com | |
@letthemeatspam.com | |
@mailinater.com | |
@mailinator.net | |
@mailinator2.com | |
@notmailinator.com | |
@reallymymail.com |
View google-seo-scraper.js
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 is a small program written in Node. I did NOT know anything about Node until coding this. | |
// The goal was to mimic this guy right here, without using a framework: https://github.com/carlsednaoui/google-allintitle-scraper | |
// You'll need a file named keywords.txt | |
// It will return a file names results.txt | |
var fs = require('fs'), | |
http = require('http'); | |
var query = "http://www.google.com/search?q=allintitle:", |
View js_map_and_reduce_from_scratch.js
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
Array.prototype.reduce = function(fn, acc) { | |
if (acc === undefined && this.length !== 0) | |
return this.slice(1).reduce(fn, this[0]); | |
if (this.length === 0) return acc; | |
return this.slice(1).reduce(fn, fn(acc, this[0])); | |
}; | |
View getOptimizelyTestName.js
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
(function getABTest() { | |
var abTestName = '', | |
abTestVariation = '', | |
abTest = 'No test', | |
abTestExperiments = optimizely.allExperiments[Object.keys(optimizely.variationMap)]; | |
if (abTestExperiments) { | |
abTestVariation = Object.keys(optimizely.variationNamesMap).map(function(el) { return optimizely.variationNamesMap[el]; })[0]; | |
abTestName = abTestExperiments.name; | |
abTest = abTestName + ': ' + abTestVariation; |
View SublimeLinter.sublime-settings
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
Show hidden characters
{ | |
"user": { | |
"debug": false, | |
"delay": 0.25, | |
"error_color": "D02000", | |
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", | |
"gutter_theme_excludes": [], | |
"lint_mode": "background", | |
"linters": { | |
"jshint": { |
View simple_timer.js
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
// $(document).ready(function() { | |
// var counter = timer(90); // time in seconds | |
// var status = "active"; | |
// function timer(count) { | |
// var intervalID = setInterval(function() { | |
// $('.timer').text(status + ": " + count); | |
// count -= 1; | |
// if (count <= 0 && status == "active") { |
View createElement.js
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
function createElement(type, attrs) { | |
return Object.keys(attrs).reduce( | |
function(el, n) { el[n]=attrs[n]; return el; }, | |
document.createElement(type) | |
); | |
} | |
What does it do? Without jQuery, it elegantly creates an element with attributes. | |
createElement('a', { |
View count.js
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 count = (function count() { | |
var counter = 0; | |
return function() { | |
return counter++; | |
} | |
})() |
View Evolution of a Ruby Programmer.rb
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
# Newbie Programmer | |
def factorial(x) | |
if x == 0 | |
return 1 | |
else | |
return x * factorial(x - 1) | |
end | |
end | |
puts factorial(6) | |
puts factorial(0) |
NewerOlder