Skip to content

Instantly share code, notes, and snippets.

View prtksxna's full-sized avatar
🐢
Slow and steady

Prateek Saxena prtksxna

🐢
Slow and steady
View GitHub Profile
@prtksxna
prtksxna / CLA.md
Last active February 12, 2017 10:36
CLA for GrayPE

Decisively

Contributor License Agreement (“Agreement”)

Thank you for your interest in Decisively's open source project being administered by GrayPE Private Limited (“GrayPE”). The form of license below is a document that clarifies the terms under which You, the person listed below, may contribute software, bug fixes, configuration changes, documentation, or any other materials that you send to us related to the Project (each a “Contribution”) to the project.

We appreciate your participation in our project, and your help in improving the project, so we want you to understand what will be done with the Contributions. This license is for your protection as well as the protection of GrayPE and his licensees; it does not change your rights to use your own Contributions for any other purpose. Please complete the following information about you and the Contributions and sign electronically by filling out the form below.

If you have questions about these terms, please contact GrayPE at sanjaya@graype.in.

[alias]
lg = log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
l = !git --no-pager log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -10
blog = log -p
@prtksxna
prtksxna / murgi.sh
Last active August 29, 2015 13:56
Usage `./murgi.sh mediawiki/extensions/Popups dptypes.pmtpa.wmflabs 113951 2`
#!/bin/bash
REPO=$1
HOST=$2
CHANGE=$3
PS=$4
DIR=${CHANGE: -2}
ssh -t $HOST bash -c "'
cd /vagrant/$REPO
@prtksxna
prtksxna / data.json
Created December 8, 2013 05:47
Structure for DISE data
[
{
"text": "District",
"children": [
{
"id": "d1",
"text": "Bellary"
},
{
"id": "d2",
@prtksxna
prtksxna / brain.js
Last active December 30, 2015 05:59
var list = d3.select("ul").selectAll("li").data(DATA.people);
@prtksxna
prtksxna / js.md
Created November 18, 2013 06:55 — forked from ritvvijparrikh/js.md

General

  • Indentation - 4 spaces
  • Line Length - 80 characters
  • Required License in File Header

Naming

  • variables and functions - lowerCamelCase
  • constructor like functions - UpperCamelCase
  • constants - ALL_UPPER_CASE_WITH_UNDERSCORES
@prtksxna
prtksxna / Monokai.itermcolors
Created August 7, 2013 04:34
The Monokai color theme for iTerm2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.094957888126373291</real>
<key>Green Component</key>
<real>0.11470980197191238</real>
alias andlog='adb logcat *:W| /Users/prateeksaxena/work/dev/utilities/colorlogcat.py'
alias fprofile='/Applications/Firefox.app/Contents/MacOS/firefox -profilemanager'
alias e='emacs'
alias ls='ls -G'
alias l='ls -la'
alias c='cd'
alias g='git'
alias cat='less'
@prtksxna
prtksxna / .gitignore
Last active September 24, 2015 16:08
[user]
name = Put a Name
email = email@server.com
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
(defun color-theme-almost-monokai ()
(interactive)
(color-theme-install
'(color-theme-almost-monokai
((background-color . "#272821")
(foreground-color . "#F8F8F2")
(cursor-color . "#DAD085"))
(default ((t (nil))))
(modeline ((t (:background "white" :foreground "black"
:box (:line-width 1 :style released-button)))))