Process | Questions |
---|---|
Product/Project Management |
|
Development |
|
Source Code Management |
|
Release |
|
QA |
|
Monitoring | Are we alerted to all critical issues?Are we warned before issues b |
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
#!/bin/bash | |
#.git/hooks/prepare-commit-msg | |
echo `git rev-parse --abbrev-ref HEAD` >> $1 |
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
for (var items = document.querySelectorAll('[id*="audio_info"]'), l = items.length - 1; l >= 0; l--) { | |
try { | |
console.log(items[l].value.match(/.*\.mp3/)[0]); | |
} catch (e) {} | |
} |
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
""" | |
Question: | |
Suppose I had a network of switches, or more generally, Nodes. Each Node | |
has a method getNeighbors(), which returns a set of adjacent Nodes in the | |
network. Write a function findNeighborhood(Node, n) which given a Node and | |
int n returns all nodes no more than n hops away. | |
Python 3.x |
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
""" | |
Question: | |
Design a deck of cards that can be used for different card games | |
Python 3.x | |
""" | |
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
""" | |
Code snippet for changing Django user's password. | |
It implies that your unique user's field is email. | |
Start Django's shell and run code below: | |
cd /path/to/project | |
python manage.py shell | |
Or use built-in `changepassword` command: | |
cd /path/to/project |
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
import sys | |
import xml.etree.cElementTree as et | |
def main(file_path): | |
f = open(file_path, 'r') | |
iter = et.iterparse(f) | |
print '<html><meta charset="utf8">' | |
for event, elem in iter: |
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
from functools import reduce | |
checkio = lambda number: reduce(lambda x, y: x * y, | |
filter(lambda digit: digit, | |
map(int, str(number)))) | |
assert checkio(1) == 1, 'The simplest one' | |
assert checkio(10) == 1, 'With zero' | |
assert checkio(234) == 24, '234' |
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
import re;p=lambda n:not re.match(r'^1?$|^(11+?)\1+$','1'*n) | |
d=lambda s:s==s[::-1] | |
def golf(n): | |
while 1: | |
n+=1 | |
if p(n)*d(str(n)):return n |
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
""" | |
Download and save PostgreSQL documentation as a single | |
HTML-page replacing URLs with HTML anchors. | |
To convert the resulting HTML file to an e-book use | |
appropriate online services. | |
Be carful opennig it in a browser. The resulting HTML | |
could be heavy. | |
""" |
OlderNewer