I hereby claim:
- I am jhecking on github.
- I am jhecking (https://keybase.io/jhecking) on keybase.
- I have a public key ASBbEfvjjpqSfK2DKgiSaueL3k5nIwA4-u505AapHjgDfQo
To claim this, I am signing this object:
world_regions: | |
asia: | |
name: Asia | |
countries: | |
- BD | |
- BT | |
- BN | |
- KH | |
- CN | |
- IN |
# A phone number consists of up to six groups of digits which may or may not | |
# be separated from each other using one of the separater characters dot ".", | |
# dash "-" or space " ". The six groups are: | |
# (1) International country code, which is a one to four digit number | |
# prefixed by a plus sign "+". The plus sign is optional if - and only if - | |
# the country code is immediately followed by a separator char. | |
# The whole country code group is optional. | |
# (2) Area code, which is a one to three digit number enclosed in parenthesis | |
# "()". The parenthesis are optional if - and only if - the area code is | |
# immediately followed by a separator char. |
def class_hierarchy(root, exclude = []) | |
common_ancestors = root.ancestors.drop(1) | |
descendants = [] | |
tree = {} | |
ObjectSpace.each_object(Class) do |cls| | |
next unless cls.ancestors.include? root | |
next if descendants.include? cls | |
case exclude | |
when Class, Array | |
next unless (Array(exclude) & cls.ancestors).empty? |
const Aerospike = require('aerospike') | |
const config = { | |
hosts: '192.168.33.10:3000', | |
log: { level: 5 }, | |
modlua: { | |
userPath: './', | |
systemPath: './node_modules/aerospike/aerospike-client-c/lua/' | |
} | |
} |
var aerospike = require('aerospike') | |
var config = {log: {level: 3} } | |
var ns = 'test' | |
var set = 'demo' | |
aerospike.client(config).connect(function (error, client) { | |
client.put({ns: ns, set: set, key: 'k1'}, {i: 1}, function (error) { | |
if (error && error.code !== 0) throw new Error(error.message) | |
client.udfRegister('udf.lua', function (error) { | |
if (error && error.code !== 0) throw new Error(error.message) |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
. "github.com/aerospike/aerospike-client-go" | |
) | |
func panicOnError(err error) { | |
if err != nil { | |
panic(err) |
#!/bin/bash | |
node benchmark.js |
#[derive(Debug)] | |
pub struct Bin<'a> { | |
/// Bin name | |
pub name: &'a str, | |
/// Bin value | |
pub value: i64, | |
} | |
impl<'a> Bin<'a> { |
const { SharedIniFileCredentials, STS } = require('aws-sdk') | |
const { execSync } = require('child_process') | |
const OK_RESPONSE = /button returned:OK, text returned:(?<answer>\S+)/ | |
async function tokenCodeAppleScript (serialno, callback) { | |
try { | |
const cmd = `osascript -e 'display dialog "Enter MFA code for ${serialno}:" default answer ""'` | |
const response = execSync(cmd).toString() | |
const match = response.match(OK_RESPONSE) |