Skip to content

Instantly share code, notes, and snippets.

View reaktivo's full-sized avatar
👋

Marcel Miranda Ackerman reaktivo

👋
View GitHub Profile
(function() {
this.Widgeter = {
prefix: 'widget-',
path: "js/",
widgets: [],
init: function() {
var els = $$('*[class*="' + this.prefix + '"]');
var widgets_arr = [];
els.each(function(item) {
var GistRequest = {
fxScroll: new Fx.Scroll(document.body, {offset: {y: -20}}),
proxy: 'proxy.php',
init: function() {
this.lookForGists();
},
lookForGists: function() {
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
#!/usr/bin/env ruby
require 'json'
require 'typhoeus'
require 'ap'
require 'digest/sha1'
require 'highline/import'
require 'optparse'
require 'net/ssh'
require 'net/sftp'
#!/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.
@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
@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>"
do (jQuery) ->
$ = jQuery
wrap = (fn) ->
(e) ->
fn e
do e.stopPropagation
do e.preventDefault
false
do (jQuery) ->
$ = jQuery
insertAtCaret = (value) ->
if document.selection # IE
@focus()
sel = document.selection.createRange()
sel.text = value
const express = require('express');;
const app = express();
app.get('/first.js', (req, res) => {
setTimeout(() => {
res.send('alert("First script")');
}, 350);
})
app.get('/second.js', (req, res) => {