Skip to content

Instantly share code, notes, and snippets.

View yoshuawuyts's full-sized avatar

Yosh yoshuawuyts

View GitHub Profile
@yoshuawuyts
yoshuawuyts / readme.md
Last active August 29, 2015 14:20 — forked from mattdesl/readme.md

Typical process:

  • fork a repo
  • make your patch
  • send PR

Sometimes its a long wait, and in the mean time you end up depending on Git (bad for semver/persistence, slow installs, etc).

public scoped packages

curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@yoshuawuyts
yoshuawuyts / frp.md
Last active August 29, 2015 14:22 — forked from ohanhi/frp.md

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Foreword

# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
# tic xterm-256color-italic.terminfo
#
# Usage:
#
# export TERM=xterm-256color-italic
#
// main.js
const vel = require('vel')
const testElement = require('./test-element')
const el = vel(function (h, state) {
return h.html(`<div>
<h1>clicked ${String(state.n)} times</h1>
<button onclick=${onclick}>click me!</button>
${testElement(h, state, el)}
@yoshuawuyts
yoshuawuyts / top-100-dev-dependents.txt
Last active August 29, 2015 14:26 — forked from mattdesl/top-100-dev-dependents.txt
Top 100 Dev Dependents on npmjs (as of Jul 31, 2015)
mocha 44731
chai 17944
grunt 17447
should 11882
grunt-contrib-jshint 11466
gulp 8619
istanbul 7374
tape 7313
sinon 6851
grunt-contrib-clean 6807
@yoshuawuyts
yoshuawuyts / README.md
Last active August 29, 2015 14:27 — forked from watson/README.md
A list of search and replace unix commands to help make a node repository 'standard' compliant

The standard code style linter is a great tool by Feross - check it out!

Remove trailing semicolons:

find . -path ./node_modules -prune -o -type f -name '*.js' -exec sed -i '' -e 's/;$//' {} \;

Ensure space between function and opening bracket:

@yoshuawuyts
yoshuawuyts / steps-lldb-jit-on-osx.md
Last active August 31, 2015 05:03 — forked from thlorenz/steps-lldb-jit-on-osx.md
lldb JIT on OSX (showing no useful info at this point)

Installation

Ninja

  • needed for faster Node.js builds
brew install ninja
machine:
node:
version: 0.10.35
dependencies:
pre:
- sudo apt-get install -y libpoppler-glib-dev libpoppler-glib8 libcairo2-dev libcairo2
- sudo apt-get install -y libpq-dev
database:
override:
- psql -c 'create database test;' -U postgres
@yoshuawuyts
yoshuawuyts / how-to-view-source-of-chrome-extension.md
Last active September 8, 2015 16:05 — forked from paulirish/how-to-view-source-of-chrome-extension.md
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=unknown&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.