Skip to content

Instantly share code, notes, and snippets.

@tech2077
tech2077 / nmigen_yosys_log
Created May 21, 2020 08:30
Error message for nmigen_yosys on Windows x64 with Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32
PS C:\Windows\system32> python -V
Python 3.8.0
PS C:\Windows\system32> python -m nmigen_yosys -V
Traceback (most recent call last):
File "C:\Program Files\Python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python38\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python38\lib\site-packages\nmigen_yosys\__main__.py", line 23, in <module>
yosys = linker.instantiate(wasmtime.Module(store,
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names
@tech2077
tech2077 / yoyotricks.md
Last active July 25, 2016 02:30 — forked from skielbasa/yoyotricks.md
Yoyo tricklist

Yoyo 1A tricklist

Beginner

  • Sleeper
  • Wind Up
  • Forward Pass
  • Breakaway
  • Around the World
  • Robin Hood
@tech2077
tech2077 / GroupMeBot.py
Created June 13, 2016 06:16
A generic GroupMe bot library, for more complex multi channel bots
import json, time
import groupy
import groupy.object
from twisted.internet.protocol import ReconnectingClientFactory
from autobahn.twisted.websocket import WebSocketClientFactory, connectWS
from autobahn.twisted.websocket import WebSocketClientProtocol
class GroupMeBot(WebSocketClientProtocol):
"""Client class for GroupMe push client
@tech2077
tech2077 / LIDAR.java
Last active January 29, 2018 13:15 — forked from anonymous/LIDAR.java
import java.util.TimerTask;
import edu.wpi.first.wpilibj.I2C;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.I2C.Port;
import edu.wpi.first.wpilibj.PIDSource;
public class LIDAR implements PIDSource{
private I2C i2c;
private byte[] distance;
private java.util.Timer updater;
package driver;
import edu.wpi.first.wpilibj.Counter;
import edu.wpi.first.wpilibj.DigitalInput;
/**
*
* @author matthew
*/
public class IMU {
@tech2077
tech2077 / gitwd.py
Created October 1, 2012 02:45
A rot cypher decryption toolkit
import re
def findall(src, key):
'''Returns list of all instances of a key item in src list'''
return [m.start() for m in re.finditer(key, src)]
def insert(original, new, pos):
'''Inserts new inside original at pos.'''
return original[:pos] + new + original[pos:]
@tech2077
tech2077 / cmdline.txt
Created July 6, 2012 07:57
cmdline.txt for serial boot
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
@tech2077
tech2077 / lcd_temp_rpi.py
Created June 25, 2012 05:35
Example Program for PyLCD
'''
Copyright (C) 2012 Matthew Skolaut
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:
The above copyright notice and this permission notice shall be included in all copies or substantial
@tech2077
tech2077 / pylcd.py
Last active October 6, 2015 08:07
PCA8574 Controlled HD44780 LCD library
'''
Copyright (C) 2012 Matthew Skolaut
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:
The above copyright notice and this permission notice shall be included in all copies or substantial