Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ijxsid's full-sized avatar
🖐️
Ask for help

Inderjit Sidhu ijxsid

🖐️
Ask for help
  • Planet Earth
View GitHub Profile
@ijxsid
ijxsid / .block
Last active January 4, 2017 20:18
Pie Chart with Dimple.JS
license: mit
@ijxsid
ijxsid / page.html
Last active August 29, 2016 10:22
Redirection via Javascript (Add this to any HTML page, and it will direct to a given 'next' url param)
<script type="text/javascript">
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
@ijxsid
ijxsid / app.js
Last active August 29, 2015 14:26 — forked from sogko/app.js
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
@ijxsid
ijxsid / gist:6a1c1628f7b2ed591d96
Last active August 29, 2015 14:23
Installing ES6 Babel
npm install gulp -g
npm install gulp --save
npm install gulp-browserify --save
npm install babelify --save
@ijxsid
ijxsid / gist:363b8c21c5d9a9bccd41
Created October 25, 2014 14:45
Setting up the New Python 3 Build system in Sublime Text 2
Go to Tools>Build System>New Build System
It Opens a file untitled.sublime-build
Then copy the following JSON to it:
{
"cmd": ["c:/Python34/python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}