Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
package S2z8N3;{ | |
$zyp=S2z8N3;use Socket; | |
(S2z8N3+w1HC$zyp)& | |
open SZzBN3,"<$0" | |
;while(<SZzBN3>){/\s\((.*p\))&/ | |
&&(@S2zBN3=unpack$age,$1)}foreach | |
$zyp(@S2zBN3){ | |
while($S2z8M3++!=$zyp- | |
30){$_=<SZz8N3>}/^(.)/|print $1 | |
;$S2z8M3=0}s/.*//|print}sub w1HC{$age=c17 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
import numpy as np | |
from scipy import ndimage as ndi | |
# lookup tables for bwmorph_thin | |
G123_LUT = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, | |
0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, | |
1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, |
This file contains 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
/** | |
* Author: Joe Futrelle | |
* License: CC0 - Free as in freedom | |
*/ | |
/** | |
* ATtiny85 direct digital synthesis | |
* using MCP4725 12-bit I2C DAC | |
* TWI is handled using Atmel's USI TWI implementation | |
* which is provided as part of Application Note AVR310 | |
* http://www.atmel.com/Images/Atmel-2561-Using-the-USI-Module-as-a-I2C-Master_AP-Note_AVR310.pdf |
This file contains 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
from datetime import datetime, timedelta | |
# util for converting MATLAB datenum to Python datetime | |
# as described in http://stackoverflow.com/questions/13965740/converting-matlabs-datenum-format-to-python | |
def datenum2datetime(matlab_datenum): | |
dt = datetime.fromordinal(int(matlab_datenum)) + timedelta(days=matlab_datenum%1) - timedelta(days = 366) | |
return dt | |
# util for converting datetime to MATLAB datenum | |
# as described in http://stackoverflow.com/questions/8776414/python-datetime-to-matlab-datenum |
This file contains 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
import numba as nb | |
from numba.typed import List | |
NO_ID = -1 | |
DOESNT_FIT = 99999999 | |
NO_SECTION = (0, 0, 0, 0, DOESNT_FIT) | |
@nb.jitclass([ | |
('x', nb.int32), | |
('y', nb.int32), |
This file contains 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
/* Name: main.c | |
* Author: Joe Futrelle | |
* License: CC0 - Free as in freedom | |
*/ | |
/* Adafruit 4-digit alphanumeric backpack, I2C | |
* Via USI_TWI_master from application note AVR310 | |
* http://www.atmel.com/Images/Atmel-2561-Using-the-USI-Module-as-a-I2C-Master_AP-Note_AVR310.pdf | |
*/ | |
/* Datasheet for HT16K33 | |
* http://www.adafruit.com/datasheets/ht16K33v110.pdf |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder