Skip to content

Instantly share code, notes, and snippets.

Zack Burt zackster

Block or report user

Report or block zackster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:6650df576f9cdc4b450e576f52b99739
[{"transaction":{"txId":"3bed2fdaf3d3c22e835fbd705845cd60e07a041318aa465001f2b239d47256c7","time":1562700821769,"status":"pending","statusDetail":"","amount":"0.0100000","asset":{"type":"native","code":"","issuer":"","verifiedDomain":"","issuerName":"","desc":"","infoUrl":""},"displayAmount":"","displayCurrency":"","sourceAmountMax":"","sourceAmountActual":"","sourceAsset":{"type":"","code":"","issuer":"","verifiedDomain":"","issuerName":"","desc":"","infoUrl":""},"isAdvanced":false,"summaryAdvanced":"","operations":null,"fromStellar":"GA6CUYDZJUWLIZEQCZMDP6VEXXIKSNJWJFS4WZOGOOOX5D5ILJLLH7O4","toStellar":"GB2WC4AS4HAGL77UGCDN7WNNXGZ5XMWTVV7YYABHWBT2NKNKHEJSE72N","fromUsername":"dxb","toUsername":"croupier","note":"","noteErr":"","unread":false,"publicNote":"","publicNoteType":"","feeChargedDescription":""},"username":"dxb"},{"transaction":{"txId":"2fe1df162bf616dea9ccfee90bb8315c9834c4832bfd77184292285445b23816","time":1562700837635,"status":"pending","statusDetail":"","amount":"0.0100000","asset":{"type":"na
View beemo-cryptosnipe.js
// tsc --lib es2015 index.ts
import "source-map-support/register";
const _ = await import("lodash");
const axios = await import("axios");
const Bot = await import("./node_modules/keybase-bot");
const bot = new Bot("/Users/zackburt");
const bot2 = new Bot("/Users/zackburt");
View keybase invitation post via mailgun
{"recipient"=>"beemo@subscribers.codefor.cash", "sender"=>"zack+caf_=beemo=subscribers.codefor.cash@codefor.cash", "subject"=>"Fwd: lnsummers (Lauren Summers) is now a member of the Keybase team codeforcash", "from"=>"Zack Burt <zack@zackburt.com>", "X-Mailgun-Incoming"=>"Yes", "X-Envelope-From"=>"<zack+caf_=beemo=subscribers.codefor.cash@codefor.cash>", "Received"=>"by mail-qk1-f169.google.com with SMTP id b18so8218663qkc.9 for <beemo@codefor.cash>; Sun, 26 May 2019 05:14:04 -0700 (PDT)", "X-Google-Dkim-Signature"=>"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:delivered-to:dkim-signature:mime-version :references:in-reply-to:from:date:message-id:subject:to; bh=TJ+BtdEfeTf9XddeNa7mxZDYZ+EGcGjPxMsROqGvRP0=; b=HoQus646WTg55Ifnira3MM73kINqwscdIth0/Pi2xuC8m3d9+uit4TE4Z5N6COOMry sF7u0bjwAPuCqtRFt9bE2QmoEv9/GHYnPJVYsjG5EM3J9B9XKzIEcRNkU0eJdbXumVXs K+8bBt2ecZNzNNJas+JIc0TMyEibCmz/PU3aj3lHmpxkK6PJkpw42hJeuZ1xwPsXQeP4
View gist:3260a44cc1f16e5382dc0de7d062be36
14:11:47 zackburt@Zacks-MBP:~/keybase/client (master)$ go build ./go/keybase
go/keybase/main.go:27:2: cannot find package "github.com/keybase/go-framed-msgpack-rpc/rpc" in any of:
/usr/local/go/src/github.com/keybase/go-framed-msgpack-rpc/rpc (from $GOROOT)
/Users/zackburt/gopath/src/github.com/keybase/go-framed-msgpack-rpc/rpc (from $GOPATH)
go/keybase/main.go:28:2: cannot find package "golang.org/x/net/context" in any of:
/usr/local/go/src/golang.org/x/net/context (from $GOROOT)
/Users/zackburt/gopath/src/golang.org/x/net/context (from $GOPATH)
View gist:b7a78f2100803e50ceb875f4a173516b
14:11:47 zackburt@Zacks-MBP:~/keybase/client (master)$ go build ./go/keybase
go/keybase/main.go:27:2: cannot find package "github.com/keybase/go-framed-msgpack-rpc/rpc" in any of:
/usr/local/go/src/github.com/keybase/go-framed-msgpack-rpc/rpc (from $GOROOT)
/Users/zackburt/gopath/src/github.com/keybase/go-framed-msgpack-rpc/rpc (from $GOPATH)
go/keybase/main.go:28:2: cannot find package "golang.org/x/net/context" in any of:
/usr/local/go/src/golang.org/x/net/context (from $GOROOT)
/Users/zackburt/gopath/src/golang.org/x/net/context (from $GOPATH)
View keybase.md

Keybase proof

I hereby claim:

  • I am zackster on github.
  • I am zackburt (https://keybase.io/zackburt) on keybase.
  • I have a public key ASA_m_JVvU8LBZn7xJ2lNdQI8JdyKMNJw-CxCFOB1616owo

To claim this, I am signing this object:

@zackster
zackster / max-heap.rb
Last active Feb 14, 2019
Implementation of max-heap in Ruby
View max-heap.rb
# O(n)
def heapify(arr)
last_element_index = arr.count - 1
idx = parent_index(last_element_index)
while idx >= 0
arr = fix(arr, idx)
idx -= 1
end
arr
end
View Code For Cash keywords
=> .net, .net core, .net, sql server, javascript, typescript, .net-core, .netcore, 3d, 3d modeling, 3d modelling, a, abap, access, accessibility, actionscript, active directory, activecampaign, activiti, add-ins, admob, adobe photoshop, adtech, advertising, adwords, agile, ai, airflow, aix, ajax, ajax/json, akka, albanian, alexa, alexa skill kit, alexa skills, alexaskills, alfresco, algorithm, algorithms, algoritms, amazon web services, amazon-mws, amazon-web-services, ambari, amber, amzone, analyist, analytics, andriod app development, android, android development, android studio, android-sdk, androidsdk, androidstudio, angular, angular 2, angular.js, angular2, angular4, angularjs, ansible, ant, apache, apache spark, apache-impala, apache-wicket, apache2, apex, api, api development, api integration, api-development, apis, apl, app, app development, app extensions, apple, apple search ads, application, applications, applied, apps, apps., ar, arcgis, architect, architecture, arduino, arkit, arm, artificial int
View cut_the_knot_coin_toss_intuition.rb
class Array
def sum
inject(0.0) { |result, el| result + el }
end
def mean
sum / size
end
end
View darts.rb
trials = 1000000
events = 0
trials.times do
coords = 8.times.map { [rand, rand] }
squares = coords.map { |x,y| [(x/0.25).ceil, (y/0.25).ceil] }
unless squares.inject(Hash.new(0)) { |total, e| total[e] += 1 ;total}.select{|k,v| v>=3}.count.zero?
events += 1
end
end
puts events.to_f / trials.to_f
You can’t perform that action at this time.