Skip to content

Instantly share code, notes, and snippets.

View MarketingPip's full-sized avatar
🚬
🌳

Jared Van Valkengoed MarketingPip

🚬
🌳
View GitHub Profile
@MicahElliott
MicahElliott / colortrans.py
Created November 29, 2010 07:57
Convert values between RGB hex codes and xterm-256 color codes.
#! /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
@syzdek
syzdek / books.sql
Created May 5, 2011 07:26
SQLite3 Example DB and queries
--
-- Simple SQLite3 Example
-- Copyright (C) 2011 David M. Syzdek <[email protected]>
--
-- Run:
-- cat hello.sql | sqlite3 hello.db
--
-- creates tables
@bluesmoon
bluesmoon / LICENSE.txt
Created October 18, 2011 16:58 — forked from aemkei/LICENSE.txt
JS ASCII Logo - 140byt.es
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
@assertchris
assertchris / gist:2577836
Created May 2, 2012 16:09
Highlight lines in Ace (Editor)
###
CoffeeScript
marker = null;
require(["ace/range"], (range) ->
marker = editor.getSession().addMarker(new range.Range(7, 0, 7, 2000), "warning", "line", true);
)
setTimeout(->
@lsauer
lsauer / converter.coffee
Created May 18, 2012 09:36
JavaScript / Coffeescript : Lightweight Conversion of HTML Entities to ASCII / ASCII 2 HTML
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"] = "&quot;"
HTML_ENTITIES["38"] = "&amp;"
HTML_ENTITIES["39"] = "&#39;"
@lsauer
lsauer / textanim.html
Created June 1, 2012 09:13
JavaScript - Pure Text based animation fun with Unicodes / ASCII
<html><head></head><body>
<div id="timer">β—‰</div>
</body></html>
@jasonm23
jasonm23 / xterm-256color.svg
Last active July 10, 2025 05:53
Xterm 256color mode color chart, organised into sections. (used on Wikipedia/xterm)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ancestral
ancestral / ASCII JS Keyboard Map
Created July 6, 2012 04:33
ASCII keyboard map for JavaScript keycodes (Mac)
/*
* 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 |
@Loddan
Loddan / iso639.js
Created November 14, 2012 22:58
Generates JSON ISO 639-1 Codes from Wikipedia
#!/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) {
@terretta
terretta / gist:4081758
Created November 15, 2012 22:16
Full List of Siri Comands
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”