Skip to content

Instantly share code, notes, and snippets.

View reinier's full-sized avatar
🔭
remote

Reinier Ladan reinier

🔭
remote
View GitHub Profile
@bendc
bendc / functional-utils.js
Last active September 15, 2023 12:12
A set of pure ES2015 functions aimed to make functional JavaScript more idiomatic.
// array utils
// =================================================================================================
const combine = (...arrays) => [].concat(...arrays);
const compact = arr => arr.filter(Boolean);
const contains = (() => Array.prototype.includes
? (arr, value) => arr.includes(value)
: (arr, value) => arr.some(el => el === value)
@paulvanbuuren
paulvanbuuren / header-level.less
Last active August 29, 2015 14:12
Header level. LESS mixin to help you identify the level of the headers in your text.
/* ======================================================
LESS mixin to help you identify the level
of the headers in your text.
---------------
Using a sound and complete header hierarchy vastly
improves the accessibility and understandability of your
document.
====================================================== */
@niallobrien
niallobrien / Vagrantfile
Last active March 1, 2020 01:16
My full-stack Laravel Vagrant setup. It installs LAMP with Composer, PHPUnit, Ruby & node.js. Copy these three files to your Laravel project directory and run 'vagrant up'. Once complete, run 'vagrant ssh', cd to the /vagrant/ directory and run 'bash post-install.sh'. During the post install, you'll be asked for info regarding your package.json …
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
#!/usr/bin/env ruby
# PBS 4 Dec. 2013
# Renders HTML for all the .markdown files in the current directory.
# Gives each file a .html suffix.
# Saves them in a subfolder called HTML.
require 'rdiscount'
require 'find'
require 'fileutils'
@mwarkentin
mwarkentin / Brewfile
Last active January 10, 2022 01:52
My Brewfile
# brew installs
install bash-completion
install git
install hub
install mackup
install node
install rbenv
install redis
install ruby-build
install sqlite
{
"require": {
"silex/silex": "1.0.*@dev"
}
}