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 | |
sudo apt-get install git curl postgresql nodejs | |
sudo add-apt-repository ppa:ondrej/php5 | |
sudo apt-get update | |
sudo apt-get install php5 php-pear | |
sudo pear config-set auto_discover 1 | |
sudo pear install pear.phpunit.de/PHPUnit |
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 hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
".idea" |
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
[ | |
{ "keys": ["ctrl+space"], "command": "goto_definition" }, | |
{ "keys": ["f1"], "command": "goto_documentation" }, | |
{ "keys": ["ctrl+shift+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} }, | |
{ "keys": ["insert"], "command": "select_lines" }, | |
] |
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 | |
from datetime import datetime | |
if sys.version_info[0] == 2: | |
range = xrange | |
class StockClassic(object): |
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
log_file = os.path.join( | |
log_dir, | |
'deadlocks' | |
'{}.log'.format(datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S')) | |
) |
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
class Robot(object): | |
def move_forward(): | |
print('Moving forward') | |
def move_backward(): | |
print('Moving backward') | |
class CleaningRobot(Robot): |
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 wraps | |
class DomainObject: | |
# nejaky domenovy objekt, ktery vyzaduje hodne parametru | |
def __init__(self, root, args, context, info): | |
pass | |
def process(self): | |
return 'OK' |
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
# Maintainer: Michael Schubert <mschu.dev at gmail> | |
pkgname=ironpython-git | |
pkgver=r2315.ac72964d7 | |
pkgrel=1 | |
pkgdesc="Python implementation for the .NET framework" | |
arch=("any") | |
url="http://ironpython.net" | |
license=("Apache") | |
depends=('mono' 'msbuild-bin') | |
makedepends=('git') |
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 __future__ import print_function | |
import requests | |
from typing import Optional | |
ADIS_HOST = 'https://adisreg.mfcr.cz' | |
ADIS_URL = '/cgi-bin/adis/idph/int_dp_prij.cgi?id=1&pocet=1&fu=&OK=+Search+&ZPRAC=RDPHI1&dic=' | |
RESPONSE_VAT_REGISTERED = u'Plátce' | |
RESPONSE_VAT_INDETIFIED_PERSON = u'Identifikovaná osoba' |
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
if [[ ${EUID} == 0 ]]; then | |
PS1="\[\e[41;30m\] \w \${?/#0}\[\e[31;49m\]"$'\xee\x82\xb0'"\[\e[00m\] " | |
else | |
PS1="\[\e[44;30m\] \w \[\\e[31m\]\${?/#0}" | |
PS1="$PS1\$(\ | |
export GIT_BRANCH=\"\$(git branch --no-color 2>/dev/null | sed -n 's/*[^ ]* //p')\"; \ | |
if [ -n \"\$GIT_BRANCH\" ] ; then \ | |
echo -en \"\[\e[43;34m\]\xee\x82\xb0 \" | |
echo -en \"\[\e[43;30m\]\$GIT_BRANCH \" | |
echo -en \"\[\e[33;49m\]\xee\x82\xb0\[\e[00m\] \" |