Skip to content

Instantly share code, notes, and snippets.

View insipx's full-sized avatar
🏠
Working from home

Andrew Plaza insipx

🏠
Working from home
View GitHub Profile
enum voiceRegisters {
v_voll = 0x00,
v_volr = 0x01,
v_pitchl = 0x02,
v_pitchh = 0x03,
v_srcn = 0x04,
v_adsr0 = 0x05,
v_adsr1 = 0x06,
v_gain = 0x07,
v_envx = 0x08,

Keybase proof

I hereby claim:

  • I am InsidiousMind on github.
  • I am insidious (https://keybase.io/insidious) on keybase.
  • I have a public key whose fingerprint is 1ED1 D4E3 F948 BC14 3371 4A4A 1E39 BD66 88F2 43C9

To claim this, I am signing this object:

// Here's an example of using a Mutex to protect a value accross threads
/*
TL;DR
- You initialize a Mutex with PTHREAD_MUTEX_INITALIZER
- you can pass it around as a pointer just like anything else
- on write, lock
- read needs no lock
*/
extern crate csv;
extern crate rustc_serialize;
pub struct Items {
pub ids: Vec<Item>,
csv_path: String,
}
#[derive(RustcDecodable)]
struct Item {
//File name: a.c
/*
quick description:
-takes in input string from user
-passes the array of characters to 10 ten threads
-threads are responsible for 1/10th of the string and must increment ASCII table called count
-main prints the sum of each character
//File name: a.c
/*
quick description:
-takes in input string from user
-passes the array of characters to 10 ten threads
-threads are responsible for 1/10th of the string and must increment ASCII table called count
-main prints the sum of each character
#!/usr/bin/env zsh
# ------------------------------------------------------------------------------
#
# Pure - A minimal and beautiful theme for oh-my-zsh
#
# Based on the custom Zsh-prompt of the same name by Sindre Sorhus. A huge
# thanks goes out to him for designing the fantastic Pure prompt in the first
# place! I'd also like to thank Julien Nicoulaud for his "nicoulaj" theme from
# which I've borrowed both some ideas and some actual code. You can find out
local/acl 2.2.52-3
Access control list utilities, libraries and headers
local/adwaita-icon-theme 3.24.0-1 (gnome)
GNOME standard icons
local/alsa-lib 1.1.4-1
An alternative implementation of Linux sound support
local/alsa-utils 1.1.4-1
An alternative implementation of Linux sound support
local/android-tools 7.1.2_r6-1
Android platform tools
set nocompatible " be iMproved
filetype off " required!
set exrc
set secure
" Specify a directory for plugins
" " - For Neovim: ~/.local/share/nvim/plugged
" " - Avoid using standard Vim directory names like 'plugin'
" My Bundles here:
call plug#begin('~/.local/share/nvim/plugged')
set nocompatible " be iMproved
filetype off " required!
set exrc
set secure
" Specify a directory for plugins
" " - For Neovim: ~/.local/share/nvim/plugged
" " - Avoid using standard Vim directory names like 'plugin'
" My Bundles here:
call plug#begin('~/.local/share/nvim/plugged')