Skip to content

Instantly share code, notes, and snippets.

View rangedsp's full-sized avatar

Jonny Lin rangedsp

View GitHub Profile
@rangedsp
rangedsp / animatedUrl.js
Created January 18, 2019 09:49
AnimatedUrl
var f = ['🌑', '🌘', '🌗', '🌖', '🌕', '🌔', '🌓', '🌒'],
d = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
m = 0;
function loop() {
var s = '', x = 0;
if (!m) {
while (d[x] == 4) {
x ++;
@rangedsp
rangedsp / gist:7eceb320fea00b344dbdd17cd154cdef
Created April 8, 2016 00:35
Global install fails in Bash on Ubuntu on Windows (fresh install)
root@localhost:~# npm install -g gulp
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
/root/.npm-global/lib
└── (empty)
npm ERR! Linux 3.4.0+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "gulp"
npm ERR! node v5.10.1