Skip to content

Instantly share code, notes, and snippets.

View manishchaks's full-sized avatar

Manish Chakravarty manishchaks

View GitHub Profile
$LOAD_PATH << '../lib'
require 'rubygems'
require 'sinatra'
require 'sinatra/r18n'
require 'mongo'
require 'bson'
require 'json/pure'
require 'uuid'
require 'fileutils'
require 'logger'
$LOAD_PATH << '../lib'
require 'rubygems'
require 'sinatra'
require 'sinatra/r18n'
require 'mongo'
require 'bson'
require 'json/pure'
require 'uuid'
require 'fileutils'
require 'logger'
$LOAD_PATH << '../lib'
require 'rubygems'
require 'sinatra/base'
require 'sinatra/r18n'
require 'mongo'
require 'bson'
require 'json/pure'
require 'uuid'
require 'fileutils'
require 'logger'
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
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
@manishchaks
manishchaks / .zshrc
Created February 23, 2015 04:20
My .zshrc
# 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
=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')
@manishchaks
manishchaks / Main.js
Created July 21, 2016 11:24
Amazon Mobile Javascript SDK with Wavemaker demonstrating connectivity with Amazon Cognito, SNS and Mobile Analytics
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.