Skip to content

Instantly share code, notes, and snippets.

@KeKs0r
KeKs0r / asyncRoute.js
Created February 27, 2018 08:42
Koa Stream Response
/*
* In this example I get an error from my rethinkdb database
* ReqlRuntimeError: Connection is closed in.... (basically the first query within exportText())
*/
export default async function downloadTexts (ctx, next) {
const { qid } = this.params
console.log('start')
const stream = await exportText(qid, this._rdbConn, true)
Verifying my Blockstack ID is secured with the address 19Cs9hTU7XFpGxef4XdDTvuxVp2gY1znu https://explorer.blockstack.org/address/19Cs9hTU7XFpGxef4XdDTvuxVp2gY1znu
@KeKs0r
KeKs0r / ios-build-log
Created August 6, 2017 18:09
Built interupted
Build Date: 2017-08-06 11:07:00 -0700
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "cordova-plugin-statusbar@1.0.1" via npm
Installing "cordova-plugin-statusbar" at "1.0.1" for ios
Fetching plugin "cordova-plugin-device@1.1.4" via npm
Installing "cordova-plugin-device" at "1.1.4" for ios
Fetching plugin "cordova-plugin-splashscreen@4.0.1" via npm
Installing "cordova-plugin-splashscreen" at "4.0.1" for ios
@KeKs0r
KeKs0r / run_suite.js
Created July 25, 2017 19:01
HemeraTestSuite
const Hemera = require('nats-hemera')
const HemeraTestsuite = require('hemera-testsuite')
const PORT = 6242
let server
server = HemeraTestsuite.start_server(PORT, {}, (err, res) => {
const nats = require('nats').connect(PORT)
const hemera = new Hemera(nats)
hemera.ready(() => {
@KeKs0r
KeKs0r / Application.js
Created July 3, 2015 09:39
More Verbose Flux Dispatcher for Marty
var Marty = require('marty');
export default class Application extends Marty.Application {
constructor(options) {
super(options);
}
// Custom Dispatcher verbose Dispatcher
var vomitify = function(f) {
return function() {
@KeKs0r
KeKs0r / gist:73c040afc4b4b5e0cc5f
Created May 5, 2015 09:51
Paypal Cordova plugin crash logs
Incident Identifier: 1308736F-C580-404A-9092-36B9CA4811A7
CrashReporter Key: 414305c93389cf8230689074362a0e5340d6f948
Hardware Model: iPhone5,2
Process: Gambify [506]
Path: /private/var/mobile/Containers/Bundle/Application/7492C412-F9A1-4103-85B5-E98991164028/Gambify.app/Gambify
Identifier: de.gambify.ios
Version: 2.0.4 (2.0.4)
Code Type: ARM (Native)
Parent Process: launchd [1]
@KeKs0r
KeKs0r / CancableLink.js
Created March 22, 2015 23:45
Cancable Touchstone Link
@KeKs0r
KeKs0r / ThreadStore.js
Last active August 29, 2015 14:16
Multiple Dispatch Issue
var _selectedThread = null;
var _threads = [];
var ThreadStore = merge({},EventEmitter.prototype, {
getThreads: function(){
return _threads;
},
getSelectedThread: function(){
if(_selectedGroup){
<?php
/**
* Finds and displays a BetRound entity.
*
* @Route("/{id}/add", name="betround_add")
* @ParamConverter("betRound", class="StregoTippBundle:BetRound")
* @Template()
*/
public function addAction(BetRound $betRound)
{