Skip to content

Instantly share code, notes, and snippets.

⚡️
Hello World!

Hi girvan

⚡️
Hello World!
  • US
Block or report user

Report or block girvan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1eefcafc223c704077e441981f0f0939
<script>
window.Promise || document.write('<script src="https://unpkg.com/es6-promise@3.2.1/dist/es6-promise.min.js"><\/script>');
window.fetch || document.write('<script src="https://unpkg.com/whatwg-fetch@1.0.0/fetch.js"><\/script>');
</script>
@dwickstrom
dwickstrom / nightmare.sh
Last active Dec 22, 2018
NightmareJS - install Electron on Ubuntu 14.04
View nightmare.sh
apt-get -y update
apt-get -y upgrade
apt-get -y --force-yes install make unzip g++ libssl-dev git xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps clang libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev gcc-multilib g++-multilib
npm -f init
npm i -S nightmare
xvfb-run nodejs index.js
@lopezjurip
lopezjurip / README.md
Last active May 10, 2019
Write to NTFS on OSX Yosemite and El Capitan
View README.md

OUTDATED, see comments below

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Update Homebrew formulae:

brew update
@l34marr
l34marr / city-town.py
Last active May 7, 2018
List Temple Data
View city-town.py
cities = {
'KeelungCity': '基隆市',
'TaipeiCity': '臺北市',
'NewTaipeiCity': '新北市',
'TaoyuanCity': '桃園市',
'HsinchuCounty': '新竹縣',
'HsinchuCity': '新竹市',
'MiaoliCounty': '苗栗縣',
'TaichungCity': '臺中市',
'NantouCounty': '南投縣',
@carsonmcdonald
carsonmcdonald / app.js
Created Sep 2, 2012
Use S3 CORS FileAPI uploader
View app.js
function createCORSRequest(method, url)
{
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr)
{
xhr.open(method, url, true);
}
else if (typeof XDomainRequest != "undefined")
{
xhr = new XDomainRequest();
@girvan
girvan / gist:3366739
Created Aug 16, 2012
美妝邦粉絲團 2012.08.16 抽獎活動留言存檔
View gist:3366739
2012.08.16 12:00 抽獎留言存檔 如下,共72則
從 http://on.fb.me/PmAL3X
----------------------------------
Polly Yang 兩三天畫一次~
星期一 21:26 · 讚
朱珮綺 有出門才會畫~
@girvan
girvan / gist:2707228
Created May 16, 2012
detect mobile / tablet device and insert into body class
View gist:2707228
// this project is move to https://github.com/girvan/mobile-detection
(function(){
var device = '', _ipad = 'ipad', _iphone = 'iphone', ua = navigator.userAgent.toLowerCase();
if( ua.indexOf(_ipad) != -1 )
device = 'ios tablet ' + _ipad;
else if( ua.indexOf(_iphone) != -1 )
device = 'ios mobile ' + _iphone;
View gist:2660720
淡定哥主要表情:ˊ_>ˋ
淡定哥第二表情:ˊ_ˋ
淡定哥第三表情:ˊ_>ˋ
路人第四號表情:ˊ_>ˋ
其它:
-_>- (-_>-)
@jlong
jlong / uri.js
Created Apr 20, 2012
URI Parsing with Javascript
View uri.js
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
You can’t perform that action at this time.