This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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<()> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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: |