Skip to content

Instantly share code, notes, and snippets.

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

Akash Nimare akashnimare

💭
I may be slow to respond.
View GitHub Profile
@akashnimare
akashnimare / autoupdater.js
Last active March 26, 2018 14:38
Add auto-updates to your Electron app
'use strict';
const os = require('os');
const {app, autoUpdater, dialog} = require('electron');
const version = app.getVersion();
const platform = os.platform() + '_' + os.arch(); // usually returns darwin_64
const updaterFeedURL = 'http://zulipdesktop.herokuapp.com/update/' + platform + '/' + version;
// replace updaterFeedURL with http://yourappname.herokuapp.com
function appUpdater() {
@akashnimare
akashnimare / README.md
Last active January 29, 2024 15:16
A Beginners Guide to writing a Kickass README ✍

Project title

A little info about your project and/ or overview that explains what the project is about.

Motivation

A short description of the motivation behind the creation and maintenance of the project. This should explain why the project exists.

Build status

Build status of continus integration i.e. travis, appveyor etc. Ex. -

Build Status

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.
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
. 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.
'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');
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
@akashnimare
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.
show(){
ls *.$1;
}
Use it like - show variablename
Example - show png
function throttle( fn, time ) {
var t = 0;
return function() {
var args = arguments, ctx = this;
clearTimeout(t);
t = setTimeout( function() {
fn.apply( ctx, args );
}, time );
};
@akashnimare
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