Skip to content

Instantly share code, notes, and snippets.

💚
love

stagas stagas

💚
love
Block or report user

Report or block stagas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@stagas
stagas / protocol.js
Created Dec 31, 2011 — forked from jfhbrook/protocol.js
Thinking about a human-readable multi-line pubsub api for irc bots...
View protocol.js
var EventEmitter = require('events').EventEmitter,
util = require('util');
// TODO:
// * tags (BEGIN somehashhere\nsomehashhere data)
// * line numbers (begin somehash\nsomehash:12 data)
var Buffer = exports.Buffer = function (o) {
o = o || {};
@stagas
stagas / LICENSE.txt
Created May 26, 2011 — forked from 140bytes/LICENSE.txt
Padding for Strings and Numbers
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 George Stagas https://github.com/stagas
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
View gist:926364
$(function() {
var $body = $('body')
, $book = $('#book')
;(function animate_background() {
$body.animate({ backgroundColor: "#abcdef" }, 1000, function(){
$body.animate({ backgroundColor: "#000" }, 1000, animate_background)
})
}())
View gist:926226
$(document).ready(function() {
var $book = $('#book')
// wrapping the function in a closure
;(function display_icon() {
$book.hide(1000, function() {
$book.show(1000, function() {
setTimeout(function() {
display_icon();
}, 0);
});
You can’t perform that action at this time.