Skip to content

Instantly share code, notes, and snippets.

View shishirsharma's full-sized avatar
🤑
Focusing

Shishir Sharma shishirsharma

🤑
Focusing
View GitHub Profile
@shishirsharma
shishirsharma / winexample.cpp
Created June 22, 2014 09:08
Windows GUI example code.
// Windows GUI example code
#include < windows.h >
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
/* Make the class name into a global variable */
char szClassName[ ] = "WindowsExApp";
@shishirsharma
shishirsharma / python-2.6-config.bat
Created June 22, 2014 09:20
python-2.6-config.bat
@ECHO OFF
@SET PATH= %PATH%;C:appandyourpathhere;D:appandonemore
@SET SOMEVARABLE=E:somepath
@SET DIRCMD=/D /N
@PROMPT $G
@ECHO Setting environment for YOURSYSTEM VER
@ECHO %TIME% %DATE%
@ECHO Namaskar Criss.
sudo chown root /Library/LaunchAgents/gnu.emacs.daemon.plist
sudo launchctl load -w /Library/LaunchAgents/gnu.emacs.daemon.plist
@shishirsharma
shishirsharma / gist:2f01b98ff44372a51258
Created June 5, 2015 06:01
Convert month number into string in Libreoffce
=PROPER(TEXT(DATE(2015,B2,1),"MMM"))
@shishirsharma
shishirsharma / A brief history of all objects
Last active December 9, 2015 09:51
A brief history of all objects
A brief history of all objects
Do Not Disturb
@shishirsharma
shishirsharma / will_paginate.rb
Last active December 22, 2015 03:28 — forked from isaacbowen/will_paginate.rb
Works with Bootstrap 3 and Will_paginate 3.0.4 and Sinatra
# gist https://gist.github.com/expertmind/6410029
# Based on https://gist.github.com/isaacbowen/1182136
module WillPaginate
module Sinatra
module Helpers
include ViewHelpers
def will_paginate(collection, options = {}) #:nodoc:
@shishirsharma
shishirsharma / .emacs
Created October 14, 2013 05:26
Melpa for emacs
;;;
;;; ELPA
;;;
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
@shishirsharma
shishirsharma / .tmux.conf
Last active December 25, 2015 11:48
Here is how to get colors working and allow native scrollback in terminal.app
# Show colors
set -g default-terminal "xterm-color"
# Allow native scroll back in terminal.app
set -ga terminal-overrides 'xterm*:smcup@:rmcup@'
# Tmux/Screen tab title
case "$TERM" in
screen)
PROMPT_COMMAND="printf '\033k$(hostname -s)\033\';"${PROMPT_COMMAND}
;;
esac