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
$LOAD_PATH << '../lib' | |
require 'rubygems' | |
require 'sinatra' | |
require 'sinatra/r18n' | |
require 'mongo' | |
require 'bson' | |
require 'json/pure' | |
require 'uuid' | |
require 'fileutils' | |
require 'logger' |
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
$LOAD_PATH << '../lib' | |
require 'rubygems' | |
require 'sinatra' | |
require 'sinatra/r18n' | |
require 'mongo' | |
require 'bson' | |
require 'json/pure' | |
require 'uuid' | |
require 'fileutils' | |
require 'logger' |
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
$LOAD_PATH << '../lib' | |
require 'rubygems' | |
require 'sinatra/base' | |
require 'sinatra/r18n' | |
require 'mongo' | |
require 'bson' | |
require 'json/pure' | |
require 'uuid' | |
require 'fileutils' | |
require 'logger' |
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
npm http 200 https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz | |
npm ERR! fetch failed https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.2.tgz | |
npm http 408 https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz | |
npm ERR! fetch failed https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz | |
npm http GET https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.2.tgz | |
npm http 200 https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.2.tgz | |
npm http 200 https://registry.npmjs.org/formidable/1.0.9 | |
npm http GET https://registry.npmjs.org/formidable/-/formidable-1.0.9.tgz | |
npm http 304 https://registry.npmjs.org/contextify | |
npm http 304 https://registry.npmjs.org/cssstyle |
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
manish@small-wonder:~/Code/Faddle/Photon-Processor$ npm link photon-core | |
npm http GET https://registry.npmjs.org/photon-core | |
npm http 404 https://registry.npmjs.org/photon-core | |
npm ERR! 404 'photon-core' is not in the npm registry. | |
npm ERR! 404 You should bug the author to publish it | |
npm ERR! 404 | |
npm ERR! 404 Note that you can also install from a | |
npm ERR! 404 tarball, folder, or http url, or git url. | |
npm ERR! System Linux 3.8.0-19-generic |
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
# number of lines kept in history | |
export HISTSIZE=10000 | |
# number of lines saved in the history after logout | |
export SAVEHIST=10000 | |
# location of history | |
export HISTFILE=~/.zhistory | |
# history options | |
setopt inc_append_history | |
setopt hist_ignore_all_dups | |
setopt hist_ignore_dups |
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
=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') |
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
Application.$controller("MainPageController", ["$scope", function($scope) { | |
"use strict"; | |
/* perform any action on widgets/variables within this block */ | |
$scope.onPageReady = function() { | |
var authenticatedIdentityPoolID = "YOUR_AMAZON_AUTHENTICATED_IDENTITY_POOL_ID"; | |
var unauthenticatedIdentityPoolID = "YOUR_AMAZON_UNAUTHENTICATED_IDENTITY_POOL_ID"; | |
var twitterTokenKey = "YOUR_TWITTER_TOKEN_KEY"; | |
var twitterTokenSecret = "YOUR_TWITTER_TOKEN_SECRET"; | |
var params = { | |
IdentityPoolId: authenticatedIdentityPoolID, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.