Skip to content

Instantly share code, notes, and snippets.

View vongohren's full-sized avatar
⛓️

Snorre Lothar von Gohren Edwin vongohren

⛓️
View GitHub Profile
@vongohren
vongohren / server.go
Last active March 11, 2016 12:12
A simpel oauth example go
package main
import (
"io"
"log"
"net/http"
"golang.org/x/oauth2"
"fmt"
"io/ioutil"
"github.com/bmizerany/pat"
@vongohren
vongohren / app.js
Last active March 12, 2016 11:58
This is a simple node example of working with a client and showing info
var express = require('express');
var session = require('cookie-session');
var ApiClient = require('api-poc-client');
var request = require('superagent');
// SETUP
var app = module.exports = express();
var client = new ApiClient({
authServer: "https://id.sandbox.sparebank1.no",
clientId: "client-id-from-the-ID-portal",
Verifying that +vongohren is my blockchain ID. https://onename.com/vongohren
Verifying that +vongohren is my blockchain ID. https://onename.com/vongohren
var fs = require('fs'),
path = require('path'),
sourceMap = require('source-map');
var line = process.argv[2];
var column = process.argv[3];
var file = process.argv[4];
// file output by Webpack, Uglify, etc.
var GENERATED_FILE = path.join('.', file);
May 3 17:24:09 mac-snorreedwin reactnativetidr[52052] <Error>: objc[52052]: Class CLSInternalReport is implemented in both /Users/snorreedwin/Library/Developer/CoreSimulator/Devices/AF64E7E8-0686-4233-A079-029A308775F3/data/Containers/Bundle/Application/CB49A0B2-6A91-446B-BA28-CB0725048A5B/reactnativetidr.app/Frameworks/ReactNativeFabric.framework/ReactNativeFabric (0x10af7b950) and /Users/snorreedwin/Library/Developer/CoreSimulator/Devices/AF64E7E8-0686-4233-A079-029A308775F3/data/Containers/Bundle/Application/CB49A0B2-6A91-446B-BA28-CB0725048A5B/reactnativetidr.app/reactnativetidr (0x10ab107b8). One of the two will be used. Which one is undefined.
May 3 17:24:09 mac-snorreedwin reactnativetidr[52052] <Error>: objc[52052]: Class Crashlytics is implemented in both /Users/snorreedwin/Library/Developer/CoreSimulator/Devices/AF64E7E8-0686-4233-A079-029A308775F3/data/Containers/Bundle/Application/CB49A0B2-6A91-446B-BA28-CB0725048A5B/reactnativetidr.app/Frameworks/ReactNativeFabric.framework/ReactNativeFabric (0
eth_sendTransaction
PUSH1
PUSH1
MSTORE
CALLDATASIZE
ISZERO
PUSH2
JUMPI
PUSH4
PUSH1
Verifying that "vongohren.id" is my Blockstack ID. https://onename.com/vongohren
Verifying my Blockstack ID is secured with the address 1DxtveiG44Bd2V9B5mnNjUSLutMxzmb8Nx https://explorer.blockstack.org/address/1DxtveiG44Bd2V9B5mnNjUSLutMxzmb8Nx
var User = Bookshelf.Model.extend({
tableName: 'user',
hasTimestamps: true
});
const to = (promise) => {
return promise.then(data => {
return [null, data];
})
.catch(err => [err]);