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 heads = 0 | |
var tails = 0 | |
var ratio = 0 | |
var ratios = [] | |
var ratioratio = 0 | |
function flip() { | |
heads = 0 | |
tails = 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
var numbers = [1,2,3,4,5,6,7,8,9,10,11,12,13] | |
var selections = [] | |
for (var i = 0; i < 4; i++) { | |
selections.push(numbers.splice(Math.floor((Math.random()*numbers.length)),1).pop()) | |
} | |
var cards = [Math.floor(Math.random()*13), Math.floor(Math.random()*13), Math.floor(Math.random()*13), Math.floor(Math.random()*13)] | |
var u1 = new Object(); |
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 set = [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", ".", "?", "'", " "] | |
var tier1 = Array.from({length: set.length}, (v, k) => k+1); | |
var tier2 = Array.from(tier1, x => x + set.length) | |
var tier3 = Array.from(tier2, x => x + set.length) | |
var tier4 = Array.from(tier3, x => x + set.length) | |
function encode(the_string) { | |
the_string = the_string.toUpperCase().replace("\"", "\'\'") |
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
tell application "Google Chrome" | |
repeat with w in windows | |
set i to 1 | |
repeat with t in tabs of w | |
if URL of t starts with "https://calendar.google" then | |
set active tab index of w to i | |
set index of w to 1 | |
if URL of t is not "https://calendar.google.com/calendar/u/1/r/week" then | |
set URL of t to "https://calendar.google.com/calendar/u/1/r/week" | |
end if |
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
// Room hosts array of strings. | |
let hosts = [] | |
// Non-host attendees, array of strings. | |
let people = [] | |
// Rooms to be populated next. | |
let rooms = [] | |
// Assign each host to a room. |
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
# lib/tasks/db.rake | |
namespace :db do | |
desc 'Drop, create, migrate then seed the development database' | |
task reseed: [ 'db:drop', 'db:create', 'db:migrate', 'db:seed' ] do | |
puts 'Reseeding completed.' | |
end | |
end |
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
<html> | |
<body> | |
<a href="sms://+14035550185?body=I%27m%20interested%20in%20your%20product.%20Please%20contact%20me.">Send a SMS message</a> | |
</body> | |
</html> |