Skip to content

Instantly share code, notes, and snippets.

Let me know if you need a second opinion.

Idan Goldman idangoldman

Let me know if you need a second opinion.
View GitHub Profile
View .aliases
alias serve='ruby -run -e httpd . -p 8000' # Or python -m SimpleHTTPServer :)
alias brewup='brew update; brew upgrade; brew cleanup; brew doctor'
alias flushdns='sudo killall -HUP mDNSResponder'
alias git_cc='git rm -r --cached . && git add . && git status'
alias ll='ls -la'
alias sshr='ssh -l root'
alias hosts='sudo vim /etc/hosts'
View resource-and-functions.php
* The template for displaying all resource pages
* Template Name: Resource
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
idangoldman / Gulpfile.js
Created May 28, 2016
Simple gulpfile for building css, js, html and assets with compass, browserify, nunjucks and moving them from app to _build folder
View Gulpfile.js
var gulp = require('gulp');
autoprefixer = require('gulp-autoprefixer'),
browserify = require('browserify'),
clean = require('gulp-clean'),
compass = require('gulp-compass'),
es = require('event-stream'),
glob = require('glob'),
rename = require('gulp-rename'),
source = require('vinyl-source-stream'),
nunjucks = require('gulp-nunjucks');
View country_list.php
<?php $country_list = array(
'AF' => 'Afghanistan',
'AX' => 'Aland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarctica',
You can’t perform that action at this time.