Skip to content

Instantly share code, notes, and snippets.

View OliverWS's full-sized avatar

Oliver Saunders Wilder OliverWS

View GitHub Profile
@OliverWS
OliverWS / P123_WebFPGA_1.v
Created February 4, 2021 22:42
P123_WebFPGA_1
// WF_blinky.v
//
// The "Hello World" of Digital Logic!
// This example blinks the on-board user LED once a second.
module fpga_top(
input WF_BUTTON,
output reg WF_LED
);
#!/bin/bash
echo "Installing Grafana apt-source..."
apt-get install -y apt-transport-https
apt-get install -y software-properties-common wget
wget -q -O - https://packages.grafana.com/gpg.key | apt-key add -
echo "deb https://packages.grafana.com/oss/deb stable main" | tee -a /etc/apt/sources.list.d/grafana.list
echo "Updating APT cache..."
apt-get update
echo "Installing Grafana"
; adc_wizard_apr11.a51 ; ADC test, done with configuration wizard Jan 11: pins reassigned
; ADC as voltmeter (8 bits displayed on LCD), input on P0.0
; rev path 3/16
$NOSYMBOLS ; keeps listing short
$INCLUDE (C:\SiLabs\MCU\INC\c8051f410.inc)
$INCLUDE (C:\SiLabs\MCU\INC\VECTORS320.INC) ; Tom's vectors definition file
STACKBOT EQU 080h ; put stack at start of scratch indirectly-addressable block (80h and up)
DISPLAY_HI EQU P2
; adc_wizard_apr11.a51 ; ADC test, done with configuration wizard Jan 11: pins reassigned
; ADC as voltmeter (8 bits displayed on LCD), input on P0.0
; rev path 3/16
$NOSYMBOLS ; keeps listing short
$INCLUDE (C:\SiLabs\MCU\INC\c8051f410.inc)
$INCLUDE (C:\SiLabs\MCU\INC\VECTORS320.INC) ; Tom's vectors definition file
STACKBOT EQU 080h ; put stack at start of scratch indirectly-addressable block (80h and up)
DISPLAY_HI EQU P2
; adc_wizard_apr11.a51 ; ADC test, done with configuration wizard Jan 11: pins reassigned
; ADC as voltmeter (8 bits displayed on LCD), input on P0.0
; rev path 3/16
$NOSYMBOLS ; keeps listing short
$INCLUDE (C:\SiLabs\MCU\INC\c8051f410.inc)
$INCLUDE (C:\SiLabs\MCU\INC\VECTORS320.INC) ; Tom's vectors definition file
STACKBOT EQU 080h ; put stack at start of scratch indirectly-addressable block (80h and up)
DISPLAY_HI EQU P2
@OliverWS
OliverWS / get_tweets.R
Created February 1, 2017 13:49
Example R script for downloading twitter data
install.packages("rtweet") # Only necessary the first time, to install the rtweet package
library(rtweet)
#See here for info on creating access token: https://cran.r-project.org/web/packages/rtweet/vignettes/auth.html
twitter_token <- create_token(app = "rtweet-ows", # whatever you named app
consumer_key = "<CONSUMER_KEY_HERE>",
consumer_secret = "<CONSUMER_SECRET_HERE>")
tweets <- get_timeline("realDonaldTrump", n = 5000) # Can also use search terms and the like here, or increase number of tweets to load
View(tweets)
@OliverWS
OliverWS / .block
Last active November 9, 2016 19:43
Google Search Volume for "Canadian Immigration" on November 9th, 2016
license: gpl-3.0
height: 600
border: no
@OliverWS
OliverWS / 10m.json
Last active November 9, 2016 18:42 — forked from rveciana/README.md
Basic map with new d3js 4.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@OliverWS
OliverWS / gist:1baa3fb549fd6931250e
Created May 9, 2014 19:52
Grab frame from ISS HD feed
ffmpeg -i http://bit.ly/ISS_HDEV -o frame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.