Skip to content

Instantly share code, notes, and snippets.

View yoshuawuyts's full-sized avatar

Yosh yoshuawuyts

View GitHub Profile
@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
// 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)}
# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
# tic xterm-256color-italic.terminfo
#
# Usage:
#
# export TERM=xterm-256color-italic
#
@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

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 / 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

@yoshuawuyts
yoshuawuyts / taskgit
Last active August 29, 2015 14:18 — forked from unode/taskgit
#!/bin/sh
# copyright 2014 Renato Alves
# distributed under the GPL licence
if [ -z "$TASKDIR" ]; then
#TODO Look for data location in rc:location instead of assuming ~/.taskrc
TASKDIR="$(grep data.location $HOME/.taskrc | cut -d '=' -f 2)"
fi
@yoshuawuyts
yoshuawuyts / _.md
Last active August 29, 2015 14:17 — forked from klange/_.md

Since this is on Hacker News...

  • No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later).
  • I apologize for the use of _t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
  • They're all while loops because shut up, you're overthinking a joke.
@yoshuawuyts
yoshuawuyts / cliclock.sh
Last active August 29, 2015 14:16 — forked from Goles/cliclock.sh
#!/bin/sh
# Command-line world clock
# Taken from http://stackoverflow.com/questions/370075/command-line-world-clock
# .worldclock.zones file looks like:
# US/Pacific
# Europe/Berlin
# Chile/Continental
: ${WORLDCLOCK_ZONES:=$HOME/.worldclock.zones}
{ config, pkgs, ... }:
let
hostname = "luz3";
in {
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# I use VirtualBox to connect to Windows and Linux guests