This file contains hidden or 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
undefined local variable or method `admin_user' for Admin::StudentsController:Class |
This file contains hidden or 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
From 509d6f93d51efaee274d267c030ac2855aa799d7 Mon Sep 17 00:00:00 2001 | |
From: meleyal <[email protected]> | |
Date: Fri, 1 Apr 2011 00:25:34 +0200 | |
Subject: [PATCH] add test for File API support | |
--- | |
modernizr.js | 6 ++++++ | |
1 files changed, 6 insertions(+), 0 deletions(-) | |
diff --git a/modernizr.js b/modernizr.js |
This file contains hidden or 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
body { background:url(http://images.apple.com/global/elements/quicktime/loading.gif) no-repeat 50% 150px; } | |
body.loaded { background:transparent; } | |
#showcase .content, | |
#promobar, | |
#itunes, | |
#globalfooter { opacity:0; -webkit-transition:opacity .5s; -moz-transition:opacity .5s; } | |
.loaded #showcase .content, | |
.loaded #promobar, |
This file contains hidden or 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 App = { | |
initialize: function() { | |
new App.Controller(); | |
Backbone.history.start(); | |
} | |
}; |
This file contains hidden or 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
# random records | |
scope :random, limit(5).order("RANDOM()") |
This file contains hidden or 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
# a simple/configurable rake task that generates some random fake data for the app (using faker) at various sizes | |
# NOTE: requires the faker or ffaker gem | |
require 'faker' | |
class Fakeout | |
# START Customizing | |
# 1. first these are the model names we're going to fake out |
This file contains hidden or 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 python | |
# Name generating code | |
# Copyright (c) 2010 Ninite.com | |
# | |
# Released into the public domain - enjoy! | |
# | |
# Story at http://blog.ninite.com/post/620277259/how-ninite-was-named-by-a-computer-program | |
from datetime import datetime, date |
This file contains hidden or 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
// http://www.erichynds.com/jquery/using-jquery-ui-widget-factory-bridge/ | |
var Widget = function(options, element){ | |
this.options = options; | |
this.element = element; | |
this._init(); | |
} | |
Widget.prototype = { | |
This file contains hidden or 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($){ | |
$.widget("ui.mywidget", { | |
options: { | |
autoOpen: true | |
}, | |
_create: function(){ | |
// by default, consider this thing closed. |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!-- | |
meleyal | |
http://meleyal.com | |
https://gist.github.com/810100 |