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 |
@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) -> () {
/**
FIXME: Box exists to prevent the "Unimplemented IR generation feature non-fixed multi-payload enum layout" error. */
final class Box<T> {
let value: T
init(_ value: T) {
self.value = value
}
}
@joelreymont
joelreymont / twitter_stream.erl
Created November 7, 2011 20:16 — forked from gdamjan/twitter_stream.erl
twitter stream : ibrowse + json_stream_parse + mochiweb
-module(twitter_stream).
-author("[email protected]").
%% Depends on:
%% ibrowse for http
%% couchbeam for couchbeam_json_stream (a fork of damienkatz json_stream_parse)
%% mochiweb for mochiweb_util:urlencode
-export([start/0]).