Skip to content

Instantly share code, notes, and snippets.

View shurik's full-sized avatar
🎯
Focusing

Sasha Vladimirskiy shurik

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML Document</title>
<style>
body {
background-color: black;
}
diff --git a/project/templates/pages/menus/admin.html b/project/templates/pages/menus/admin.html
index 39299d6..c92e283 100644
--- a/project/templates/pages/menus/admin.html
+++ b/project/templates/pages/menus/admin.html
@@ -41,7 +41,11 @@
</div>
<br clear="all" />
+ {% if page.children.all %}
{% page_menu page %}
@shurik
shurik / gist:3286114
Created August 7, 2012 15:03
Pip install Mezzanine 1.2.0 fails
(xxx)% pip install Mezzanine
Downloading/unpacking Mezzanine
Downloading Mezzanine-1.2.0.tar.gz (4.7Mb): 4.7Mb downloaded
Running setup.py egg_info for package Mezzanine
Traceback (most recent call last):
File "<string>", line 14, in ?
File "/Users/xxx/.virtualenvs/xxx/build/Mezzanine/setup.py", line 16
with open(e, "r") as f:
^
SyntaxError: invalid syntax
@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': '',
(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)
// 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;
}
};
<?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+
*/

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:

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; }
@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