Skip to content

Instantly share code, notes, and snippets.

Repeatable Area Focus Area Repeatable Area
_____________/\_____________ __________/\__________ _____________/\_____________
/ \ / \ / \
/ \ / \ / \
[ ]
[ ]
[ ]
[ ]
[ ]
----------------------------------[ ]----------------------------------
@airtonix
airtonix / linux-bashrc
Created February 5, 2014 23:00
NodeJs free of virtualenv type tools
# this would go in your ~/.bashrc
PATH=$PATH:./node_modules/.bin/:../node_modules/.bin/
def _get_notes(prev_tag, next_tag):
with hide('stdout'):
commits = run("git log --graph --pretty=format:'%h - %s (%cr by %an)%d' "
+ "--abbrev-commit --date=relative"+ " %s..%s"
% (prev_tag, next_tag)).splitlines()
commits.pop() # prev_tag went out with the previous release notes.
commits.reverse() # order going down with time
commits = "\n".join(commits)
commits = re.sub(r"\\",r"__SUB__", commits)
commits = re.sub(r"/",r"\\", commits)
@airtonix
airtonix / server.coffee
Created March 17, 2014 15:21
ExpressJs Local development server that stream compiles sass, jade and coffeescript
util = require 'util'
path = require 'path'
fs = require 'fs'
require 'string.prototype.endswith'
express = require "express"
compile = require "compile-middleware"
sass = require "node-sass"
@mixin fontface($name, $path) {
@font-face {
font-family: $name;
src: url('#{$path}.eot');
src: url('#{$path}.eot#iefix') format('embedded-opentype'),
url('#{$path}.woff') format('woff'),
url('#{$path}.ttf') format('truetype'),
url('#{$path}.svg?##{$name}') format('svg');
font-weight: normal;
@airtonix
airtonix / SassMeister-input.scss
Created March 26, 2014 13:24
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
$name: "test";
[class^='icon-#{$name}-'], [class*=" icon-#{$name}-"] {
display: inline-block;
font-family: "#{$name}";
@airtonix
airtonix / SassMeister-input.scss
Created March 26, 2014 13:46
Generated by SassMeister.com.
// ----
// libsass (v0.7.0)
// ----
$name: "test";
[class^='icon-#{$name}-'], [class*=" icon-#{$name}-"] {
display: inline-block;
font-family: "#{$name}";
font-size: 24px;
@airtonix
airtonix / SassMeister-input.scss
Created March 26, 2014 13:50
Generated by SassMeister.com.
// ----
// libsass (v0.7.0)
// ----
$name: "test";
$selector-first:"'icon-#{$name}-'";
$selector-later:"' icon-#{$name}-'";
[class^=#{$selector-first}], [class*=#{$selector-later}] {
display: inline-block;
font-family: "#{$name}";
PS1="\[\033]0;$MSYSTEM:${PWD//[^[:ascii:]]/?}\007\]\n\[\033[32m\]\u@\h \[\033[33m\]\w$(__git_ps1)\[\033[0m\]\n$"
@airtonix
airtonix / app.coffee
Last active August 29, 2015 13:57
Example angular application (in coffeescript) that seeks to highlight the potential usage of reversible routes with angular-route-segment
require [
'angular',
'lodash'
], (angular, _) ->
angular.module "demo", []
.config [
'$locationProvider',
'RestangularProvider',