Skip to content

Instantly share code, notes, and snippets.

Working from home

Evsyukov Denis juev

Working from home
View GitHub Profile
View input-placeholder.sass
// Mixins ---------------------------------------------------------------
juev / chat.index.html
Created Jun 26, 2011 — forked from matthewfl/chat.index.html
A really basic chat server on
View chat.index.html
<script src=""></script>
$(function () {
function check () {
$("#output").load('/update', function () {
setTimeout(check, 1);
juev /
Created Jun 26, 2011 — forked from isaacs/
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh
juev / related_articles_help.rb
Created Jun 29, 2011 — forked from owengriffin/related_articles_help.rb
Nanoc helper to list articles related to the current item
View related_articles_help.rb
View pagination_helper.rb
module PaginationHelper
# The main pagination method, you should only need to call this
# Returns full HTML markup for pagination links
def pagination(page, pages, uri)
html, ul = [], []
html << pagination_position(page, pages)
if pages > 1
ul << pagination_previous_link(page, uri)
ul << pagination_page_links(page, pages, uri)
juev / tag_cloud_tag.rb
Created Jul 9, 2011 — forked from ilkka/tag_cloud_tag.rb
Jekyll tag cloud / tag pages plugin
View tag_cloud_tag.rb
module Jekyll
class TagCloudTag < Liquid::Tag
safe = true
def initialize(tag_name, text, tokens)
def render(context)
html = ""
juev / coffeescript_converter.rb
Created Jul 28, 2011 — forked from phaer/coffeescript_converter.rb
A trivial -> Javascript plugin for jekyll ( ). Put this file in '_plugins/' and write a YAML header to your .coffee files (i.e. "---\n---\n")
View coffeescript_converter.rb
module Jekyll
require 'coffee-script'
class CoffeeScriptConverter < Converter
safe true
priority :normal
def matches(ext)
ext =~ /coffee/i
juev / html_reset.css
Created Aug 27, 2011 — forked from nathansmith/html_reset.css
Reset for HTML4 / HTML5
View html_reset.css
/* `XHTML, HTML4, HTML5 Reset
juev / css.vim
Created Sep 3, 2011 — forked from tpope/css.vim
Nikolai's fix to nested closing curly brace indenting
View css.vim
" Vim indent file
" Language: CSS
" Maintainer: Nikolai Weibull <>
" Latest Revision: 2010-12-22
if exists("b:did_indent")
let b:did_indent = 1
juev / .inputrc
Created Sep 8, 2011 — forked from tpope/.inputrc
Basic amenities for vi readline bindings
View .inputrc
set keymap vi-insert
Control-a: beginning-of-line
Control-b: backward-char
Control-d: delete-char
Control-e: end-of-line
Control-f: forward-char
Control-k: kill-line
Control-n: next-history
Control-p: previous-history
set keymap emacs-ctlx