Skip to content

Instantly share code, notes, and snippets.

View justinpeterman's full-sized avatar

Justin Peterman justinpeterman

  • San Francisco, CA
View GitHub Profile
@justinpeterman
justinpeterman / file.js
Created August 18, 2011 21:03
ExistingCampaignSelectionView
Authoring.ExistingCampaignSelectionView = SC.PalettePane.create({
layout: {
width: 465,
height: 535,
centerX: 0,
centerY: 0
},
isModal: YES,
theme: "popover",
modalPane: SC.ModalPane.extend({
Authoring.Campaign.FIXTURES = [
{
user_id: 2,
campaign_id: 1,
name: "Pepsi Faceoff Campaign",
thumb: 'path/to/image',
purchased_hits: 0,
current_hits: 0,
started: '2010-07-24',
@justinpeterman
justinpeterman / style.css
Created July 30, 2011 10:16
cool horizontal line break
body{
background: #2F2F2F;
}
.horizontal-break {
-moz-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0 inset;
-webkit-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0 inset;
-o-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0 inset;
box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0 inset;
border-top: 1px solid #121212;
@justinpeterman
justinpeterman / view.js
Created July 27, 2011 10:10
Actions Not Being Received
//sc_require('views/topbar_view');
Authoring.NewExistingView = SC.PalettePane.create({
firstResponder: 'Authoring.statechart',
layout: { width: 455, height: 275, centerX: 0, centerY: 0 },
isModal:YES,
theme: "popover",
modalPane:SC.ModalPane.extend({classNames:"dark-bg"}),
classNames:'new-existing'.w(),
childViews:'toolbar'.w(),
@justinpeterman
justinpeterman / core.js
Created July 20, 2011 07:58
Nested Records
Authoring = SC.Application.create(
store: SC.Store.create().from(SC.Record.fixtures)
}) ;