Skip to content

Instantly share code, notes, and snippets.

View ryanmcgrath's full-sized avatar
💭
==bG9s

Ryan McGrath ryanmcgrath

💭
==bG9s
View GitHub Profile
@ryanmcgrath
ryanmcgrath / hack.sh
Created March 31, 2012 18:21 — forked from erikh/hack.sh
OSX For Hackers
#!/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
#
@ryanmcgrath
ryanmcgrath / JapaneseRegex.js
Created May 20, 2011 02:32 — forked from sym3tri/JapaneseRegex.js
Regex to test for presence of Japanese characters
// REFERENCE UNICODE TABLES:
// http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml
// http://www.tamasoft.co.jp/en/general-info/unicode.html
//
// TEST EDITOR:
// http://www.gethifi.com/tools/regex
//
// UNICODE RANGE : DESCRIPTION
//
// 3000-303F : punctuation
encoded_data = x
request {
uri: 'http://stashbox.org/upload.php',
method: 'POST',
uri: 'http://...',
multipart: [
{
'content-type': 'multipart/form-data',
body: encoded_data
<script type="text/javascript">
$(document).ready(function(){
$('#slide_one').delay(2000).fadeOut(500, function() {
$('#slide_two').fadeIn(500).delay(2000).fadeOut(500, function() {
$('#slide_three').fadeIn(500).delay(2000).fadeOut(500, function() {
$('#slide_one').fadeIn(500);
});
});
});
});