Skip to content

Instantly share code, notes, and snippets.

View durka's full-sized avatar

Alex Burka durka

View GitHub Profile
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Compiling rustc v0.0.0 (file:///home/aburka/rust/src/librustc)
memory allocation of 1792 bytes failed
error: Could not compile `rustc`.
@durka
durka / a_Cargo.toml
Last active August 20, 2018 20:45
macro missing_docs
[package]
name = "a"
version = "0.1.0"
authors = ["Alex Burka <aburka@seas.upenn.edu>"]
[dependencies]
b = { path = "../b" }
$ j "ko pu zi lo nu mi bavlamdei klama lo nundansu cu mojgau mi lo du'u .ei sazysti lo nurfu'i datnyveise'u"
[ ( ko ) ( pu zi lo < nu [ ( mi ) << | bavlamdei klama | >> (
[ ( YOU! ) ( a short time before any/some < event(s) of [ ( I, me ) [is, does] << | later-adjacent-full day(s)?? [type-of] go-ing | >> (
[ ( mojgau1 (thing(s) bring-ing about remember-ing) ) ( < [ ( klama1 (go-er(s)) ) << \ / >> (
1 2 2 3 4 5 6 6 7 8 8 7 9
lo nundansu ) ] > ) cu << mojgau >> ( mi ) ( lo
$ rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'beta-x86_64-apple-darwin'
info: latest update on 2018-07-25, rust version 1.28.0-beta.14 (0aaa819fe 2018-07-24)
warning: component 'rustc' is not available anymore on target 'x86_64-apple-darwin'
warning: component 'rust-std' is not available anymore on target 'x86_64-apple-darwin'
warning: component 'cargo' is not available anymore on target 'x86_64-apple-darwin'
warning: component 'rust-docs' is not available anymore on target 'x86_64-apple-darwin'
warning: component 'rust-src' is not available anymore
warning: component 'rustfmt-preview' is not available anymore on target 'x86_64-apple-darwin'
@durka
durka / main.rs
Last active July 21, 2018 20:26 — forked from Yatekii/main.rs
let (device, factory) =
if let Ok((d, f)) = panic::catch_unwind(|| { gfx_device_gl::create(epoxy::get_proc_addr) }) {
(d, f)
} else {
return "ERROR";
};
\isolemnlysweariamuptonogood
\renewcommand{\p@section}{\thechapter.}
\mischiefm@n@ged
fn main() {
let mut i = 0;
times!([4 2] {
i += 1;
});
println!("i = {}", i);
assert_eq!(i, 42);
}
@durka
durka / Cargo.toml
Last active July 10, 2018 20:00
rosrust vs rospy
[package]
name = "node"
version = "0.1.0"
authors = ["alex"]
[dependencies]
error-chain = "0.12"
rosrust = "0.6.5"
rosrust_codegen = "0.6.5"
serde = "1.0.25"
\DeclareRobustCommand{\tblcap}[2]{%
\caption[\ifstrequal{#2}{cv}{Cross-validation}{Final} learning results (without feature selection)]{Results of regression and classification \ifstrequal{#1}{fs}{after}{without} feature selection, \ifstrequal{#2}{cv}{in cross validation}{on the entire training set and held-out test set}, with summary statistics. \ifstrequal{#2}{cv}{All metrics shown are averaged over cross-validation splits. }For the regression tasks, we calculate the correlation between desired and actual output, slope of the trend line, $p$-value, $R^2$, and \ac{RMSE}, while classification accuracy, $p$-value with respect to a dummy classifier, precision, recall, and \ac{MAE} are shown for the the classification tasks. Bolded rows show the best-performing models. This table corresponds to \cref{fig:properties_#1_#2train,fig:properties_#1_#2test,fig:ratings_#1_#2train,fig:ratings_#1_#2test}.}%
}
extern crate proc_macro;
extern crate syn;
#[macro_use]
extern crate quote;
use proc_macro::TokenStream;
#[proc_macro_derive(QueryParams)]
pub fn derive_query_params(input: TokenStream) -> TokenStream {
let ast: syn::DeriveInput = syn::parse(input).expect("Could not derive QueryParams struct");