Skip to content

Instantly share code, notes, and snippets.

3Box is a social profiles network for web3. This post links my 3Box profile to my Github account!
✅ did:muport:QmeuVfSmZoVNaLAEawAWcfDoZN5GnkmjDiBxi2qxKcrSre ✅
Create your profile today to start building social connection and trust online. https://3box.io/
@shkfnly
shkfnly / keybase.md
Created February 21, 2017 01:48
Keybase Proof

Keybase proof

I hereby claim:

  • I am shkfnly on github.
  • I am shkfnly (https://keybase.io/shkfnly) on keybase.
  • I have a public key whose fingerprint is 6515 AC94 01B0 D911 BD93 914E 9A04 C5A8 6296 CC94

To claim this, I am signing this object:

@shkfnly
shkfnly / The Technical Interview Cheat Sheet.md
Last active August 31, 2015 07:14 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@shkfnly
shkfnly / Leaflet.MapboxVectorTile.js
Created August 27, 2015 03:40
MapboxVector Tile leaflet
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var base64 = require('base64-js')
var ieee754 = require('ieee754')
@shkfnly
shkfnly / testdata.tsv
Last active August 29, 2015 14:19
Test Data for d3 Line Chart
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 4. in line 1.
date Household Commericial Industrial
20111001 63.4 62.7 72.2
20111002 58.0 59.9 67.7
20111003 53.3 59.1 69.4
20111004 55.7 58.8 68.0
20111005 64.2 58.7 72.4
20111006 58.8 57.0 77.0
20111007 57.9 56.7 82.3
20111008 61.8 56.8 78.9
20111009 69.3 56.7 68.8
@shkfnly
shkfnly / testdata.json
Created April 18, 2015 02:24
Data for D3
{
"name": "flare",
"children": [
{
"name": "animate",
"children": [
{"name": "Easing", "size": 17010},
{"name": "FunctionSequence", "size": 5842},
{
"name": "interpolate",
@shkfnly
shkfnly / dfs.rb
Created January 16, 2015 02:11
DFS in Ruby
def dfs(node, val)
return node if node.value == val
node.children.each do |child|
result = dfs(child, val)
return result unless result.nil?
end
nil
end
@shkfnly
shkfnly / ttt.rb
Created December 10, 2014 08:02
Tic Tac Toe with Computer choosing a winning move.
class Board
attr_accessor :board
def initialize
@board = Array.new(3) { Array.new(3, nil) }
end
def deep_dup
duped_board = Board.new
(0..2).each do |row|
(0..2).each do |col|
<!DOCTYPE html>
<html>
<head>
<title>Leaflet example | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;