Skip to content

Instantly share code, notes, and snippets.

View myanbin's full-sized avatar

Ma Yanbin myanbin

View GitHub Profile
@sandersk
sandersk / voyage.css
Last active June 12, 2017 03:20
Media Query for Kindle Voyage
/* Media Query for Kindle Voyage in either portrait or landscape modes */
@media amzn-kf8 and (device-height: 1448px) and (device-width: 1072px),
amzn-kf8 and (device-height: 1072px) and (device-width: 1448px) {
/* Put your CSS for Kindle Voyage here */
}
@nicolashery
nicolashery / solarized-dark.css
Last active October 9, 2025 17:55 — forked from scotu/solarized.css
Solarized theme stylesheets for Jekyll and Pygments
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
@agnoster
agnoster / README.md
Last active December 4, 2025 22:26
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@clyfish
clyfish / solarized-dark.xcs
Created December 21, 2011 07:06
xshell solarized dark color theme
[Solarized Dark]
text(bold)=839496
magenta(bold)=6c71c4
text=839496
white(bold)=fdf6e3
green=859900
red(bold)=cb4b16
green(bold)=586e75
black(bold)=073642
red=dc322f
@revolunet
revolunet / lzw_encoder.js
Created February 25, 2011 14:55
LZW javascript compress/decompress
// LZW-compress a string
function lzw_encode(s) {
var dict = {};
var data = (s + "").split("");
var out = [];
var currChar;
var phrase = data[0];
var code = 256;
for (var i=1; i<data.length; i++) {
currChar=data[i];