This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
this.Widgeter = { | |
prefix: 'widget-', | |
path: "js/", | |
widgets: [], | |
init: function() { | |
var els = $$('*[class*="' + this.prefix + '"]'); | |
var widgets_arr = []; | |
els.each(function(item) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GistRequest = { | |
fxScroll: new Fx.Scroll(document.body, {offset: {y: -20}}), | |
proxy: 'proxy.php', | |
init: function() { | |
this.lookForGists(); | |
}, | |
lookForGists: function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
require 'typhoeus' | |
require 'ap' | |
require 'digest/sha1' | |
require 'highline/import' | |
require 'optparse' | |
require 'net/ssh' | |
require 'net/sftp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = require '../app' | |
require 'express-expose' | |
jade = require 'jade' | |
path = require 'path' | |
fs = require 'fs' | |
cache = {} | |
scriptWrap = (src) -> | |
"<script>#{src}</script>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do (jQuery) -> | |
$ = jQuery | |
wrap = (fn) -> | |
(e) -> | |
fn e | |
do e.stopPropagation | |
do e.preventDefault | |
false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do (jQuery) -> | |
$ = jQuery | |
insertAtCaret = (value) -> | |
if document.selection # IE | |
@focus() | |
sel = document.selection.createRange() | |
sel.text = value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) => { |
OlderNewer