Skip to content

Instantly share code, notes, and snippets.

View ucarion's full-sized avatar
🌁
I just love enterprise software, man

Ulysse Carion ucarion

🌁
I just love enterprise software, man
View GitHub Profile
Date Location (according to buggy OCR)
10/17/2015 1800 CAPISTRANO AVE
10/17/2015 2100 DWIGHT WAY
10/18/2015 HASTE ST / SHATTUCK AVE
10/18/2015 2000 HASTE ST
10/18/2015 2400 WARRING ST
10/18/2015 WARRING ST / CHANNING WAY
10/18/2015 2200 BLAKE ST
10/18/2015 2500 BENVENLIE AVE
10/18/2015 2400 DWIGHT WAY '
2015-00061442
201500061447
2015-00061449
201500061450
2015-00061454
201500061455
2015-00061459
201500061466
1800 CAPISTRANO AVE
2100 DWIGHT WAY
HASTE ST / SHATTUCK AVE
2000 HASTE ST
2400 WARRING ST
WARRING ST / CHANNING WAY
2200 BLAKE ST
2500 BENVENLIE AVE
2400 DWIGHT WAY '
2300 PIEDMONT AVE
@ucarion
ucarion / llvm_fun.rs
Created July 1, 2016 01:01
A miniature LLVM-based compiler
#![feature(plugin)]
#![plugin(peg_syntax_ext)]
extern crate llvm_sys as llvm;
use std::ptr;
use std::ffi::CString;
use std::collections::HashMap;
use llvm::prelude::*;
@ucarion
ucarion / -
Created September 20, 2015 01:38
Compiling lcs v0.1.0 (file:///Users/ulyssecarion/rust/rust-lcs)
src/lib.rs:26:14: 26:47 error: the trait `core::cmp::Eq` is not implemented for the type `T` [E0277]
src/lib.rs:26 self.backtrack(a, b, a.len(), b.len())
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib.rs:26:14: 26:47 help: run `rustc --explain E0277` to see a detailed explanation
src/lib.rs:26:14: 26:47 error: the trait `core::cmp::Eq` is not implemented for the type `T` [E0277]
src/lib.rs:26 self.backtrack(a, b, a.len(), b.len())
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib.rs:26:14: 26:47 help: run `rustc --explain E0277` to see a detailed explanation
error: aborting due to previous error
@ucarion
ucarion / -
Created September 20, 2015 01:38
Compiling lcs v0.1.0 (file:///Users/ulyssecarion/rust/rust-lcs)
Build failed, waiting for other jobs to finish...
fn backtrack<'a, T>(&self, a: &'a [T], b: &'a [T], i: usize, j: usize) -> Vec<&'a T>
where T: Eq {
if i == 0 || j == 0 {
vec![]
} else if a[i] == b[j] {
let mut prefix_lcs = self.backtrack(a, b, i - 1, j - 1);
prefix_lcs.push(&a[i]);
prefix_lcs
https://gist.github.com/0513b84bd3981d34cb88
@ucarion
ucarion / rust
Created September 20, 2015 01:34
fn backtrack<'a, T>(&self, a: &'a [T], b: &'a [T], i: usize, j: usize) -> Vec<&'a T>
where T: Eq {
if i == 0 || j == 0 {
vec![]
} else if a[i] == b[j] {
let mut prefix_lcs = self.backtrack(a, b, i - 1, j - 1);
prefix_lcs.push(&a[i]);
prefix_lcs
@ucarion
ucarion / rust
Created September 20, 2015 01:34
https://gist.github.com/b22eb3d132441a4e5b19