Skip to content

Instantly share code, notes, and snippets.

View akashnimare's full-sized avatar
I may be slow to respond.

Akash akashnimare

I may be slow to respond.
View GitHub Profile
akashnimare / 0_reuse_code.js
Created October 9, 2015 12:54
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
function throttle( fn, time ) {
var t = 0;
return function() {
var args = arguments, ctx = this;
t = setTimeout( function() {
fn.apply( ctx, args );
}, time );
akashnimare / .bashrc
Created June 7, 2016 23:01
Variable in Shell/Alias
Here is a simple demo function showing how to use variable in an alias.
ls *.$1;
Use it like - show variablename
Example - show png
- git clone the production branch
- use mkvirtaulenv and virtualwrapper to make virtual env
- mkvirtualenv xyz
- workon xyz
- npm install
- pip install -r requirements.txt
- python collectstatics
- python syncdb
- python runserver
'use strict';
const path = require('path');
const electron = require('electron');
const app =;
// const ipc = require('electron').ipc;
const remote = require('electron').remote;
const ipcMain = require('electron').ipcMain;
// var BrowserWindow = require('BrowserWindow');
const tray = require('./tray');
. Not many people know this, but Dhoni’s journey to the world of cricket was not a smooth one. In fact, the East Zone squad that won the Deodhar Trophy in 2003/04 (with Dhoni in the team) had first rejected him in 1998/99 due to his unconventional style of playing.
function commit() {
local b
local r
b=$(git rev-parse --abbrev-ref HEAD)
r=$(git remote)
read -e -p "Message:" msg
read -e -p "Branch [${b}]:" branch
read -e -p "Remote [${r}]:" remote
Tell us where you want to go, what you want to achieve, and we, as a team, will find a way of making it happen.
akashnimare / main.js
Last active December 30, 2016 19:07
Adding auto-updates to electron apps
const electron = require('electron');
const {app} = require('electron');
const isDev = require('electron-is-dev'); // this is required to check if the app is running in development mode.
const {appUpdater} = require('./autoupdater');
/* Handling events on windows
only required if you have build the windows with target squirrel. For NSIS target you don't need it. */
if (require('electron-squirrel-startup')) {

Keybase proof

I hereby claim:

  • I am akashnimare on github.
  • I am meakaakka ( on keybase.
  • I have a public key whose fingerprint is 39BD 5B1A 4A01 CA2F C603 3BCE 2896 B553 19D9 1D77

To claim this, I am signing this object: