Skip to content

Instantly share code, notes, and snippets.

View herrjemand's full-sized avatar

Ackermann Yuriy herrjemand

View GitHub Profile
* Intro.js v0.3.0
* MIT licensed
* Copyright (C) 2013 - A weekend project by Afshin Mehrabani (@afshinmeh)
(function (root, factory) {
if (typeof exports === 'object') {
.introjs-overlay {
position: absolute;
z-index: 999999;
background-color: #000;
opacity: 0;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-ms-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
# name: это строка которую транслитим
def transliterate(name):
Автор: LarsKort
Дата: 16/07/2011; 1:05 GMT-4;
Не претендую на "хорошесть" словарика. В моем случае и такой пойдет,
вы всегда сможете добавить свои символы и даже слова. Только
это нужно делать в обоих списках, иначе будет ошибка.
# Слоаврь с заменами
herrjemand /
Last active August 29, 2015 14:06
import json
x = {}
with open('countries.json') as f:
x = json.loads(
jzon = ''
for i in x:
codes = {
"name": "\"name\":",
herrjemand / harrythespells.json
Created October 4, 2014 08:20
Harry Potter list of all spells
"Accio (Summoning Charm)",
"(Age Line)",
"Aguamenti (Aguamenti Charm)",
"(Anti-Cheating Spell)",
"(Anti-Disapparition Jinx)",
"Avada Kedavra (Killing Curse)",
herrjemand / harrythespells.filtered.json
Created October 4, 2014 08:28
Harry Potter spells filtered.
"Avada Kedavra",
"Cave Inimicum",
#<IfDefine PHP4>
#LoadModule php4_module modules/
#<IfDefine PHP5>
#LoadModule php5_module modules/
# We will enable it by default
#<IfDefine PHP>
LoadModule php5_module modules/

Git. Basics.

As I discovered through my career, beginning developers usually not using git for two main reasons:

  • They think that git is complicated, because they never tried it.
  • They think that git is complicated, because they used other version control system.

This article will explain basics of git, and how you can benefit from it.

If you have not install git yet ->

for file in *.JPG; do convert $file -quality 50 50q-$file; echo "Done compression of "$file; done #50% quality of the original
for file in *.JPG; do convert $file -resize x1024 resized-$file; echo "Done resize of "$file; done #resize to 1024px height
for file in *.JPG; do git add $file; echo "Done git add "$file; done #add to git
for file in *.JPG; do realpath $file; done #print real path of the image
for file in *.JPG; do cat "/home/niemand/Timelapse/c/"$file > `readlink -e $file`; done #fuckup fix
convert -delay 10 -loop 0 *.JPG animation.gif
for D in *; do
if [ -d "${D}" ]; then
cd "${D}"
herrjemand /
Last active August 29, 2015 14:13
Script to download flags using mledoze/countries data set.
from lxml import html #pip install lxml
import requests, time, os.path, json
save_to = 'flags_new' #folder where you want to save. NO / !
temp_data, data = {}, {}
errors = 'Errors: \n'
def stripper(c_name):
print('Doing: ', c_name)
page = requests.get('' + c_name + '.svg') #loads the webpage
tree = html.fromstring(page.text) #html to xpath tree