Skip to content

Instantly share code, notes, and snippets.

View shurik's full-sized avatar
🎯
Focusing

Sasha Vladimirskiy shurik

🎯
Focusing
View GitHub Profile
<header role="banner">
<h1>HTML5 Kitchen Sink</h1>
<small>Jump to: <a href="#headings">Headings</a> | <a href="#sections">Sections</a> | <a href="#phrasing">Phrasing</a> | <a href="#palpable">Palpable Content</a> | <a href="#embeds">Embeds</a> | <a href="#forms">Forms</a> | <a href="#tables">Tables</a> </small> <br><br>
<p>This section seves as the <code>header</code>.</p>
</header>
<hr>
<main>
<section id="headings">
<h3><a href="#headings">#</a> Headings </h3>
<p>Elements <code>h1</code>, <code>h2</code>, <code>h3</code>, <code>h4</code>,
# ~/.config/pycodestyle
[pycodestyle]
max-line-legth = 100
ignore = E501,E121,E123,E126,E133,E226,E241,E242,E704,W503,W504
@shurik
shurik / global_extra_conf.py
Created December 4, 2018 01:47
YCM support for virtualenvs
def Settings(**kwargs):
client_data = kwargs['client_data']
return {
'interpreter_path': client_data['g:ycm_python_interpreter_path'],
'sys_path': client_data['g:ycm_python_sys_path'],
}
@shurik
shurik / .vimrc
Last active February 4, 2019 06:14
My personal VIM configuration
set nocompatible
syntax on
set nowrap
set encoding=utf-8
"""" START Vundle Configuration
" Disable file type for vundle
filetype off
" set the runtime path to include Vundle and initialize
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }

Keybase proof

I hereby claim:

  • I am shurik on github.
  • I am shurik (https://keybase.io/shurik) on keybase.
  • I have a public key ASDzHMKhOUesxE3LqkwthoR4w3epxqU4DkhRJdF6GDYRdwo

To claim this, I am signing this object:

<?php
/*
* Plugin Name: Root-based Category URLs
* Description: Enables root-based Category URLs, i.e. Makes /category/my-category/ URLs route as /my-category/
* Author: Mike Schinkel
* Author URI: http://about.me/mikeschinkel
* Plugin URI: https://gist.github.com/1421235
* Version: 0.1.1
* License: GPL 2+
*/
// From http://kolodny.github.io/blog/blog/2013/12/27/my-favorite-jquery-plugin-template/
;(function($) {
// multiple plugins can go here
(function(pluginName) {
var defaults = {
color: 'black',
testFor: function(div) {
return true;
}
};
(venv)➜ greenlet git:(master) python setup.py build
running build
running build_ext
Traceback (most recent call last):
File "setup.py", line 127, in <module>
**setuptools_args)
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
@shurik
shurik / gist:3288580
Created August 7, 2012 19:21
Our local settings
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'dev.db',
'USER': '',
'PASSWORD': '',