This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chown root /Library/LaunchAgents/gnu.emacs.daemon.plist | |
sudo launchctl load -w /Library/LaunchAgents/gnu.emacs.daemon.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=PROPER(TEXT(DATE(2015,B2,1),"MMM")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A brief history of all objects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do Not Disturb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; | |
;;; ELPA | |
;;; | |
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "http://marmalade-repo.org/packages/") | |
("melpa" . "http://melpa.milkbox.net/packages/"))) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show colors | |
set -g default-terminal "xterm-color" | |
# Allow native scroll back in terminal.app | |
set -ga terminal-overrides 'xterm*:smcup@:rmcup@' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tmux/Screen tab title | |
case "$TERM" in | |
screen) | |
PROMPT_COMMAND="printf '\033k$(hostname -s)\033\';"${PROMPT_COMMAND} | |
;; | |
esac |
OlderNewer