Skip to content

Instantly share code, notes, and snippets.

@adaptivedev
adaptivedev / output
Created March 7, 2014 14:39
PostData.java
package com.example.app;
import android.os.AsyncTask;
import android.util.Log;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
# For an explanation of the steroids.config properties, see the guide at
# http://guides.appgyver.com/steroids/guides/project_configuration/config-application-coffee/
steroids.config.name = "Steroids Tutorial"
# -- Initial Location --
steroids.config.location = "http://localhost/index.html"
# -- Tab Bar --
steroids.config.tabBar.enabled = true
@adaptivedev
adaptivedev / errors
Last active August 29, 2015 13:57
Android Nexus 7, 4.3: errors: Fatal, InputDispatcher, "Consumer closed input channel or an error occurred"
03-17 15:35:32.755 30899-30908/? A/libc﹕ Fatal signal 11 (SIGSEGV) at 0xdf911ea5 (code=1), thread 30908 (FinalizerDaemon)
03-17 15:35:33.165 435-503/? E/InputDispatcher﹕ channel '42c4e248 com.gamerushapp.gamerush/com.gamerushapp.gamerush.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
03-17 15:35:56.055 31004-31013/com.gamerushapp.gamerush A/libc﹕ Fatal signal 11 (SIGSEGV) at 0xbe083c1c (code=1), thread 31013 (FinalizerDaemon)
03-17 15:35:56.495 435-503/? E/InputDispatcher﹕ channel '42c51638 com.gamerushapp.gamerush/com.gamerushapp.gamerush.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
@adaptivedev
adaptivedev / JSHint.sublime-build
Created March 24, 2014 14:52
errors for JSHint using Sublime on mac
{
"selector": "source.js",
"cmd": ["jshint", "$file"],
"file_regex": "JSHint: (.+)\\]",
"line_regex": "(\\d+),(\\d+): (.*)$",
"osx": {
"path": "/usr/bin/npm:/usr/local/share/npm/bin:/usr/local/bin:/opt/local/bin"
@adaptivedev
adaptivedev / error.output
Created March 26, 2014 12:23
how can I call findAll in games.js from turnys.js (how do I define an object-function that defines "send"
creating 1 turny per 1 game
/Users/rover/.nvm/v0.10.26/lib/node_modules/mongodb/lib/mongodb/connection/base.js:242
throw message;
^
TypeError: Object function (){
send = function(msg) {
console.log("populateDb: gamesAll: res: send: msg="+msg);
};
} has no method 'send'
@adaptivedev
adaptivedev / mongo shell
Created April 3, 2014 14:08
trying to use findAndModify from node.js to mongo: problem: no record inserted, null returned
// no such record insert
> use test
switched to db test
> show collections
system.indexes
test
> db.test.find()
{ "_id" : ObjectId("533d5ec091d39080c18ec8ba"), "_accountId" : "100000057408993" }
>
@adaptivedev
adaptivedev / gist:0daa67f3c2cc10b91d47
Created May 3, 2014 10:55
famo.us grunt examples transitions: how to run it?
RoverMR:transitions rover$ pwd
/Users/rover/Documents/Dev/Famous/examples/src/famous/transitions
RoverMR:transitions rover$ grunt serve
Warning: Task "serve" not found. Use --force to continue.
Aborted due to warnings.
@adaptivedev
adaptivedev / client_events.js
Created May 31, 2014 05:28
why i am getting called in "options" on the node side?
function getEvents($scope, $http) {
$http.get('http://adaptivedev.com:5432/events').
success(function(data) {
$scope.event = data;
});
}
@adaptivedev
adaptivedev / ionic_install.txt
Created June 15, 2014 16:36
ionic install problems
RoverMR:webapp rover$ sudo npm install -g cordova ionic
npm http GET https://registry.npmjs.org/cordova
npm http 304 https://registry.npmjs.org/cordova
npm http GET https://registry.npmjs.org/ionic
npm http 304 https://registry.npmjs.org/ionic
npm http GET https://registry.npmjs.org/ionic/-/ionic-1.0.14.tgz
npm http 200 https://registry.npmjs.org/ionic/-/ionic-1.0.14.tgz
npm ERR! tar pack Error reading /Users/rover/tmp/npm-17449/1402850106338-0.5961648433003575/package
npm ERR! TypeError: Cannot call method 'filter' of undefined
npm ERR! at Packer.IgnoreReader.addIgnoreRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:148:13)
@adaptivedev
adaptivedev / app.js
Created June 16, 2014 06:50
Ionic: problems getting started: 1) "todo", 2) ionic serve, 3) Codepen
RoverMR:www rover$ cat js/app.js
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
//angular.module('starter', ['ionic'])
angular.module('todo', ['ionic']);
.run(function($ionicPlatform) {