Skip to content

Instantly share code, notes, and snippets.

@nivir
nivir / BlackJack.py
Last active August 29, 2015 14:05
BlackJack Game written in python
import ColorLog
import random
import copy
import Deck
import Hand
import CardShuffle
import Player
class BlackJack():
@nivir
nivir / ExtractVowel.py
Created August 13, 2014 11:23
Random Testing code for extract vowel
__author__ = 'Roy'
def extract_vowels():
letters = 'abcdefghijklmnopqrstuvwxyz'
pos = dict(zip(xrange(1, 27), letters))
print pos
alphabet = [chr(i) for i in xrange(97, 123)]
print alphabet
# generate a list of vowels
vowels = map(lambda x: chr(x), reduce(lambda acc, i: acc + [acc[-1] + i], (4, 4, 6, 6, 4), [97]))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.4.1-py2.7-macosx-10.5-x86_64.egg/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.4.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/pylab.py", line 274, in <module>
from matplotlib.pyplot import *
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.4.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/pyplot.py", line 109, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.4.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/backends/__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
►► server_repo ►►
GIT_CURL_VERBOSE=1 GIT_TRACE=1 git pull origin master > debug.txt
18:55:49.593874 git.c:555 trace: exec: 'git-pull' 'origin' 'master'
18:55:49.594566 run-command.c:351 trace: run_command: 'git-pull' 'origin' 'master'
18:55:49.609954 git.c:346 trace: built-in: git 'rev-parse' '--git-dir'
18:55:49.614856 git.c:346 trace: built-in: git 'rev-parse' '--is-bare-repository'
18:55:49.618121 git.c:346 trace: built-in: git 'rev-parse' '--show-toplevel'
18:55:49.622212 git.c:346 trace: built-in: git 'ls-files' '-u'
18:55:49.625890 git.c:346 trace: built-in: git 'symbolic-ref' '-q' 'HEAD'
18:55:49.633704 git.c:346 trace: built-in: git 'config' 'pull.ff'
Notifying Redmine about changes to this repository : 'test_1/server_repo' ...
HTTP_ERROR : execution expired
Looking for additional global post-receive hooks...
- Global hooks found : ["hooks/post-receive.d/mail_notifications"]
Looking for additional local post-receive hooks...
- No local hooks found
Calling additional post-receive hooks...
@nivir
nivir / .gitconfig
Last active September 14, 2015 07:47 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@nivir
nivir / Global.sublime-settings
Created October 23, 2015 00:27 — forked from benatkin/Global.sublime-settings
excluding node_modules from Sublime Text 2
// Place user-specific overrides in this file, to ensure they're preserved
// when upgrading
{
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"]
}
@nivir
nivir / .gitconfig
Created November 16, 2015 13:39 — forked from rab/.gitconfig
A good starting point for ~/.gitconfig
# -*- Conf -*-
[color]
branch = auto
diff = auto
status = auto
showbranch = auto
ui = true
# color.branch
# A boolean to enable/disable color in the output of git-branch(1). May be set to always, false (or
@nivir
nivir / .gitconfig
Created November 16, 2015 22:25 — forked from eculver/.gitconfig
Sample .gitconfig
[user]
name = Joe User
email = joe@joeuser.com
[branch]
autosetupmerge = true
[branch "master"]
remote = origin
merge = refs/heads/master
@nivir
nivir / README.md
Created November 17, 2015 08:08 — forked from hofmannsven/README.md
My simply Git Cheatsheet