Skip to content

Instantly share code, notes, and snippets.

This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreicdcpq6bv4trua7s6k6qjkbixydwf7wxfretg7jxm4uxso5d5fium ✅
Create your profile today to start building social connection and trust online at https://3Box.io/

Keybase proof

I hereby claim:

  • I am dmvt on github.
  • I am dmvt (https://keybase.io/dmvt) on keybase.
  • I have a public key whose fingerprint is 0E26 4B9C B997 2009 257E 6997 0687 22B1 6394 3093

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1EDxQpxkk1m2SFcYcnag3Dg47X3YuKiuK8 https://explorer.blockstack.org/address/1EDxQpxkk1m2SFcYcnag3Dg47X3YuKiuK8
(function(a){
var Reactor = a.Reactor = new function(){
var self = this;
self.__core__ = [];
self.__pid__ = 0;
self.__speed__ = 750;
// Controls
self.adjustSpeed = function(speed) {
@dmvt
dmvt / keybase.md
Last active August 29, 2015 14:05

Keybase proof

I hereby claim:

  • I am dmvt on github.
  • I am dmvt (https://keybase.io/dmvt) on keybase.
  • I have a public key whose fingerprint is F3CC E76B 5B4A 70EA 5FB2 197F 7B08 C60B E9BD 2BD1

To claim this, I am signing this object:

@dmvt
dmvt / gist:0402939b6635c98686dd
Last active August 29, 2015 14:01
Get a printed list of components in Sketchup
class ComponentListExtractor
attr_reader :components
def initialize
@components = find_components.freeze
end
def to_s
String.new.tap do |out|
components.each do |name, component|
@dmvt
dmvt / gist:9316144
Last active August 29, 2015 13:56 — forked from herval/gist:951054
Ruby class which verifies Facebook authentication given the app secret and both a signed_request and user_id from the JavaScript SDK
# Personal Note: It was while working on this code that I heard about Jim Weirich's death. Sad day. RIP, Jim.
class FBAuth
attr_reader :errors, :signed_request, :user_id
def initialize(app_secret, signed_request, user_id)
@app_secret = app_secret
@errors = []
@now = Time.now
@signed_request = signed_request
@dmvt
dmvt / http-status-code-map.js
Created January 29, 2014 05:26
Provides a JavaScript object on window for translating http status codes into strings
// string responses from http://httpstatus.es/
(function(window) {
window.httpStatusCodeMap = {
100: 'Client should continue with request',
101: 'Server is switching protocols',
102: 'Server has received and is processing the request',
103: 'Resume aborted PUT or POST requests',
122: 'URI is longer than a maximum of 2083 characters',
200: 'Standard response for successful HTTP requests',