Skip to content

Instantly share code, notes, and snippets.

View thouis's full-sized avatar

Thouis (Ray) Jones thouis

  • Broad Institute
  • Cambridge, MA, USA
View GitHub Profile
@thouis
thouis / Hackathon.md
Last active August 29, 2015 13:57
Issues to bring up at Hackathon

Some things we'd like to see discussed at the hackathon:

  1. Modularity
  • Can the alignment pipeline be separated into independent steps with a well-defined format for the intermediate results? This would help in parallelization on the cluster, as well as easy experimentation with new approaches. It also would help separate control parameters into groups based on which step they control.
  1. 1D and 2D constraints
  • Currently, filtering correspondences removes all of those except corner-like matches. Is it possible to classify correspondences into smooth/linear/corner? 1D correspondences can be used to constrain the solution to a subspace, and might result in improved results and solution times in some cases.
  1. Cracks
  • Some of our data has (long, linear) cracks from the microtoming process. We can detect them automatically. It would be useful to be able to eliminate cracked regions from correspondence finding, and to be able to do some mesh surgery on the structural mesh during the solving pr
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="lshw-B.02.16" />
<style type="text/css">
.first {font-weight: bold; margin-left: none; padding-right: 1em;vertical-align: top; }
.second {padding-left: 1em; width: 100%; vertical-align: center; }
.id {font-family: monospace;}
@thouis
thouis / gist:ed15adbfe620c8be064b
Created April 3, 2015 01:03
PLY file to minecraft world via CanaryRaspberryJuice plugin
import plyfile
import pylab
import sys
import mcpi.minecraft as minecraft
import mcpi.block as block
import numpy as np
scale = 150
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from math import tan, floor
def f5(element):
assert len(element) % 2 == 0
for idx in range(0 ,len(element), 2):
sub = element[idx:idx+2].lower()
v1 = ord(sub[0]) - ord('a') + 1
v2 = ord(sub[1]) - ord('a') + 1
if 8 - floor(tan(v1 * v2)) < 0:
print v1 * v2, "bad"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
local grad = require 'autograd'
local nn = require 'nn'
local W1 = torch.FloatTensor(1, 1, 10, 10):normal()
local pooler = nn.SpatialMaxPooling(2, 2, 2, 2)
local unpooler = nn.SpatialMaxUnpooling(pooler)
-- not sure why these lines are necessary.
pooler.indices = torch.FloatTensor()
pooler.output = torch.FloatTensor()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.