Skip to content

Instantly share code, notes, and snippets.

View categulario's full-sized avatar
🚲
Always remote

Abraham Toriz Cruz categulario

🚲
Always remote
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"data": [
{
"attributes": {
"code": "001",
"created_at": null,
"last_pos": [
103.20172280073166,
-36.36761268401616
@categulario
categulario / codec.rs
Created July 14, 2017 01:54
parse from NMEA stream
use std::io;
use std::str;
use bytes::BytesMut;
use tokio_io::codec::{Encoder, Decoder};
use std::str::FromStr;
fn extract_coord(num: f32, orientation: &str) -> f32 {
let res = num%100.0;
let ans = (num/100.0).floor() + res/60.0;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@categulario
categulario / xalapa-rust.svg
Last active June 22, 2017 16:25 — forked from saibatizoku/xalapa-rust.svg
Propuesta de logo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@categulario
categulario / map001.geojson
Last active June 12, 2017 20:46
First shortest path between two points using OSM's oneway tag
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@categulario
categulario / dijkstra_1.geojson
Last active June 10, 2017 06:35
Dijkstra's first result
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@categulario
categulario / vimunstaged.sh
Created June 2, 2017 18:38
Open all unstaged (edited) files of repository as vim tabs
vimunstaged() {
vim -p $(git status -s | grep -E '^.(A|M)' | sed -E 's/^.{3}//')
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.