Skip to content

Instantly share code, notes, and snippets.

@adeluccar
adeluccar / create-project.sh
Created July 11, 2017 05:34 — forked from jasonlewis/create-project.sh
Bash script that creates a new project and virtual host for that project. Can also be used to quickly create a new Laravel project.
#!/bin/bash
# This script creates a new project (or site) under /var/sites and creates
# new virtual host for that site. With the options a site can also
# install the latest version of Laravel directly.
# This script was originally based on the following script by @Nek from
# Coderwall: https://coderwall.com/p/cqoplg
# Display the usage information of the command.
create-project-usage() {
@adeluccar
adeluccar / GIF-Screencast-OSX.md
Created July 11, 2017 05:35 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@adeluccar
adeluccar / .tern-project
Created July 17, 2017 02:34 — forked from nisaacson/.tern-project
Use tern with vim for node.js development.
{
"libs": [
"browser",
"underscore",
"jquery"
],
"plugins": {
"node": {}
}
}
@adeluccar
adeluccar / README.md
Created August 1, 2017 06:38 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@adeluccar
adeluccar / pnpm.zsh
Created August 9, 2017 07:32 — forked from danielbayley/pnpm.command
A binstub to seamlessly alias @npm to @pnpm.
#! /bin/zsh -f
disable which # builtin
alias -g i=install
pnpm () { command pnpm $@ --config ${NPM_CONFIG_USERCONFIG:-~/.npmrc} }
if (which -s pnpm) npm () {
NODE_BIN=`brew --prefix node`/bin
export PATH=$PATH:$NODE_BIN