Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Alejandro agaviria

:octocat:
View GitHub Profile
@agaviria
agaviria / travis.yml
Created May 31, 2017
Travis CI - Rust
View travis.yml
language: rust
rust:
- stable
- nightly
matrix:
allow_failures:
- rust: nightly
View .sublime-keymap-user
[
// jj is the keybinding to replace escape key. Vi nav preference.
{
"keys": ["j", "j"],
"command": "_enter_normal_mode",
"args": {
"mode": "mode_insert"
},
"context": [{"key": "vi_insert_mode_aware"}]
},
@agaviria
agaviria / paint.java
Last active Sep 10, 2016
Helping a friend with a java assignment
View paint.java
import java.util.Scanner;
public class PaintCalc {
public static void main(String[] args) {
System.out.println("This program calculates the gallons needed to paint a room.");
final int GAL_PAINT_COVERAGE = 350;
double l, w, h;
double sqft;
View RUST_LOG
DEBUG:cargo::build: executing; cmd=cargo-build; args=["/Users/ag/.multirust/toolchains/stable-x86_64-apple-darwin/bin/cargo", "build", "-v"]
DEBUG:cargo::ops::cargo_compile: compile; manifest-path=/Users/ag/tmp/rust/foo/Cargo.toml
TRACE:cargo::ops::cargo_read_manifest: read_package; path=/Users/ag/tmp/rust/foo/Cargo.toml; source-id=file:///Users/ag/tmp/rust/foo
DEBUG:cargo::ops::cargo_compile: loaded package; package=foo v0.1.0 (file:///Users/ag/tmp/rust/foo)
DEBUG:cargo::core::registry: load/missing file:///Users/ag/tmp/rust/foo
TRACE:cargo::core::source: loading SourceId; file:///Users/ag/tmp/rust/foo
TRACE:cargo::ops::cargo_read_manifest: read_package; path=/Users/ag/tmp/rust/foo/Cargo.toml; source-id=file:///Users/ag/tmp/rust/foo
TRACE:cargo::core::resolver: resolve; summary=foo v0.1.0 (file:///Users/ag/tmp/rust/foo)
TRACE:cargo::core::resolver: activating foo v0.1.0 (file:///Users/ag/tmp/rust/foo)
DEBUG:cargo::core::registry: load/missing registry https://github.com/rust-lang/crates.io-index
View cargo build2 (dtrace)
Updating registry `https://github.com/rust-lang/crates.io-index`
SYSCALL(args) = return
thread_selfid(0x0, 0x0, 0x0) = 1640592 0
csops(0x0, 0x0, 0x7FFF5F467AC0) = 0 0
issetugid(0x0, 0x0, 0x7FFF5F467AC0) = 0 0
shared_region_check_np(0x7FFF5F4659C8, 0x0, 0x7FFF5F467AC0) = 0 0
stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x7FFF5F466F58, 0x7FFF5F467AC0) = 0 0
open("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x0, 0x0) = 3 0
pread(0x3, "\312\376\272\276\0", 0x1000, 0x0) = 4096 0
pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x1000) = 4096 0
View cargo build (dtrace)
Fresh foo v0.1.0 (file:///Users/ag/tmp/rust/foo)
SYSCALL(args) = return
thread_selfid(0x0, 0x0, 0x0) = 1602315 0
csops(0x0, 0x0, 0x7FFF5C422AC0) = 0 0
issetugid(0x0, 0x0, 0x7FFF5C422AC0) = 0 0
shared_region_check_np(0x7FFF5C4209C8, 0x0, 0x7FFF5C422AC0) = 0 0
stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x7FFF5C421F58, 0x7FFF5C422AC0) = 0 0
open("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x0, 0x0) = 3 0
pread(0x3, "\312\376\272\276\0", 0x1000, 0x0) = 4096 0
pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x1000) = 4096 0
View dogo.json
{
"WorkingDir": "{GOPATH}/src/github.com/dogo/example",
"SourceDir": [
"{GOPATH}/src/ag/dogo/example"
],
"SourceExt": [".c", ".cpp", ".go", ".h"],
"BuildCmd": "go build github.com/liudng/dogo/example",
"RunCmd": "go run main.go",
"Decreasing": 1
}
@agaviria
agaviria / .gitignore
Last active Apr 27, 2016
gitignore for Go dev
View .gitignore
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so
# Folders
_obj
_test
# Architecture specific extensions/prefixes
@agaviria
agaviria / Ledger_3_commands.dat
Created Aug 10, 2012
Collection of ledger-cli commands
View Ledger_3_commands.dat
# comments example for .dat or .ledger files
@smallexample
; This is a single line comment,
# and this,
% and this,
| and this,
* and this.
# If you have a deeply nested tree of accounts,
# it may be convenient to define an alias, for example: