Skip to content

Instantly share code, notes, and snippets.

View reaktivo's full-sized avatar
👋

Marcel Miranda Ackerman reaktivo

👋
View GitHub Profile
@reaktivo
reaktivo / expose-jade.coffee
Created July 15, 2012 01:21
Expose jade templares
app = require '../app'
require 'express-expose'
jade = require 'jade'
path = require 'path'
fs = require 'fs'
cache = {}
scriptWrap = (src) ->
"<script>#{src}</script>"
@reaktivo
reaktivo / swftools-install.sh
Created April 28, 2011 18:51
Install swftools 0.9.1
export SWFTOOLS=swftools-0.9.1
cd /tmp
rm -rf $SWFTOOLS
curl -o $SWFTOOLS http://www.swftools.org/$SWFTOOLS.tar.gz
tar xvfz $SWFTOOLS
cd $SWFTOOLS
./configure
make
make install
#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.
#!/usr/bin/env ruby
require 'json'
require 'typhoeus'
require 'ap'
require 'digest/sha1'
require 'highline/import'
require 'optparse'
require 'net/ssh'
require 'net/sftp'
git init
git submodule add git://github.com/kohana/core.git system
git submodule add git://github.com/kohana/database.git modules/database
git submodule add git://github.com/kohana/userguide.git modules/userguide
git submodule add git://github.com/kohana/image.git modules/image
git submodule add git://github.com/kohana/codebench.git modules/codebench
git submodule add git://github.com/kohana/auth.git modules/auth
git submodule add git://github.com/kohana/pagination.git modules/pagination
git submodule add git://github.com/kohana/orm.git modules/orm
var GistRequest = {
fxScroll: new Fx.Scroll(document.body, {offset: {y: -20}}),
proxy: 'proxy.php',
init: function() {
this.lookForGists();
},
lookForGists: function() {
(function() {
this.Widgeter = {
prefix: 'widget-',
path: "js/",
widgets: [],
init: function() {
var els = $$('*[class*="' + this.prefix + '"]');
var widgets_arr = [];
els.each(function(item) {