I hereby claim:
- I am akashnimare on github.
- I am meakaakka (https://keybase.io/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:
// 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; | |
clearTimeout(t); | |
t = setTimeout( function() { | |
fn.apply( ctx, args ); | |
}, time ); | |
}; |
Here is a simple demo function showing how to use variable in an alias. | |
show(){ | |
ls *.$1; | |
} | |
Use it like - show variablename | |
Example - show png |
Installation | |
- 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 manage.py collectstatics | |
- python manage.py syncdb | |
- python mangae.py runserver |
'use strict'; | |
const path = require('path'); | |
const electron = require('electron'); | |
const app = electron.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. |
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 squirrel.windows 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')) { | |
app.quit(); | |
} |
I hereby claim:
To claim this, I am signing this object: