This file contains hidden or 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
SELECT order_date, order_amount | |
FROM customers | |
JOIN orders | |
ON customers.customer_id = orders.customer_id | |
WHERE customer_id = 3 |
This file contains hidden or 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
Number.toGrayCode = function(n) { | |
if (n < 0) { | |
throw new RangeError("cannot convert negative numbers to gray code"); | |
} | |
return n ^ (n >>> 1); | |
}; | |
Number.fromGrayCode = function(gn) { | |
if (gn < 0) { | |
throw new RangeError("gray code numbers cannot be negative"); |
This file contains hidden or 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
#!/bin/bash | |
# The author of the original script is unknown to me. The first entry I can | |
# find was posted at 2010-03-21 09:50:09 on Arch Linux Forums (doesn't mean the | |
# poster is the author at all): | |
# | |
# https://bbs.archlinux.org/viewtopic.php?pid=728932#p728932 | |
# | |
# I, Yu-Jie Lin, made a few changes and additions: | |
# | |
# -p, -R, and -C |
This file contains hidden or 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 fs = require('fs'); | |
var repl = require('repl'); | |
console.log("Loading dictionary..."); | |
var words = fs.readFileSync("/usr/share/dict/american-english-small", "ascii"); | |
var wordlist = {}; | |
var regex = /[a-z]{4,}/g; | |
var match; |