Skip to content

Instantly share code, notes, and snippets.

Justine Tunney jart

Block or report user

Report or block jart

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
@jart
jart / dawkins.markdown
Created Jun 8, 2014
How Dawkins Got Pwnd by Mencius Moldbug (37,941 words)
View dawkins.markdown

How Dawkins got pwnd

By Mencius Moldbug c. Sep 2007

Part 1

Richard Dawkins recently wrote a book called The God Delusion. You've probably heard of it.

Professor Dawkins is a great scientist and one of my favorite writers. And I have no quarrel at all with his argument. I was raised as a scientific atheist, and I've never seen the slightest reason to think otherwise. These days I prefer the word "nontheist" - for reasons which will shortly be clear - but there's no substantive difference at all. Except in the context of role-playing games, I have no interest whatsoever in gods, goddesses, angels, devils, dryads, water elementals, or any such presumed metaphysical being.

Nonetheless, it's my sad duty to inform the world that Professor Dawkins has been pwned. Perhaps you're over 30 and you're unfamiliar with this curious new word. As La Wik puts it:

@jart
jart / fastio.py
Created Oct 23, 2016
Multithreaded Python os.walk
View fastio.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@jart
jart / motd
Created Sep 28, 2013 — forked from anonymous/motd
View motd
                                                                       
                                                                         
                                                                            
                                                                              
                                         [48;5;237
View GenTestRules.bzl
# -*- mode:python; -*-
#
# Copyright 2016 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@jart
jart / blakefiler.py
Last active May 21, 2019
Demo video: https://youtu.be/gQidLhPVn70 This is a "proof of concept experiment prototype" for turning bazel query --output=build //tensorflow:libtensorflow_framework.so into an isomorphic Makefile
View blakefiler.py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@jart
jart / proxy.py
Created Nov 10, 2017
Authorizing HTTP Proxy
View proxy.py
import BaseHTTPServer
import SocketServer
import base64
import httplib
import shutil
import urlparse
basic = lambda u,p: 'Basic %s' % base64.b64encode('%s:%s' % (u,p))
AUTHORIZATIONS = {
@jart
jart / .bashrc.npm.sh
Last active Mar 1, 2019
NPM Dependency Calculator
View .bashrc.npm.sh
# NPM Dependency Calculator
#
# Author: Justine Tunney <jart@google.com>
# Last Updated: 2016-09-22
#
# This is a .bashrc addition that lets you inspect the transitive closure of
# dependencies for an NPM package. It does not require NPM or node.js to be
# installed on your system. It takes into consideration the fact that NPM
# does not resolve diamond dependencies. It goes super fast.
#
@jart
jart / lolc.sh
Last active Oct 29, 2018
Run C code in Bash
View lolc.sh
#!/bin/bash
# lolc.sh - run c code in bash
# by justine tunney <jtunney@gmail.com>
# licensed mit or apache 2.0
runc() {
local bin=$(mktemp -u)
gcc -xc -o ${bin} /dev/stdin || return
chmod u+x ${bin}
${bin} "$@"
@jart
jart / WORKSPACE
Last active Oct 29, 2018
Google Auto and Dagger Bazel Config
View WORKSPACE
load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external")
java_import_external(
name = "com_google_auto_common",
jar_sha256 = "eee75e0d1b1b8f31584dcbe25e7c30752545001b46673d007d468d75cf6b2c52",
jar_urls = [
"http://domain-registry-maven.storage.googleapis.com/repo1.maven.org/maven2/com/google/auto/auto-common/0.7/auto-common-0.7.jar",
"http://repo1.maven.org/maven2/com/google/auto/auto-common/0.7/auto-common-0.7.jar",
],
licenses = ["notice"], # Apache 2.0
@jart
jart / .bashrc.tensorboard
Last active Apr 16, 2018
Bash Python Profiling for TensorBoard
View .bashrc.tensorboard
# -*-sh-*-
# pip install yappi
# tensorboard-profile-wall-time --logdir=/tmp/mnist
tb-profile-wall-time() {
-tensorboard-profile wall "$@"
}
tb-profile-cpu-time() {
-tensorboard-profile cpu "$@"
You can’t perform that action at this time.