Skip to content

Instantly share code, notes, and snippets.

/*
* jQuery Double Tap
* Developer: Sergey Margaritov (github.com/attenzione)
* License: MIT
* Date: 22.10.2013
* Based on jquery documentation http://learn.jquery.com/events/event-extensions/
*/
(function($){
@hmans
hmans / application.html.slim
Last active October 27, 2023 17:52
Application layout for Rails (4 and 5), Slim style.
doctype html
html
head
title My App
meta name="viewport" content="width=device-width, initial-scale=1.0"
= stylesheet_link_tag "application", media: 'all', 'data-turbolinks-track' => true
= javascript_include_tag "application", 'data-turbolinks-track' => true
= csrf_meta_tags
body
@Edditoria
Edditoria / evernote-clearly.css
Created December 15, 2012 09:15
My customized CSS theme for the Evernote Clearly browser extension
/**
* CSS theme for the Clearly browser extension by Evernote.
* See: www.evernote.com/clearly/
*
* Options used alongside this CSS:
* Body font: "Adelle", Georgia, 微軟正黑體, Helvetica, Arial, sans-serif
* Header font: Soho-condensed, PT Serif, 微軟正黑體, Helvetica
* Monospace font: 微軟正黑體Mono, Inconsolata, Consolas, Droid Sans Mono
* Background: #FFFFFF
* Foregound: #333333
@growbt
growbt / gist:1868630
Created February 20, 2012 09:58
Grow! Button micro data format.
<span itemscope="" itemref="[Shape]" itemtype="http://growbutton.com/ns#button">
<span itemprop="url">[URL]</span>
<span itemprop="title">[Title]</span>
<span itemprop="image">[Image]</span>
<span itemprop="apikey">[ApiKey]</span>
</span>
[Shape] : square or rectangle, Shape of the Grow! button
[URL] : URL of the content page
[Title] : Title of the content page
@sungmin-park
sungmin-park / jquery.github.js
Created January 10, 2012 15:19
jquery.github
(function($) {
$.github = function(method, id, callback) {
return $.ajax('https://api.github.com' + method + '/' + id, {
cache : true,
dataType : 'jsonp',
success : function(data) {
if(data.meta.status != 200) {
return console.error(data.meta);
}
return callback(data.data);
@nhoffmann
nhoffmann / restrictions.conf
Created December 29, 2011 15:42
Nginx global configuration files to ease the configuration of wordpress multisite installations under nginx/php-fpm. Simply import these configurations in your specific configuration
# Global restrictions configuration file.
# Designed to be included in any server {} block.</p>
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;