Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dbb613 on github.
  • I am dbb613 (https://keybase.io/dbb613) on keybase.
  • I have a public key ASBoYwJ_qm10_3G7nT9maw77Q06sM8Ua8mpLrIRdL5JFngo

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://viewer-feature.hapyak.com/embed.js"></script>
<hapyak-embed presentation="inline" src="locator://c=12803;g=110;p=b5fd3700-1206-4458-854e-b52abb4e2660"></hapyak-embed>
load-nvmrc() {
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"
if [ -n "$nvmrc_path" ]; then
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
if [ "$nvmrc_node_version" = "N/A" ]; then
nvm install
@dbb613
dbb613 / index.html
Last active June 5, 2017 15:37
Lodash extend vs merge #jsbench #jsperf (https://jsbench.github.io/#fe5b9b64a32633d1c96ece15ff8b2d9f) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Lodash extend vs merge #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@dbb613
dbb613 / index.html
Created June 5, 2017 15:26
Lodash extend vs merge #jsbench #jsperf (https://jsbench.github.io/#b547d0d8166eaac2beb73a6a9d8779b2) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Lodash extend vs merge #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
username: 'foo',
password: ''
});
@dbb613
dbb613 / index.html
Last active December 11, 2016 13:09
Post Message Performance #jsbench #jsperf (http://jsbench.github.io/#645c2d0bffb687977415ef67e3490b12) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Post Message Performance #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@dbb613
dbb613 / index.html
Last active December 6, 2016 03:38
Compare cost of calling method vs property (http://jsbench.github.io/#3afb9bdf5d330afd9de07f83e65f9a2c) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Compare cost of calling method vs property</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@dbb613
dbb613 / gist:e76230a1c58af4e02b14
Last active July 17, 2016 20:32
Examples of Vertica ODBC ini files
NOTE: tabs seem to matter under PHP eventhough not for isql
david@OptiPlex-745:/usr/local/etc$ cat odbc.ini
[ODBC Data Sources]verticadsn = VMart
[verticadsn]Description = Vertica Database using ODBC Driver
Driver = /opt/vertica/lib64/libverticaodbc.so
Servername = localhost
Database = VMart
UserName = dbadmin
@dbb613
dbb613 / vmc-flow-playlislt.html
Created January 24, 2012 14:07
Visible Measures + Flow Player Integration Example Code
<html>
<head>
<script src="[Path-to-your-flowplayer-js lib]/flowplayer-3.2.6.js"></script>
</head>
<body>
<div id="player" style="width: 640px; height: 360px;">
</div>
<script type="text/javascript">