Skip to content

Instantly share code, notes, and snippets.

View teburd's full-sized avatar

Tom Burdick teburd

View GitHub Profile
= note: /home/tburdick/.xargo/lib/rustlib/thumbv7em-none-eabihf/lib/libcore-4e43b20d7b10689c.rlib(core-4e43b20d7b10689c.core15-5efa93ba7fba496bdbaf6dcdd12031b.rs.rcgu.o): In function `core::panicking::panic_fmt':
core15-5efa93ba7fba496bdbaf6dcdd12031b.rs:(.text.cold._ZN4core9panicking9panic_fmt17h6e966399d347dc48E+0x24): undefined reference to `rust_begin_unwind'
~/src/rust-embedded/cortex-m-rtfm   master v0.3.1  xargo run --example two-tasks
Compiling semver-parser v0.7.0
Compiling untagged-option v0.1.1
Compiling bare-metal v0.1.1
Compiling unicode-xid v0.0.4
error[E0463]: can't find crate for `std`
error: aborting due to previous error
error: Could not compile `semver-parser`.
@teburd
teburd / build.gradle
Created January 4, 2018 20:23
build.gradle
apply plugin: 'com.android.library'
android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 1
fn sync(&mut self) -> EventResult<()> {
let mut agencies: Vec<&str> = Vec::new();
let mut routes: HashMap<&str, Vec<&str>> = HashMap::new();
let mut stops: HashMap<&str, Vec<&str>> = HashMap::new();
{
for transit in self.transit.iter() {
match transit.as_tuple() {
(agency, "", "") => agencies.push(agency),
(agency, route, "") => {
let mut agency_routes = routes.entry(agency).or_insert(Vec::new());
@teburd
teburd / vectorizethis.m
Last active October 2, 2017 17:32
what I want to vectorize
>> A
A =
1 2
3 4
5 6
7 8
>> B
B =
CARGO_INCREMENTAL=1 cargo build  ✓  10039  10:46:40
error: unable to get packages from source
Caused by:
failed to parse manifest at `/home/bfrog/.cargo/registry/src/github.com-1ecc6299db9ec823/prometheus-0.2.8/Cargo.toml`
Caused by:
can't find `benches` bench, specify bench.path
gdb ./target/debug/gdbfail
@teburd
teburd / test
Created March 28, 2017 22:49
test
error: internal compiler error: /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/librustc_typeck/check/dropck.rs:650: substs for an impl must map types to TyParam
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'Box<Any>', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/librustc_errors/lib.rs:423
note: Run with `RUST_BACKTRACE=1` for a backtrace.
/**
* Monitor a view for visibility on screen, notifying a VisibilityListener
* when a View becomes Visible on the device screen.
*/
public class VisibilityMonitor implements ViewTreeObserver.OnGlobalLayoutListener, ViewTreeObserver.OnScrollChangedListener, View.OnLayoutChangeListener {
private VisibilityListener mListener;
private View mView;
private boolean mVisible = false;
I/Ads: Ad opening.
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 20664
W/art: Attempt to remove non-JNI local reference, dumping thread
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 20664
W/art: Attempt to remove non-JNI local reference, dumping thread
I/Ads: Ad is not visible. Not refreshing ad.
I/Ads: Scheduling ad refresh 60000 milliseconds from now.
I/Ads: Ad is not visible. Not refreshing ad.