Skip to content

Instantly share code, notes, and snippets.

View tazsingh's full-sized avatar
🏎️
(☞゚ヮ゚)☞ ☜(゚ヮ゚☜)

Taz Singh tazsingh

🏎️
(☞゚ヮ゚)☞ ☜(゚ヮ゚☜)
View GitHub Profile
@tazsingh
tazsingh / subscribeTo_extension.graphql
Created May 26, 2017 15:49
Fragment Subscriptions - subscribeTo Extension Approach
fragment userFragment on User
subscribeTo(userAvatarChangeSubscription)
{
name
username
avatarUrl(size: 200)
avatarChangeId # can be an implicit field on this fragment added by
# the server to track subscription events on the client
}
@tazsingh
tazsingh / directive_approach.graphql
Last active May 26, 2017 15:11
Fragment Subscriptions - Directive Approach
fragment userFragment on User
@subscribeTo(name: "avatarChange", with: avatarChangeFragment)
{
name
username
avatarUrl(size: 200)
avatarChangeId # can be an implicit field on this fragment added by
# the server to track subscription events on the client
}
@tazsingh
tazsingh / output.sh
Created April 4, 2017 19:41
Ejecting `create-react-native-app` files
~/Code > create-react-native-app brohan-test
Creating a new React Native app in /Users/taz/Code/brohan-test.
Installing packages. This might take a couple minutes.
Installing react-native-scripts...
yarn add v0.20.3
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning react-native-scripts > xdl > node-uuid@1.4.8: Use uuid module instead
@tazsingh
tazsingh / main.js
Created January 25, 2016 04:02
incremental-redux-reducers example app (not tested)
import {createStore, applyMiddleware, combineReducers} from "redux";
import thunk from "redux-thunk";
import {setupIncrementalReduxReducers, reducerStore} from "incremental-redux-reducers";
// Create the store however you like.
// For example purposes, let's apply the thunk middleware.
const createStoreWithMiddleware = applyMiddleware(
thunk
)(createStore);
> ping github.com
PING github.com (204.232.175.90): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
@tazsingh
tazsingh / Gemfile
Created November 29, 2012 15:04
pacer-neo4j paths_to bug
source "https://rubygems.org"
gem "pacer-neo4j", require: "pacer-neo4j"
@tazsingh
tazsingh / warble output
Created October 26, 2012 19:03
Warbler not detecting app
~/Documents/Code/mercatus/pricechopper (jruby) jruby-1.7.0@pricechopper> warble
io/console on JRuby shells out to stty for most operations
Running against Mercatus UAT environment
Loading Routes
Done Loading Routes
@tazsingh
tazsingh / TorqueBox trace
Created October 24, 2012 19:54
JBoss server.log
15:53:30,921 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 42) JBAS016200: Activating ConfigAdmin Subsystem
15:53:30,927 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 47) JBAS010280: Activating Infinispan subsystem.
15:53:30,935 INFO [org.jboss.as.security] (ServerService Thread Pool -- 64) JBAS013171: Activating Security Subsystem
15:53:30,942 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 58) JBAS011800: Activating Naming Subsystem
15:53:30,943 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 59) JBAS011906: Activating OSGi Subsystem
15:53:30,950 INFO [org.jboss.as.security] (MSC service thread 1-1) JBAS013170: Current PicketBox version=4.0.9.Final
15:53:30,963 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 48) JBAS016300: Activating JacORB Subsystem
15:53:30,979 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 68) JBAS015537: Activating WebServices Extension
15:53:30,992 INFO [org.jboss.as.remoting] (MSC service thre
@tazsingh
tazsingh / 500 Error Web Page
Created October 24, 2012 19:49
TorqueBox javascript_expansions error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
@tazsingh
tazsingh / Terminal Output
Created August 2, 2012 13:23
Vert.x test suite failures
Last login: Thu Aug 2 08:59:46 on console
~ ruby-1.9.3-p194> cd Documents/Code/tmp/
~/Documents/Code/tmp ruby-1.9.3-p194> cd vert.x/
~/Documents/Code/tmp/vert.x ruby-1.9.3-p194> git checkout master
gAlready on 'master'
~/Documents/Code/tmp/vert.x ruby-1.9.3-p194> git checkout -b test_merge
Switched to a new branch 'test_merge'
~/Documents/Code/tmp/vert.x ruby-1.9.3-p194> git pull https://github.com/tazsingh/vert.x master
remote: Counting objects: 47, done.
remote: Compressing objects: 100% (7/7), done.