Skip to content

Instantly share code, notes, and snippets.

View joelreymont's full-sized avatar

Joel Reymont joelreymont

View GitHub Profile
@joelreymont
joelreymont / airsim_yolo_based_avoidance
Created April 3, 2024 11:21 — forked from 99sphere/airsim_yolo_based_avoidance
AirSim Simple AEB with yolo v3
import airsim #pip install airsim
import cv2
import numpy as np
import time
# for car use CarClient()
client = airsim.CarClient()
car_controls = airsim.CarControls()
def transform_input(responses):
img1d = np.fromstring(responses[0].image_data_uint8, dtype=np.uint8)
@joelreymont
joelreymont / spacemacs-keybindings
Created January 31, 2020 08:59 — forked from adham90/spacemacs-keybindings
spacemacs keybindings that i need to learn
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |

Keybase proof

I hereby claim:

  • I am joelreymont on github.
  • I am joelreymont (https://keybase.io/joelreymont) on keybase.
  • I have a public key ASAp1dvKR34qhFYFTpj3Fdihvie3hLr9PgU9jW0o7jGVGwo

To claim this, I am signing this object:

joelr@veloce node % cargo test --all
Finished test [optimized + debuginfo] target(s) in 0.35s
Running target/debug/deps/libp2p-dda3165598a69da9
running 1 test
test tests::it_works ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
Running target/debug/deps/stegos-753a21561cd29706

Keybase proof

I hereby claim:

  • I am wagerlabs on github.
  • I am wagerlabs (https://keybase.io/wagerlabs) on keybase.
  • I have a public key ASCQ3X9kS5iiA8i6P4M0WIwV_Ex8cA6Lb3iwAeWUDQmv1Qo

To claim this, I am signing this object:

@joelreymont
joelreymont / RecordAudio.swift
Created January 18, 2017 16:35 — forked from hotpaw2/RecordAudio.swift
This is a quick&dirty example of a Swift 3.0 class that can read buffers of microphone input samples using iOS RemoteIO with the Audio Unit v3 API
//
// RecordAudio.swift
//
// This is a Swift 3.0 class
// that uses the iOS Audio Unit v3 API and RemoteIO Audio Unit
// to record audio input samples,
// (should be instantiated as a singleton object.)
//
// Created by Ronald Nicholson on 10/21/16.
// Copyright © 2016 HotPaw Productions. All rights reserved.
@joelreymont
joelreymont / here.rs
Created October 14, 2016 10:16 — forked from arthurprs/here.rs
#![feature(conservative_impl_trait)]
extern crate futures;
extern crate tokio_core;
use std::env;
use std::io;
use std::net::SocketAddr;
use futures::{Future, Poll, Async};
use futures::stream::Stream;
@joelreymont
joelreymont / playground.rs
Created September 5, 2016 16:16 — forked from anonymous/playground.rs
Initialize with closures
pub type uint = u64;
pub fn initialize_with_closure<F>(rules: F) -> uint where F: FnOnce(&mut uint) {
let mut i = 0;
rules(&mut i);
i
}
// equivalently
pub fn initialize_with_closure_explicit<F>(rules: F) -> uint where F: for<'a> FnOnce(&'a mut uint) -> () {
if $(equal $(SYSNAME), Darwin)
vmount(-l, src/compat/gl3, _build)
else
vmount(-l, src/compat/gles2, _build)
open build/C
open build/OCaml
DefineCommandVars()
USE_OCAMLFIND = true
mkdir -p _build
vmount(-l, src, _build)
vmount(-l, src/ext, _build)