Skip to content

Instantly share code, notes, and snippets.

View rohillion's full-sized avatar

Rodrigo hillion rohillion

  • Dublin, Ireland
View GitHub Profile
@rohillion
rohillion / gulpfile.js
Created June 6, 2016 19:58 — forked from danharper/gulpfile.js
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
@rohillion
rohillion / gist:6b427e132b17b19c6ad74f2ee3649865
Created May 23, 2016 13:53
Clear tracked files cache from .gitignore
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
@rohillion
rohillion / hashtagCounter.php
Created July 31, 2013 13:25
PHP #hashtags counter
<?php
global $total, $hashtag;
//$hashtag = '#supportvisitbogor2011';
$hashtag = '#australialovesjustin';
$total = 0;
function getTweets($hash_tag, $page) {
global $total, $hashtag;
$url = 'http://search.twitter.com/search.json?q='.urlencode($hash_tag).'&';
$url .= 'page='.$page;
$ch = curl_init($url);