Skip to content

Instantly share code, notes, and snippets.

View joshlemer's full-sized avatar
🏠
Working from home

Josh joshlemer

🏠
Working from home
  • Winnipeg, Canada
View GitHub Profile
@joshlemer
joshlemer / Public Key
Last active August 29, 2015 13:56
Josh Lemer's Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.19 (GNU/Linux)
mQENBFMCzSQBCADP+LPwD+gcJzF2/n5Ys0aBXkZlnnN9Cz26GCx8xMcgLLnwNQvK
IJGORU/ZcoWLh4HFWCGBiN7q2Gp1AupqVWWPeCC8OeJttmDyYRrBjOiXPkyNLG5J
NFlyJQg/H6lHQTohtmbWLpkrHKiI7tNSqkjCGvDEw0VCKYhHJayzLN6e0Vr0J5fO
aCKQ8TdUmTI5u491Dw16UoF5mmMsjgRoKwdRpgA7eMdO/5djOIOIUr74Qs0MlRlU
Nmbvy4q+7oplW6pe3+GEFFHssejGr+VOHjjoj6JB8lBW1aSF75qKHD5h34NS/4bn
xGuDvHIzLHF2MJDX/AHvu79VKRVO9Ll3IhpZABEBAAG0IEpvc2ggTGVtZXIgPGpv
c2hsZW1lckBnbWFpbC5jb20+iQE4BBMBAgAiBQJTAs0kAhsDBgsJCAcDAgYVCAIJ
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default homeportal 0.0.0.0 UG 0 0 0 wlan0
192.168.100.0 * 255.255.255.0 U 9 0 0 wlan0
josh@JoshPC:~/OpenBazaar$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Box 'trusty' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading box from URL: https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box
Extracting box...te: 1247k/s, Estimated time remaining: --:--:--)
Successfully added box 'trusty' with provider 'virtualbox'!
@joshlemer
joshlemer / frozen
Created August 25, 2014 12:26
Frozen
frozen 0.452251222821
frozenfriends 0.241919164084
talesfromtechsupport 0.0248777777778
cynicalbrit 0.0229565217391
elsamasterrace 0.021231109127
askreddit 0.0189917024565
annamasterrace 0.0107771994016
tempestmasterrace 0.00667777777778
movies 0.00638330041048
australia 0.00573333333333
@joshlemer
joshlemer / rickandmorty-all
Created September 6, 2014 20:30
r_rickandmorty
rickandmorty 1171.05862378
metalgearsolid 564.183445333
donaldglover 236.873406193
thestrain 222.0
libertarianmeme 221.573170732
californication 168.666666667
warhammer40k 154.654867257
mustang 147.887323944
medicine 127.151982379
gunsarecool 123.0
@joshlemer
joshlemer / keybase.md
Created February 8, 2015 18:21
keybase.md

Keybase proof

I hereby claim:

  • I am joshlemer on github.
  • I am joshlemer (https://keybase.io/joshlemer) on keybase.
  • I have a public key whose fingerprint is ADC0 5393 6E4B 45A5 F794 54CF 9C81 AE40 2F09 2C19

To claim this, I am signing this object:

@joshlemer
joshlemer / secondroom.json
Created April 25, 2015 17:38
json returned from room query
{
"_cls":"Room",
"_id":{
"$oid":"552ab000605cd92f22347d79"
},
"created_at":{
"$date":1428842482049
},
"name":"second",
"queues":[
@joshlemer
joshlemer / db_config.py
Last active August 29, 2015 14:20
MongoLab Troubles
app.config['read_preference'] = read_preferences.ReadPreference.PRIMARY
app.config['MONGODB_HOST'] = 'ds031822.mongolab.com'
app.config['MONGODB_PORT'] = '31822'
app.config['MONGODB_DATABASE'] = 'queueme'
app.config['MONGODB_USERNAME'] = 'queueme'
app.config['MONGODB_DATABASE'] = 'password'
@joshlemer
joshlemer / permute.sc
Created May 28, 2015 15:02
Lazy Evaluate all permutations of a String in Scala
def permsStream(s: String): Stream[String] = {
def interleave(head: Char, tail: String) =
0 to tail.length map (i => tail.substring(0, i) + head + tail.substring(i))
if (s.length == 0) Stream("")
else permsStream(s.tail) flatMap (interleave(s.head, _))
}
package com.pulseenergy.calorificvalues;
import com.pulseenergy.core.quantity.Quantity;
import com.pulseenergy.core.quantity.Resource;
import com.pulseenergy.point.CorePointKey;
import com.pulseenergy.point.Point;
import com.pulseenergy.point.conversion.PointConverter;
import com.pulseenergy.point.model.EnergyPointModel;
import com.pulseenergy.space.Space;