I hereby claim:
- I am rhlsthrm on github.
- I am rhlsthrm (https://keybase.io/rhlsthrm) on keybase.
- I have a public key ASAQ4qooOAk2XGA9jkZO4Jf-Cz18h2tZ3hhb1IoeF2VQzQo
To claim this, I am signing this object:
import PromiseKit | |
import AwaitKit | |
struct Todo: Decodable { | |
var userId: Int | |
var id: Int | |
var title: String | |
var completed: Bool | |
} |
import Foundation | |
var todos = [String: Any]() | |
let dispatchGroup = DispatchGroup() | |
for todo in 0..10 { | |
let url = URL(string: "https://jsonplaceholder.typicode.com/todos/\(todo)") | |
dispatchGroup.enter() | |
let task = URLSession.shared.dataTask(with: url!) { (data, response, error) in |
pragma solidity ^0.4.23; | |
import "./HumanStandardToken.sol"; | |
import "../../LedgerChannel.sol"; | |
contract ReentrancyToken is HumanStandardToken { | |
LedgerChannel ledgerChannel; | |
uint256 constant MAX_REENTRIES = 5; | |
uint256 numReentries = 0; |
// return a promise so you can await it | |
function Insert_Machine(msg, callback) { | |
var result = []; | |
var connection = new Connection(machine_config); | |
return new Promise(function(resolve, reject) { | |
connection.on("connect", function(err) { | |
var request = new Request( // set up request structure | |
"INSERT INTO dbo.Data_new (pp_id, d_No, d_Note, d_Data, d_seq, d_machine, d_DateTime) OUTPUT INSERTED.Id VALUES (@pp_id, @d_No, @d_Note, @d_Data, 0, @d_machine, @d_DateTime);", | |
function(err, rowCount) { | |
if (err) { |
const axios = require('axios') | |
const xml = require('xml') | |
const { asyncRequest } = require('../util') | |
const { getModels } = require('../models') | |
const querystring = require('querystring') | |
const handler = async (req, res) => { | |
const { MailingList } = getModels() | |
const { email } = req.body |
I hereby claim:
To claim this, I am signing this object:
`{ "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "alloc": {},
def bracket_validator(arg): | |
openers = [] | |
for char in arg: | |
if char == '(': | |
openers.append('paren') | |
elif char == '{': | |
openers.append('curly') | |
elif char == '[': | |
openers.append('square') | |
elif char == ')': |
service: bittman | |
provider: | |
name: aws | |
runtime: nodejs4.3 | |
environment: | |
DYNAMODB_TABLE: ${self:service}-${opt:stage, self:provider.stage} | |
iamRoleStatements: | |
- Effect: Allow | |
Action: |