Skip to content

Instantly share code, notes, and snippets.

Nat Lownes natlownes

Block or report user

Report or block natlownes

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 geo_voters_by_age_20_D_decile_pct_40.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View logmsg.proto
syntax = "proto3";
package logmsg;
message SpendLog {
int64 expiry = 1;
int64 display_time = 2;
string campaign_id = 3;
string campaign_name = 4;
natlownes /
Created Sep 27, 2017 — forked from rmax/
bittorrent format encoder/decoder that I found somewhere in the internet
# The contents of this file are subject to the Python Software Foundation
# License Version 2.3 (the License). You may not copy or use this file, in
# either source code or executable form, except in compliance with the License.
# You may obtain a copy of the License at
# Software distributed under the License is distributed on an AS IS basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
View flask_session_injector.php
function base64url_encode($data) {
return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
// payload
$data = array("username"=>"John");
$data_json = json_encode($data);
$dataz = gzcompress($data_json);
if(strlen($dataz) < (strlen($data_json) - 1))
View bazel query

bazel query cheatsheet

which packages depend on qtdb lib?

bazel query 'rdeps(..., //vistar/geo/qtdb:go_default_library)' --output package 

which packages does qtdb depend on?

natlownes / kata.scala
Created Mar 29, 2017 — forked from anonymous/kata.scala
Scala Kata shared content
View kata.scala
import com.scalakata._
@instrument class Playground {
class Person {
def name = "Ralph"
def f(p: Option[Person]): String = {
natlownes / values_pointers.go
Created Sep 21, 2016 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
View values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
Also available at:
p := Person{"Steve", 28} stores the value
View virtualenv-fixer.bash
#!/usr/bin/env bash
# fix virtualenv installs barfing out on `import datetime` after upgrading to
# ubuntu 15.04.
# usage: bash virtualenv-fixer.bash ~/your/virtualenv/root
if [ -z "$1" ]; then
echo "must give a root directory"
echo "bash virtualenv-fixer.bash ~/your/virtualenvs"
View gist:98e88581353472ade20a
### Keybase proof
I hereby claim:
* I am natlownes on github.
* I am narf ( on keybase.
* I have a public key whose fingerprint is 4883 C577 22A3 0ADC F196 2484 A77D 30B9 3D83 A61A
To claim this, I am signing this object:
View gist:2fa2abb4d3974c0b4c8a
package main
import (
type WordCount struct{}
You can’t perform that action at this time.