Skip to content

Instantly share code, notes, and snippets.

View frozzare's full-sized avatar
😎
Focusing

Fredrik Forsmo frozzare

😎
Focusing
View GitHub Profile
@frozzare
frozzare / Capistrano-Deployment-Recipe.rb
Created January 25, 2012 11:40 — forked from mrrooijen/Capistrano-Deployment-Recipe.rb
a "base" Capistrano Rails Deployment Recipe. Use it to deploy your Rails application. It is also easily expandable. So feel free to grab this Recipe and add your own tasks/customization!
# Guide
# Configure the essential configurations below and do the following:
#
# Repository Creation:
# cap deploy:repository:create
# git add .
# git commit -am "initial commit"
# git push origin master
#
# Initial Deployment:
$(function () {
$('.tweet').tweet('twitter username');
});
$(function () {
$('.tweets').tweet({
screen_name: 'twitter username',
count: 3,
list: true,
avatar: true
});
});
$(function () {
$('.tweets').tweet({
screen_name: 'twitter username',
count: 3,
list: true
});
});
$(function () {
$('.tweet').tweet('twitter username');
$('.tweets').tweet({
list: true,
screen_name: 'twitter username',
count: 5,
avatar: true
});
$('.tweet-c').tweet({
screen_name: 'twitter username',
$(function () {
$('.tweet').tweet({ id: '194120642130477056' });
// $('.tweet-text').tweet('id:194120642130477056');
});
@frozzare
frozzare / LICENSE.txt
Created June 8, 2012 20:53 — forked from LeverOne/LICENSE.txt
generate random v4 UUIDs (107 bytes)
DO WTF YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Alexey Silin <pinkoblomingo@gmail.com>
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 WTF YOU WANT TO PUBLIC LICENSE
@frozzare
frozzare / rAF.js
Created December 12, 2012 10:54 — forked from paulirish/rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
/**
* Escape given `html`
*
* @param {String} html
* @return {String} escaped html
*/
exports.escape = function (html) {
return String(html)
.replace(/&(?!\w+;)/g, '&amp;')
// AMD support
if (typeof define === 'function' && define.amd) {
define(function () { return App; });
// CommonJS and Node.js module support.
} else if (typeof exports !== 'undefined') {
// Support Node.js specific `module.exports` (which can be a function)
if (typeof module != 'undefined' && module.exports) {
exports = module.exports = App;
}
// But always support CommonJS module 1.1.1 spec (`exports` cannot be a function)