Skip to content

Instantly share code, notes, and snippets.

View sapegin's full-sized avatar
🌄
Disconnected

Artem Sapegin sapegin

🌄
Disconnected
View GitHub Profile
@sapegin
sapegin / Contributing.md
Created May 13, 2013 12:31
Contributing Guidelines

How to contribute

I love pull requests. And following this simple guidelines will make your pull request easier to merge.

Submitting pull requests

  1. Create a new branch, please don’t work in master directly.
  2. Add failing tests (if there’re any tests in project) for the change you want to make. Run tests (usually grunt or npm test) to see the tests fail.
  3. Hack on.
@sapegin
sapegin / styles.styl
Last active December 16, 2015 06:49
Tâmia layout module examples
<!-- Use directly in HTML: no custom CSS neded -->
<div class="l-row">
<div class="l-half">
1/2
</div>
<div class="l-half">
1/2
</div>
</div>
@sapegin
sapegin / gist:4510703
Last active April 9, 2017 20:37
Чеклист запуска сайта
  • Картинки для ретины.
  • Фавиконка 16×16.
  • Фавиконка 32×32.
  • Иконки для Айоса и Андроида.
  • Счётчик.
  • Проверка битых ссылок.
  • 404-я страница.
  • RSS.
  • robots.txt.
  • humans.txt.
@sapegin
sapegin / Gruntfile.coffee
Created December 24, 2012 08:38
Springhare admin Gruntfile
# gruntjs.com
#jshint node:true
module.exports = (grunt) ->
"use strict"
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks)
path = require("path")
# Project configuration
@sapegin
sapegin / JsCodeStyle.md
Last active October 14, 2015 01:07 — forked from sindresorhus/codestyle.md
My JavaScript Code Style

JavaScript Code Style

  • Tab indentation
  • Single-quotes
  • Semicolon
  • camelCase
  • Strict mode
  • No trailing whitespace
  • Variables where needed
  • Multiple variable statements
@sapegin
sapegin / fabfile.py
Created November 26, 2012 06:03
Deploy via BitBucket repo using Fabric
from __future__ import with_statement
from fabric.api import *
from fabric.contrib.files import exists
env.use_ssh_config = True
env.hosts = ['locum']
REPO = 'git@bitbucket.org:sapegin/grunt-talk.git'
DEST = 'projects/sapegin/htdocs/subprojects/pres/grunt'
/**
* HashNav
*
* Simple hash navigation
*
* @author Artem Sapegin
* @copyright 2012 Artem Sapegin, http://sapegin.me
* @license MIT
*/
@sapegin
sapegin / fabfile.py
Created November 9, 2012 05:42
Deploy script from bare Git repo
from __future__ import with_statement
from fabric.api import *
from fabric.contrib.files import exists
env.use_ssh_config = True
env.hosts = ['locum']
REPO = 'git/sapegin.git'
DEST = 'projects/sapegin'
@sapegin
sapegin / htmlhl.js
Created September 26, 2012 20:26
Very simple HTML syntax highlighter
/* Author: Artem Sapegin, http://sapegin.me, 2012 */
/*jshint browser:true, jquery:true, white:false, smarttabs:true, eqeqeq:true,
immed:true, latedef:true, newcap:true, undef:true */
/*global jQuery:false, define:false*/
(function (factory) { // Try to register as an anonymous AMD module
if (typeof define === 'function' && define.amd) {
define([], factory);
} else {
factory();
@sapegin
sapegin / shugar.styl
Created September 25, 2012 07:43
background-image with Retina variant for Stylus
retina = true;
images-relative-root = '..';
// ...
// background-image with Retina variant (path@2x.png)
if retina
image(path, x=0, y=0)
background url(path) x y
@media (-webkit-min-device-pixel-ratio:1.5), (min-resolution:144dpi)