Skip to content

Instantly share code, notes, and snippets.

View devxom's full-sized avatar

Ilia A. Reshetnikov devxom

View GitHub Profile
@devxom
devxom / imgur.py
Created July 1, 2014 01:21 — forked from kstep/imgur.py
#!/usr/bin/python
from poster.encode import multipart_encode
from poster.streaminghttp import register_openers
import urllib2
import simplejson
import sys
try:
input_file = open(sys.argv[1], 'rb')
@devxom
devxom / .derekwyatt.vimrc
Created September 5, 2015 19:41
Derek Wyatt's Vim Configuration
" https://github.com/derekwyatt/vim-config/
" Derek Wyatt's Vim Configuration
"
" It's got stuff in it.
"
"-----------------------------------------------------------------------------
" Global Stuff
"-----------------------------------------------------------------------------
@devxom
devxom / .tpope.vimrc
Created September 5, 2015 19:44
tpope ~/.vimrc
# https://github.com/tpope/tpope/.vimrc
" ~/.vimrc
if filereadable(expand('~/src/vim/bundle/vim-pathogen/autoload/pathogen.vim'))
source ~/src/vim/bundle/vim-pathogen/autoload/pathogen.vim
endif
if has("win32")
let &runtimepath = substitute(&runtimepath,'\(Documents and Settings\|Users\)[\\/][^\\/,]*[\\/]\zsvimfiles\>','.vim','g')
endif
silent! execute pathogen#infect("~/src/vim/vendor/{}")
cat ~/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
@devxom
devxom / nless2blocksinlastrow-flex.jade
Last active February 22, 2016 14:02
Not less than 2 blocks subsidiaries in the last row
.parent
- for (var x = 1; x < 16; x++)
div.child
// https://gostash.it/ru/stashes/1467-ocen-prostoj-parser-matematiceskih-vyrazenij
var TokenType = {
Empty: { name: "Empty" },
Number: { name: "Number", expectAfter: [ "Empty", "Operator" ] },
Operator: { name: "Operator", expectAfter: [ "Number", "Expression" ] },
Expression: { name: "Expression", expectAfter: [ "Empty", "Operator" ] }
};
var Operator = [
@devxom
devxom / gitChangeAuthor.sh
Last active March 29, 2016 10:15
Git Tips
git filter-branch --force --env-filter '
if ["$GIT_COMMITTER_NAME" = "nsept"];
then
GIT_COMMITTER_NAME="Nsept";
GIT_AUTHOR_NAME="Nsept";
fi' -- --all
git push --force
@devxom
devxom / index.html
Created March 29, 2016 18:22
List cut
<ul class="list-group hidden-attributes">
<li class="list-group-item attr">Операционная система: Android 5.0 </li>
<li class="list-group-item attr">Процессор: Qualcomm Snapdragon 410 APQ8016</li>
<li class="list-group-item attr">Количество ядер: 4 </li>
<li class="list-group-item attr">Встроенная память: 16 Гб </li>
<li class="list-group-item attr">Оперативная память: 1 Гб</li>
<li class="list-group-item text-center">
<a href="#" class="show-attributes">
<span class="control">Показать больше записей...</span>
<span class="control hidden">Меньше записей</span>
@devxom
devxom / frontend-link.md
Last active April 2, 2016 15:02
Frontend link list
// ==UserScript==
// @name DuoTweak
// @namespace duolingo
// @description Useful add-on for Duolingo | visit https://www.duolingo.com/comment/7619770 | (c) Lifeshade aka HeadwayCourse, 2015
// @version 1.1.0
// @author Lifeshade aka HeadwayCourse, (c) 2015
// @include https://www.duolingo.com/*
// @updateURL https://raw.githubusercontent.com/Lifeshade/duolingo/master/DuoTweak/DuoTweak.meta.js
// @downloadURL https://raw.githubusercontent.com/Lifeshade/duolingo/master/DuoTweak/DuoTweak.user.js
// @grant none