Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block Pyrolistical

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View async and await.js
try {
const audioDataCount = await + 'get-scene-audio-count', {
sourceID: value.sourceID,
source: value.source
console.log('audioDataCount', audioDataCount)
const res = {
View gist:33c3cf1c22e232c7080d8a6948341c65
const doABRegister = function( connectAPI, { appGuid, serialNumber, email }, data, logger ) {
const deviceIdPromise = doABRegisterDevice( connectAPI, appGuid, serialNumber );
const accountIdPromise = deviceIdPromise
.then( deviceId => doABCreateAccount( connectAPI, appGuid, deviceId, email, data );
const vhIdPromise = Promise.all([deviceIdPromise, accountIdPromise])
.then( ([deviceId, accountId]) => doABFetchVh( connectAPI, { appGuid, deviceId, accountId }, data, logger );
return Promise.all([deviceIdPromise, accountIdPromise, vhIdPromise])
.then( ([deviceId, accountId, vhId]) => ( { deviceId, accountId, vhId } );
View gist:74a6591394cde390b0be80f603363fcb
The pattern you showed at ployglotconf:
import a from './a'
import b from './b'
import c from './c'
export const xyz = (a, b, c) => {
return {
method() {
...use deps a, b, c

Keybase proof

I hereby claim:

  • I am pyrolistical on github.
  • I am pyrolistical ( on keybase.
  • I have a public key ASDiQZcpChgkowEteTMFVfQedMaG6l_I3Nqz9G_C5ctSGAo

To claim this, I am signing this object:

Pyrolistical / controller.js
Created Nov 7, 2017
Steven interview code
View controller.js
module.exports = (lolClient) => {
return {
method: 'GET',
path: '/v1/lol/summoner/getByName/{summonerName}',
handler({query: {region}, params: {summonerName}}, reply) {
return lolClient.Summoner.gettingByName(summonerName)
.then((summoner) => {
if (!summoner) {
return reply(Boom.notFound(`Summoner was not found
${summonerName} not found`));
Pyrolistical / index.html
Last active Oct 26, 2017
hyperapp module state bug
View index.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Hyperapp Views</title>
<div id="app-entry"></div>
<script src=""></script>
Pyrolistical / index.html
Last active Oct 27, 2017
Hyperapp views PoC
View index.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Hyperapp Views</title>
<div id="app-entry"></div>
<script src=""></script>
Pyrolistical / child.html
Created Aug 8, 2017
Repo case for firebase iframe sandbox issue
View child.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>I r child</title>
body {
margin: 0;
padding: 0;
Pyrolistical / anotherfile.d.ts
Created May 8, 2017
typescript checkJs + node
View anotherfile.d.ts
export interface AnotherfileStatic {
validfunction(greeting: string);
declare const Anotherfile: AnotherfileStatic;
export default Anotherfile;
Pyrolistical / server.js
Created Nov 29, 2016
Factory Function Injection
View server.js
const MongoClient = require('mongodb').MongoClient
const Controller = require('./controller')
const Service = require('./service')
const Repository = require('./repository')
MongoClient.connect('some mongo url')
.then((db) => {
const repository = Repository(db)
const service = Service(repository)
You can’t perform that action at this time.