Skip to content

Instantly share code, notes, and snippets.

View jamesyoung's full-sized avatar
🤖
https://collab.land

James Young jamesyoung

🤖
https://collab.land
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jamesyoung on github.
  • I am jamessyoung (https://keybase.io/jamessyoung) on keybase.
  • I have a public key ASC-WrPq5fhWTKvpNH-Af-OwDpB02itymYmaYT45nv5ZTwo

To claim this, I am signing this object:

[
{
"inputs": [
{
"internalType": "address",
"name": "approvedTokenAddress",
"type": "address"
},
{
"internalType": "address",
const fs = require('fs')
const Tx = require('ethereumjs-tx')
const ledger = require('ledgerco')
const Web3 = require('web3')
const rlp = require('rlp');
const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8585"))
const metacoinJSON = require('./build/contracts/MetaCoin.json')
const bytecode = metacoinJSON.unlinked_binary
const ownerAddress = fs.readFileSync('./owner.addr', 'utf8').toString()

Keybase proof

I hereby claim:

  • I am jamesyoung on github.
  • I am jamesyoung (https://keybase.io/jamesyoung) on keybase.
  • I have a public key ASB65VAyuleZOQk1uK2i0CKsKblB2C7vG8TFrGFkBEW_EQo

To claim this, I am signing this object:

Verifying that +jamesyoung is my blockchain ID. https://onename.com/jamesyoung

How to create a GraphGist

You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page. Alternatively, you can put an AsciiDoc document in Dropbox and enter the public URL in the form.

This GraphGist shows the basics of using AsciiDoc syntax and a few additions for GraphGists. The additions are entered as comments on their own line. They are: //console for a query console; //hide, //setup and //output to configure a query; //graph and //table to visualize queries and show a result table.

Click on the Page Source button in the menu to see the source for this GraphGist.

A small social networking website

This database is a small example of a networking site where users can watch movies, subscribe to TV shows and comment and rate any of the previous media. Users may follow or block other users, just like any other networking website nowadays.

  • Purpose:

The theme was chosen because of the success these type of webs have all over the world, and because in general their structure can easily and naturally be displayed as a graph with very different types of relationships and very connected data. So, in a nutshell,

@jamesyoung
jamesyoung / gist:8119487
Created December 25, 2013 01:46
UpdateGameInfo.as::sendRequest()
override public function sendRequest():void
{
var m_SendObj:Object = new Object;
m_SendObj.cApi = API_NAME;
m_SendObj.cMethodName = "POST";
var param : Map = getParms();
LoggerWrapper.instance.getGameInfo(param);
param.add("appID", SlotsConfigData.getInstance().getAppPackageName());
"bonus": {
"type":"bonus",
"button_group": [
{
"id": "PrizeMagic",
"image": "scallop_pick.png",
"image-down": "scallop_pick.png",
"specific-position": [
{
"game-name": "Dolphin",
"asset-path": "http://localhost:5000/dolphin/assets/",
"assets": {
"art": [
"background_img.png",
"messagebar_img.png",
"trayBack_img.png",
"close_up_btn.png",
"close_down_btn.png",