Skip to content

Instantly share code, notes, and snippets.

View LAMike310's full-sized avatar

Mike Gnanakone LAMike310

  • Los Angeles
View GitHub Profile
➜ API git:(master) ✗ node gameData.js
[ { 'Short and formal names': 'A AAA',
'Membership within the UN System [Note 1]': 'A AAA',
'Sovereignty dispute [Note 2]': 'A AAA',
'Further information on status and recognition of sovereignty [Note 3]': '' },
{ 'Short and formal names': 'ZZZ↓ UN member states or observer states ↓',
'Membership within the UN System [Note 1]': 'A AAA',
'Sovereignty dispute [Note 2]': 'ZZZ',
'Further information on status and recognition of sovereignty [Note 3]': '' },
{ 'Short and formal names': 'ZZZAbkhazia → Abkhazia',
ubuntu@ip-172-31-24-227:~$ 21 status
Logged in as: satoshisam
Total Balance
Your spendable buffer at 21.co [1] : 97250 satoshis
Your spendable balance on the Blockchain [2] : 0 satoshis
Your spendable balance in Payment Channels : 0 satoshis
Amount flushing from 21.co buffer to Blockchain balance : 0 satoshis
[1]: Available for off-chain transactions
var express = require('express')
var app = express()
var request = require('request')
var bodyParser = require('body-parser')
app.use(bodyParser.json())
app.get('/hello', function(req, res){
res.send('world!')
})
var axios = require('axios');
var cheerio = require('cheerio')
var url = ""
axios.get(url)
.then(function (response) {
var data = response.data;
var $ = cheerio.load(response.data);
$('').each(function(i, element) {
});
artoo.scrape(".link", {
url: {sel: 'a', attr: 'href'}, text: {sel: 'a'}
}, artoo.savePrettyJson);
#!/usr/bin/env python3
from two1.wallet import Wallet
from two1.bitrequests import BitTransferRequests
# set up bitrequest client for BitTransfer requests
wallet = Wallet()
requests = BitTransferRequests(wallet)
# server address
server_url = 'http://[::1]:5000/'
import flask
from two1.wallet import Wallet
from two1.bitserv.flask import Payment
import requests
import json
from sys import argv
app = flask.Flask(__name__)
payment = Payment(app, Wallet())