Skip to content

Instantly share code, notes, and snippets.

View windhooked's full-sized avatar

H windhooked

View GitHub Profile
@windhooked
windhooked / main.go
Created May 13, 2020 07:18 — forked from cometkim/main.go
qor admin with echo
package main
import (
"fmt"
"github.com/jinzhu/gorm"
"github.com/labstack/echo"
_ "github.com/mattn/go-sqlite3"
"github.com/qor/admin"
"github.com/qor/auth"
@windhooked
windhooked / FPGA_2_LCD.v
Created May 5, 2020 14:27 — forked from jjcarrier/FPGA_2_LCD.v
A simple character LCD controller core written in Verilog
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: Carrier Frequency, Inc.
// Engineer: Jon Carrier
//
// Create Date: 21:33:11 06/17/2011
// Design Name:
// Module Name: FPGA_2_LCD
// Project Name:
// Target Devices:
@windhooked
windhooked / ep2c5-ss-howto
Created April 24, 2020 13:12 — forked from makestuff/ep2c5-ss-howto
Build FPGALink and VHDL examples for the EP2C5+Minimus in sync-serial configuration
$ # Make sure you have udev rules for 1d50:602b and 03eb:2ffa, using a group you're a member of (I use "users"):
$ groups
users ...
$ cat /etc/udev/rules.d/10-local.rules
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="602b", GROUP="users", MODE="0660"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="03eb", ATTR{idProduct}=="2ffa", GROUP="users", MODE="0660"
$
# You'll need some stuff before we begin:
sudo apt-get install build-essential libreadline-dev libusb-1.0-0-dev python-yaml
@windhooked
windhooked / counter.v
Created April 23, 2020 18:19 — forked from mcgodfrey/counter.v
Up-down counter (8-bit) in verilog for servo control example
/*
8 bit up-down counter.
Based on code from Mojo tutorial
https://embeddedmicro.com/tutorials/mojo/pulse-width-modulation
/\ /\
/ \ / \
/ \/ \
The CRT_LEN determines the period of the resulting counter
*/
module counter #(parameter CTR_LEN = 27) (
@windhooked
windhooked / counter.v
Created April 22, 2020 13:30 — forked from wnew/counter.v
Parametrised Verilog Counter
//============================================================================//
// //
// Parameterize Counter //
// //
// Module name: counter //
// Desc: parameterized counter, counts up/down in any increment //
// Date: Oct 2011 //
// Developer: Rurik Primiani & Wesley New //
// Licence: GNU General Public License ver 3 //
// Notes: //
//https://www.mikrocontroller.net/topic/454238
//Beispiel XMega128A1:
// https://www.mikrocontroller.net/topic/328856?goto=4441280#4441280
// https://www.mikrocontroller.net/topic/478135#5918484
//https://www.mikrocontroller.net/articles/Drehgeber
//https://www.mikrocontroller.net/topic/454238
//http://www.dse-faq.elektronik-kompendium.de/dse-faq.htm#F.29
FROM debian:bullseye-slim
USER root
WORKDIR /app
EXPOSE 8080
COPY dist/fw_interface /bin
COPY .env /app
COPY nwrfcsdk.conf /etc/ld.so.conf.d/nwrfcsdk.conf
# unpack and install nwrfcsdk
package main
import (
"fmt"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/sqlite"
"github.com/qor/transition"
)
Dataframes in Golang
https://github.com/rocketlaunchr/dataframe-go
https://github.com/akualab/dataframe
https://github.com/go-gota/gota
https://github.com/emer/etable
neural networks & machine learning
https://github.com/sjwhitworth/golearn
https://github.com/emer/emergent
@windhooked
windhooked / README.md
Created January 27, 2020 12:49 — forked from owulveryck/README.md
Simple linear regression with plot in go with gonum

Very simple linear regression

curl -s //www.lauradhamilton.com/data_files/cricket_chirps_versus_temperature.txt | go run main.go > output.svg
2018/06/13 19:57:59 3.3057614388773593*x+24.966014428303183