Skip to content

Instantly share code, notes, and snippets.

View ivikash's full-sized avatar

Vikash Agrawal ivikash

View GitHub Profile
@ivikash
ivikash / vimrc
Created November 30, 2010 11:05
vim configuration file
set nu
set autoindent
set smartindent
set cin
set tabstop=4
set shiftwidth=4
set title
syntax on
@ivikash
ivikash / Emacs init
Created October 27, 2011 13:29
init.el
;;
;; This is where the magic starts
;;
;; This file is not part of GNU Emacs.
;;; Commentary:
;;
;; "Emacs outshines all other editing software in approximately the
;; same way that the noonday sun does the stars. It is not just bigger
@ivikash
ivikash / ERC
Created October 27, 2011 13:31
erc.el
(require 'erc)
(require 'erc-nick-notify)
(erc :server "irc.freenode.net" :full-name "Vikash Agrawal")
(erc :server "irc.gimp.org" :full-name "Vikash Agrawal")
(erc :server "irc.mozilla.org" :full-name "Vikash Agrawal")
((setq erc-autojoin-channels-alist '(("freenode.net" "#emacs" "#lumanipal" "##linux-india" "#gsoc" "#xcb" "##c" "#python"))))
((setq erc-autojoin-channels-alist '(("#gimp.org" "#gnome" "#gnome-love"))))
@ivikash
ivikash / ERC
Created October 27, 2011 15:02
ercrc.el
;ERC
(setq erc-autojoin-channels-alist
'(("freenode.net" "#emacs" "#lumanipal" "##linux-india" "#gsoc" "#xcb" "##c" "#python" )
("gimp.org" "#gnome" "#gnome-love")))
(erc :server "irc.freenode.net" :port 6667 :nick "vikash" :full-name "Vikash Agrawal")
(erc :server "irc.gimp.org" :port 6667 :nick "vikash" :full-name "Vikash Agrawal")
@ivikash
ivikash / ERC
Created October 27, 2011 17:41
.ercrc.el
;; ERC config
;; Copyright (C) 2011 - Vikash Agrawal
;; Author: Vikash Agrawal <vikashagrawal1990@gmail.com>
;; Keywords: local
;; This file is NOT part of GNU Emacs.
;; This is free software; you can redistribute it and/or modify it under
@ivikash
ivikash / checkParen.py
Created October 31, 2011 11:09
To check all the parenthesis are closed or not
import fileinput
flag = 0
# for line in fileinput.input():
# if (line.count("{") - line.count("}")!=0):
# print line
lines = [line for line in fileinput.input() if (line.count("{") - line.count("}")!=0)]
@ivikash
ivikash / errors.sh
Created October 31, 2011 11:49
Presentation on git
[vikash@localhost GIT]$ pdflatex git.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./git.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
@ivikash
ivikash / cprofileTesting.py
Created November 1, 2011 06:02
Testing cProfile
import cProfile
def fib(n):
"""Fibonacci series
"""
if n==0:
return 0
elif n == 1:
return 1
Loading /usr/share/emacs/site-lisp/site-start.d/emacs-magit-mode.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/focus-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)...done
Loading /home/vikash/.emacs.d/config/core.el (source)...done
Loading /home/vikash/.emacs.d/config/utils.el (source)...done
Loading /home/vikash/.emacs.d/config/cosmetic.el (source)...
Loading /home/vikash/.emacs.d/lib/blackbored.el (source)...done
Loading /home/vikash/.emacs.d/config/cosmetic.el (source)...done
Loading /home/vikash/.emacs.d/config/built-in.el (source)...done
@ivikash
ivikash / *scratch*
Created November 8, 2011 17:23
./python -m test -j3
331 tests OK.
2 tests failed:
test_distutils test_time
4 tests altered the execution environment:
test_multiprocessing test_packaging test_site test_sysconfig
23 tests skipped:
test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
test_codecmaps_kr test_codecmaps_tw test_curses test_kqueue
test_msilib test_ossaudiodev test_smtpnet test_socketserver