π¬
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
#! /usr/bin/env python | |
""" Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
Resources: | |
* http://en.wikipedia.org/wiki/8-bit_color | |
* http://en.wikipedia.org/wiki/ANSI_escape_code |
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
-- | |
-- Simple SQLite3 Example | |
-- Copyright (C) 2011 David M. Syzdek <[email protected]> | |
-- | |
-- Run: | |
-- cat hello.sql | sqlite3 hello.db | |
-- | |
-- creates tables |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
### | |
CoffeeScript | |
marker = null; | |
require(["ace/range"], (range) -> | |
marker = editor.getSession().addMarker(new range.Range(7, 0, 7, 2000), "warning", "line", true); | |
) | |
setTimeout(-> |
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
html2ascii = (asciis) -> | |
asciis.map (e, i, a) -> | |
String.fromCharCode HTML_ENTITIES.indexOf(e) if -1 isnt HTML_ENTITIES.indexOf(e) | |
ascii2html = (asciis) -> | |
asciis.map (e, i, a) -> | |
String.fromCharCode +e if HTML_ENTITIES.hasOwnProperty(e) | |
HTML_ENTITIES = Array(255) | |
HTML_ENTITIES["34"] = """ | |
HTML_ENTITIES["38"] = "&" | |
HTML_ENTITIES["39"] = "'" |
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
<html><head></head><body> | |
<div id="timer">β</div> | |
</body></html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/* | |
* JavaScript Keyboard Map (Mac layout) | |
* | |
* | |
* escββ F1βββ F2βββ F3βββ F4βββ F5βββ F6βββ F7βββ F8βββ F9βββ F10ββ F11ββ F12ββ F13βββββ+ | |
* | 27 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | ??? | | |
* ` βββ 1ββββ 2ββββ 3ββββ 4ββββ 5ββββ 6ββββ 7ββββ 8ββββ 9ββββ 0ββββ - βββ = βββ deleteββ+ | |
* | 192 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | | |
* tabββββ Qββββ Wββββ Eββββ Rββββ Tββββ Yββββ Uββββ Iββββ Oββββ Pββββ [ βββ ] βββ \ ββββ+ | |
* | 9 | 81 | 87 | 69 | 82 | 84 | 89 | 85 | 73 | 79 | 80 | 219 | 221 | 220 | |
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
#!/usr/bin/env node | |
var jsdom = require('jsdom'); | |
var wikipedia = 'http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes'; | |
var jquery = 'http://code.jquery.com/jquery.js'; | |
jsdom.env(wikipedia, [jquery], function (errors, window) { | |
var $ = window.$; | |
var tds = $('table[class="wikitable sortable"] > tr > td'); | |
if (tds.size() % 10 != 0) { |
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
Full list of Siri Commands | |
Contacts | |
βWhatβs Michaelβs address?β | |
βWhat is Susan Parkβs phone number?β | |
βWhen is my wifeβs birthday?β | |
βShow Jenniferβs home email addressβ | |
βShow Jason Russellβ | |
βFind people named Parkβ |
OlderNewer