Skip to content

Instantly share code, notes, and snippets.

View eznj's full-sized avatar

eznj

View GitHub Profile
@eznj
eznj / Regex:IP
Created October 15, 2012 08:59 — forked from yannisxu/Regex:IP
Regex:IP
((?:(?:25[0-5]|2[0-4]\d|[01]?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d?\d))
@eznj
eznj / coffeescript install npm
Created November 8, 2012 06:11
coffeescript homebrew install
#install homebrew
go to site for link to curl.. etc..
#install node
brew install node
#add this to .bashrc
export NODE_PATH/usr/local/lib/node_modules
#install NPM
@eznj
eznj / Ruby bad chars
Created December 13, 2012 14:46
Bad Chars
Regexp.new(/\ |\,|\:|\.|\<|\>|\?|\/|\\|\+|\=|\_|\-|\(|\)|\*|\&|\^|\%|\#|\$|\[|\]|–|\n|\r|\t|\}|\{|\@|\!|¡|™|£|¢|∞|§|¶|•|ª|º|≠|‘|“|…|æ|÷|≥|≤|«|”|’|å|ß|∂|ƒ|©|˙|∆|˚|¬|Ω|≈|ç|√|∫|˜|µ|œ|∑|´|®|†|¥|¨|ˆ|ø|π"/)
@eznj
eznj / javascript utf8
Created December 24, 2012 19:57
javascript utf8
/**
*
* UTF-8 data encode / decode
* http://www.webtoolkit.info/
*
**/
var Utf8 = {
// public method for url encoding
@eznj
eznj / Apache mod_gizip stuff gzip
Created January 15, 2013 07:37
Apache 1.3 Gzip mod_gzip stuff..
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
mod_gzip_can_negotiate Yes
mod_gzip_add_header_count Yes
mod_gzip_send_vary Yes
mod_gzip_command_version '/mod_gzip_status'
mod_gzip_min_http 1000
mod_gzip_minimum_file_size 300
@eznj
eznj / underscore mustache conversion
Created January 24, 2013 22:03
underscore mustache style syntax conversion...
_.templateSettings = {
interpolate : /\{\{(.+?)\}\}/g
}
@eznj
eznj / star_wars.ino
Last active September 26, 2023 18:24
Arduino Star Wars Song
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
const int b = 466;
const int cH = 523;
/^\b((?:https?:\/\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))$/
@eznj
eznj / gist:e75bfec47b2f2c49b886
Created March 13, 2016 08:06 — forked from mrdoob/gist:1325393
ffmpeg: recording the screen.
ffmpeg -f x11grab -b 1M -bt 2M -r 30 -s 512x512 -i :0.0+1,53 -an kinect.webm
@eznj
eznj / gist:beffcad9e4ef7c04c173
Created March 13, 2016 08:06 — forked from mrdoob/gist:1326080
modified glview.c
/*
* This file is part of the OpenKinect Project. http://www.openkinect.org
*
* Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file
* for details.
*
* This code is licensed to you under the terms of the Apache License, version
* 2.0, or, at your option, the terms of the GNU General Public License,
* version 2.0. See the APACHE20 and GPL2 files for the text of the licenses,
* or the following URLs: