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
.foo { | |
color: #f00; | |
} | |
.foo__bar { | |
color: #00f; | |
} |
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
# Croc’s moods | |
# Author: Artem Sapegin (http://sapegin.ru) | |
# | |
# croc me <mood> - Displays a link to <mood> mood of Pearls Before Swine’s croc | |
# http://coffeescriptcookbook.com/chapters/arrays/removing-duplicate-elements-from-arrays | |
Array::unique = -> | |
output = {} |
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
git config --global alias.co checkout | |
git config --global alias.st status | |
git config --global alias.ci commit | |
git config --global alias.a add | |
git config --global alias.glog "log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" |
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
git config --global alias.a add | |
git config --global alias.b branch | |
git config --global alias.c commit | |
git config --global alias.ca "commit -a" | |
git config --global alias.cam "commit -am" | |
git config --global alias.co checkout | |
git config --global alias.s "status -sb" | |
git config --global alias.glog "log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" |
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
PATH=/home/hosting_sapegin/python/lib/python2.5/site-packages:/home/hosting_sapegin/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/var/lib/gems/1.8/bin:/usr/local/rvm/bin | |
HOME=/home/hosting_sapegin | |
NODE_PATH=$HOME/usr/node | |
HUBOT_GTALK_USERNAME="*****@gmail.com" | |
HUBOT_GTALK_PASSWORD="*****" | |
HUBOT_GTALK_WHITELIST_USERS="[email protected],[email protected]" | |
HUBOT_DEPLOY_DIR="$HOME/projects" | |
0 4 * * * killall node || /home/hosting_sapegin/bin/coffee /home/hosting_sapegin/bin/hubot 2>/home/hosting_sapegin/cron |
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
[user] | |
name = Artem Sapegin | |
email = [email protected] | |
[github] | |
user = sapegin | |
# API token from https://github.com/account/admin | |
token = [***] | |
[color] | |
ui = auto | |
[core] |
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
function serve(lang, port) { | |
if (!lang && o.LANGS.length) lang = o.LANGS[0]; | |
if (!port) port = 8000; | |
var mimeTypes = { | |
'default': 'text/plain', | |
'.html': 'text/html', | |
'.jpg': 'image/jpeg', | |
'.png': 'image/png', | |
'.js': 'text/javascript', | |
'.css': 'text/css' |
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
.download | |
margin 50px | |
color hsla(0, 0%, 0%, .6) | |
&__button, | |
&__button:link, | |
&__button:visited, | |
&__button:hover, | |
&__button:active, | |
&__button:focus |
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
// © 2011 Artem Sapegin http://sapegin.ru | |
// Simple CSS3 properties with vendor prefixes | |
box-sizing() | |
-moz-box-sizing arguments | |
box-sizing arguments | |
box-shadow() | |
-webkit-box-shadow arguments |
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
def get_exportable_objects(objects, field_groups=None): | |
return [get_exportable_object(object, field_groups) for object in objects] | |
def get_exportable_object(object, field_groups=None): | |
"""Gathering information about public fields.""" | |
# Primary model | |
data = parse_exportable_fields(object, field_groups) |