This file contains 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
*.gitignore | |
config/database.yml | |
*~ | |
*.cache | |
*.log | |
*.pid | |
tmp/**/* | |
.DS\_Store | |
db/cstore/** | |
doc/api |
This file contains 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
require 'rubygems' | |
require 'revisionsedits' | |
describe 'Versions' do | |
page_attributes = {:title => 'title of page', :body => 'body of page'} | |
before(:all) do | |
end | |
before(:each) do | |
@frank = User.create(:name => "Frank Black") |
This file contains 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
require 'rubygems' | |
require 'activerecord' | |
require 'yaml' | |
require '../config/boot' | |
Rails::Initializer.run do |config| | |
config.action_controller.session = { | |
:session_key => '_greenbuildingbrain_session', | |
:secret => 'ebf2f31f5da304726e5e483b755ca30aaad4a67c28034785bdc0a2dc6f2c18930b52be16e42ece664f9e86ca67b049f48f6f4741a10022be5dd2dcfe8c4cea35' | |
} |
This file contains 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
require 'rubygems' | |
require 'json' | |
class TestNodester | |
attr_accessor :username, :password | |
def initialize | |
# all you need is these | |
@username = '' | |
@password = '' | |
# just the above thanks |
This file contains 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
require 'rubygems' | |
require 'json' | |
class DeployNodester | |
attr_accessor :username, :password | |
def initialize | |
# you'll need to edit these | |
@username = '' | |
@password = '' | |
@app = '' |
This file contains 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
Stash = { | |
supported: function() { | |
try { | |
return 'localStorage' in window && window['localStorage'] !== null; | |
} catch(e) { | |
return false; | |
} | |
}, | |
storage_check: function(url) { | |
return !!localStorage[url]; |
This file contains 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> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style> | |
<body> | |
<div style="max-width:900px; -webkit-transform:rotate(0deg);"> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> |
This file contains 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
// The problem: Load order independence. | |
// Sometimes your js files are loaded out of order, | |
// How can you make sure all your modules are properly assembled. | |
var myApp = (function(existing){ | |
var self = existing || {}; | |
self.a = 'one'; | |
return self; | |
}(myApp)); |
This file contains 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
media_triggers = { | |
"mobile_xs": "only screen and (min-width: 239px) and (max-width: 321px)", | |
"mobile": "only screen and (max-width: 529px)", | |
"mobile_landscape": "only screen and (max-width: 529px) and (orientation: landscape)", | |
"mobile_portrait": "only screen and (max-width: 529px) and (orientation: portrait)", | |
"iphone_five_portrait ": "only screen and (min-width: 319px) and (max-width: 321px) and (orientation: portrait)", | |
"iphone_five_landscape ": "only screen and (min-width: 361px) and (max-width: 640px) and (orientation: landscape)", | |
"nexus_four_landscape": "only screen and (min-width: 600px) and (max-width: 601px) and (orientation: landscape)", | |
"tablet": "only screen and (min-width: 530px) and (max-width: 949px)", | |
"tablet_landscape": "only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape)", |
This file contains 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 (window) { | |
'use strict'; | |
// Masonry: | |
// Places items based on their width, so that lines all line up. | |
// | |
// args: | |
// list: list of items to make a wall with. | |
// width_fn: method of assessing item width | |
// |
OlderNewer