Skip to content

Instantly share code, notes, and snippets.

View nocduro's full-sized avatar

Mackenzie Hauck nocduro

View GitHub Profile
@nocduro
nocduro / 3.18_usbcam_config
Created April 2, 2018 04:41
linux config for de10 nano for opencl and usbwebcams
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.18.0 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
@nocduro
nocduro / main.rs
Last active August 27, 2017 00:22
extern crate rayon;
use rayon::prelude::*;
use std::path::PathBuf;
use std::fs::File;
use std::io;
use std::io::Write;
use std::sync::{Arc, Mutex};
fn sequential(filenames: &[PathBuf]) -> io::Result<()> {
@nocduro
nocduro / lib.rs
Last active August 9, 2017 23:21
#![feature(test)]
pub fn nth(index: usize) -> Result<usize, &'static str> {
if index == 0 {
return Err("index must be larger than 0");
}
let mut primes = vec![2usize];
let mut number: usize = 3;
/*Required Connections
--------------------
pin 2: LED Strip #1 OctoWS2811 drives 8 LED Strips.
pin 14: LED strip #2 All 8 are the same length.
pin 7: LED strip #3
pin 8: LED strip #4 A 100 ohm resistor should used
pin 6: LED strip #5 between each Teensy pin and the
pin 20: LED strip #6 wire to the LED strip, to minimize
pin 21: LED strip #7 high frequency ringining & noise.
pin 5: LED strip #8
/* OctoWS2811 - High Performance WS2811 LED Display Library
http://www.pjrc.com/teensy/td_libs_OctoWS2811.html
Copyright (c) 2013 Paul Stoffregen, PJRC.COM, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: