Skip to content

Instantly share code, notes, and snippets.

Avatar

George Anderson george

View GitHub Profile
View iridium-ember.txt
∴ bundle exec iridium generate app app
create app
create app/assets/images
create app/assets/index.html.erb
create app/config
create app/config/application.coffee
create app/config/development.coffee
create app/config/environment.coffee
create app/config/initializers
create app/config/initializers/handlebars.coffee
View capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
View registration_action_CHANGE_TO.php
if($_POST[email] != '')
{
$p = db_query_row("select user_userID from student where email = '$_POST[email]'");
if($p[user_userID]) // taken
{
js_alert("Sorry, that email address has an account already. If you lost your password please go to the lost password page from the login screen.");
js_back();
die("Redirecting ...");
}
}
View ember-v1.0.pre-204-g9d988a3.js
// Version: v1.0.pre-204-g9d988a3
// Last commit: 9d988a3 (2012-10-17 17:34:12 -0700)
(function() {
/*global __fail__*/
/**
Ember Debug
View ember-latest-edited.js
// EDITED EDITED EDITED
// Version: v1.0.pre-200-gc52773d
// Last commit: c52773d (2012-10-15 13:46:56 -0700)
(function() {
/*global __fail__*/
/**
Ember Debug
View ember-v1.0.pre-172-gea08372.js
// Version: v1.0.pre-172-gea08372
// Last commit: ea08372 (2012-10-08 13:37:28 -0700)
(function() {
/*global __fail__*/
/**
Ember Debug
View ember-latest.js
// Version: v1.0.pre-200-gc52773d
// Last commit: c52773d (2012-10-15 13:46:56 -0700)
(function() {
/*global __fail__*/
/**
Ember Debug
View view.js.coffee
SocialRoi.ProgramEtoStaffMemberSalaryBlockView = Em.View.extend
templateName: 'reports/program_eto_staff_member_salary_block'
programEtoStaffMemberSalaryTextFieldView: Em.TextField.extend
classNames: 'span2 currency'.w()
transaction: null
init: ->
@_super()
# debugger
@set('transaction', SocialRoi.store.transaction())
View ember-data.js
(function() {
window.DS = Ember.Namespace.create({
CURRENT_API_REVISION: 6
});
})();
(function() {
View gist:3824495
App.Router = Ember.Router.extend
root: Ember.Route.extend
index: Ember.Route.extend
route: "/"
connectOutlets: (router)->
router.get('applicationController').connectOutlet
outletName: 'view' # default('home', App.Collections.Home.all())
viewClass: App.Views.HomeView
controller: App.Controllers.homeController
context: foo