Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| /* | |
| * Are my mangas out yet?? AMMOY?? | |
| * a little script that could be croned to know if the mangas you follow are out. | |
| */ | |
| // Website where to fetch infos | |
| var urlMV = "http://www.mangaverse.net/html/planning/listesorties.htm"; | |
| // The regexp to get the info | |
| var reTitre = /- (.+) ([0-9]+) \(.+\)/; | |
| // The titles you follow | 
| /*! iepp v2.2 MIT/GPL2 @jon_neal & afarkas */ | |
| (function(win, doc) { | |
| //taken from modernizr | |
| if ( !window.attachEvent || !doc.createStyleSheet || !(function(){ var elem = document.createElement("div"); elem.innerHTML = "<elem></elem>"; return elem.childNodes.length !== 1; })()) { | |
| return; | |
| } | |
| win.iepp = win.iepp || {}; | |
| var iepp = win.iepp, | |
| elems = iepp.html5elements || 'abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|subline|summary|time|video', | |
| elemsArr = elems.split('|'), | 
| ls | grep ..._.... | while read f; do mv $f `echo $f | sed "s/\(..._\(..\)\(..\)\)/2012-\3-\2/g" `; done | 
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # | 
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform sampler2D from, to; | |
| uniform float progress; | |
| uniform vec2 resolution; | |
| uniform float dots; | |
| void main() { | 
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform sampler2D from, to; | |
| uniform float progress; | |
| uniform vec2 resolution; | |
| const float SQRT_2 = 1.414213562373; | |
| uniform float dots;// = 20.0; | 
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| // npm install agentkeepalive batch-stream csv-parse stream-transform | |
| var HttpsAgent = require('agentkeepalive').HttpsAgent; | |
| var Algolia = require('algolia-search'); | |
| var stream = require( 'stream' ); | |
| var parse = require('csv-parse'); | |
| var fs = require('fs') | |
| var transform = require('stream-transform'); | |
| var Batch = require( 'batch-stream' ); | 
| hl(){ | |
| highlight -O ansi $1 | less -r | |
| } | 
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |