Skip to content

Instantly share code, notes, and snippets.

Idan Goldman idangoldman

Block or report user

Report or block idangoldman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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
<?php
/**
* The template for displaying all resource pages
*
* Template Name: Resource
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
@idangoldman
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');
@idangoldman
idangoldman / Fetch.sublime-settings
Last active Aug 29, 2015
Nettuts Fetch setting list
View Fetch.sublime-settings
{
"files": {
"angular": "http://code.angularjs.org/snapshot/angular.min.js",
"angular resource": "http://code.angularjs.org/snapshot/angular-resource.min.js",
"backbone": "http://backbonejs.org/backbone-min.js",
"jquery 1": "http://code.jquery.com/jquery.min.js",
"jquery 2": "http://code.jquery.com/jquery-2.1.0.min.js",
"normalize css": "https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css",
"phone format (libphonenumber)": "https://raw.githubusercontent.com/albeebe/phoneformat.js/master/PhoneFormat.js",
"require js": "https://raw.githubusercontent.com/jrburke/requirejs/master/require.js",
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',
@idangoldman
idangoldman / functions.less
Created Jul 30, 2012
Collection of Less functions that will save you some code time.
View functions.less
// Variables
@images: '../images';
@sprite: 'sprite.png';
@sprite-y: 'sprite-y.png';
@sprite-repeat-x: 'sprite_repeat_x.png';
@sprite-repeat-y: 'sprite_repeat_y.png';
@grid-width: 960px;
@grid-width-em: 960/16em;
@font-family-base: verdana,arial,tahoma,sans-serif;
You can’t perform that action at this time.