Skip to content

Instantly share code, notes, and snippets.

View axelav's full-sized avatar
🕸️

Axel Anderson axelav

🕸️
View GitHub Profile
@axelav
axelav / dabblet.css
Created January 9, 2012 14:34 — forked from chriscoyier/dabblet.css
nice buttons
.button {
border: 1px solid #DDD;
border-radius: 3px;
text-shadow: 0 1px 1px white;
box-shadow: 0 1px 1px #fff;
font: bold 11px Sans-Serif;
padding: 6px 10px;
white-space: nowrap;
vertical-align: middle;
color: #666;
@axelav
axelav / gist:1839777
Created February 15, 2012 22:51 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@axelav
axelav / gasmask_focus_mode
Created May 1, 2012 02:24
Gasmask focus mode
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
# focus mode
# toggled with http://www.clockwise.ee/gasmask/
0.0.0.0 twitter.com
0.0.0.0 mail.google.com
@axelav
axelav / tag_cloud_tag.rb
Created August 26, 2012 20:44 — forked from ilkka/tag_cloud_tag.rb
Jekyll tag cloud / tag pages plugin
module Jekyll
class TagCloudTag < Liquid::Tag
safe = true
def initialize(tag_name, text, tokens)
super
end
def render(context)
html = ""
@axelav
axelav / minmal_twitter.css
Created September 27, 2012 19:44 — forked from cmod/minmal_twitter.css
Twitter stylebot
/* -------------------------------------------------
MINIMAL TWITTER FOR FLUID / USERSTYLES
Special thanks to:
Max Fenton (@maxfenton) for kicking this off
------------------------------------------------- */
.trends,
@axelav
axelav / gi
Created November 8, 2012 21:26 — forked from javierarce/gi
# Download file from URL + Upload to your server + Copy short URL to your clipboard
# Use it like this:
# gi http://25.media.tumblr.com/tumblr_md2j4a4Eot1rddgbmo1_1280.png
# And get something like this:
# tumblr_md2j4a4Eot1rddgbmo1_1280.png 100% 41KB 41.4KB/s 00:00
# Copied to the clipboard: http://goo.gl/ITEIG

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Building a router</title>
<script>
// Put John's template engine code here...
(function () {
// A hash to store our routes:
@axelav
axelav / scrollspy.coffee
Last active January 4, 2016 15:18 — forked from alxhill/scrollspy.coffee
add smooth scrolling (lines 11-18) & allow nested lists of spies
angular.module('directives.scrollSpy', [])
.directive('spy', ($location) ->
restrict: 'A'
require: '^scrollSpy'
link: (scope, elem, attrs, scrollSpy) ->
attrs.spyClass ?= 'active'
elem.click (e) ->
e.stopPropagation()
/**
* This file/module contains all configuration for the build process.
*/
/**
* Load requires and directory resources
*/
var join = require('path').join,
bowerrc = JSON.parse(require('fs').readFileSync('./.bowerrc', {encoding: 'utf8'})),
bowerJSON = bowerrc.json.replace(/^\.?\/?/, './'),