Skip to content

Instantly share code, notes, and snippets.

View dolftax's full-sized avatar

Jai Pradeesh dolftax

View GitHub Profile
@dolftax
dolftax / sublime.conf
Last active March 17, 2016 13:19
Sublime text 3 custom conf
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_inactive_tabs": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"font_face": "Hack",
"font_options":
[
@dolftax
dolftax / select_element.js
Created October 24, 2015 02:18
jQuery isn't a solution for everything
var $ = function (el) {
return document.querySelector(el);
};
var $$ = function (el) {
return document.querySelectorAll(el);
};
@dolftax
dolftax / 0_reuse_code.js
Created November 17, 2015 18:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dolftax
dolftax / pty.js
Created November 20, 2015 15:32
pty.js build fails on node v4.2.0
> pty.js@0.2.3 install /home/jai/altair/node_modules/vfs-local/node_modules/pty.js
> node-gyp rebuild
make: Entering directory `/home/jai/altair/node_modules/vfs-local/node_modules/pty.js/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc:65:15: error: ‘Arguments’ does not name a type
PtyFork(const Arguments&);
^
../src/unix/pty.cc:65:24: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
PtyFork(const Arguments&);
^
@dolftax
dolftax / version-inc.js
Last active January 17, 2016 18:23
Version incrementer
var replaceStream = require('replacestream')
var fs = require('fs')
var mode = process.argv[2]
var exec = require('child_process').exec
if(process.argv[2]) {
fs.readFile(process.cwd() + '/VERSION', function(err, data) {
var verArr = data.toString('utf8').split('\n')[0].split('.')
var oldVer = verArr[0] + '.' + verArr[1] + '.' + verArr[2]
@dolftax
dolftax / s.js
Last active January 19, 2016 05:55
//! moment.js
//! version : 2.8.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function (undefined) {
/************************************
Constants
************************************/
@dolftax
dolftax / countries-alphaTwo.json
Created April 28, 2016 09:44
Countries and their alpha two code values
{
"AD": "Andorra",
"AE": "United Arab Emirates",
"AF": "Afghanistan",
"AG": "Antigua and Barbuda",
"AI": "Anguilla",
"AL": "Albania",
"AM": "Armenia",
"AO": "Angola",
"AR": "Argentina",

Keybase proof

I hereby claim:

  • I am dolftax on github.
  • I am dolftax (https://keybase.io/dolftax) on keybase.
  • I have a public key ASDUiZV--g8jLzANSY8pr2AZka_NmDlw3fDIlpsc-9z-MQo

To claim this, I am signing this object:

@dolftax
dolftax / irssi-notify.sh
Created September 20, 2016 20:13
Irssi Notifier
#!/bin/bash
# watch your irssi fnotify file for new messages to notify you of...
# Copyright (C) 2012-2013 James Shubin
# Written by James Shubin <james@shubin.ca>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@dolftax
dolftax / fnotify.pl
Created September 20, 2016 20:15 — forked from matthutchinson/fnotify.pl
Irssi fnotify
# todo: grap topic changes
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.0.3';
%IRSSI = (
authors => 'Thorsten Leemhuis',
contact => 'fedora@leemhuis.info',