Skip to content

Instantly share code, notes, and snippets.

View sapegin's full-sized avatar
🌄
Disconnected

Artem Sapegin sapegin

🌄
Disconnected
View GitHub Profile
<a href="#">I am link!</a>
<a href="#">I am link!</a>
@sapegin
sapegin / deploy.coffee
Created June 25, 2012 11:48
Simple script for sites deployment
# Simple script for site deployment
#
# Required environment variables:
# * HUBOT_DEPLOY_DIR - Directory with projects
#
# Project directory structure:
# * HUBOT_DEPLOY_DIR/
# * site
# * deploy.sh
# * htdocs, etc.
@sapegin
sapegin / main.js
Created July 13, 2012 06:24
Controls helper
/**
* Controls
*
* <span data-trigger="slider-next" data-recipient=".portfolio">Next</span>
*/
$(document).click(function(e) {
var target = e.target;
if (target.getAttribute('data-trigger') && target.getAttribute('data-recipient')) {
target = $(target);
$(target.data('recipient')).trigger(target.data('trigger'));
@sapegin
sapegin / grunt.js
Created July 27, 2012 06:42
Gruntfile for Wordpress theme
/**
How to build this project?
1. Install Grunt:
npm install grunt -g
mkdir node_modules
npm install grunt-stylus
2. Build:
grunt
@sapegin
sapegin / imgo.js
Created August 6, 2012 12:04
imgo task for Grunt
/**
* imgo task for Grunt
*
* @author Artem Sapegin (http://sapegin.me)
*/
/*jshint node:true */
module.exports = function(grunt) {
'use strict';
@sapegin
sapegin / footer.php
Created August 7, 2012 19:10
RequireJS in Wordpress theme
@sapegin
sapegin / grunt.js
Created August 15, 2012 08:42
Sapegin.me gruntfile
@sapegin
sapegin / gist:3706111
Created September 12, 2012 11:43
Happy programmers day!
(+(d=new Date)-d.setMonth(0,256))/864e5||'Happy programmers day'