Skip to content

Instantly share code, notes, and snippets.

View gwd999's full-sized avatar
🕶️

Walter D. gwd999

🕶️
View GitHub Profile
@gwd999
gwd999 / Readme.md
Created January 28, 2022 02:15 — forked from timelyportfolio/Readme.md
3d yield curve with Plotly in R

Nowhere near as spectacular as the Upshot/New York Times 3d yield curve by Amanda Cox and Gregor Aisch, but not bad at all for a couple of lines of R code with the plotly htmlwidget.

library(plotly)
library(dplyr)
library(tidyr)
library(purrr)
library(quantmod)
library(magrittr)
@gwd999
gwd999 / Update git fork with tags.sh
Created October 15, 2021 01:05 — forked from Saissaken/Update git fork with tags.sh
Update git fork with tags
# Repo: someuser/myframework
# Fork: superteam/myframework
# Track:
git clone https://github.com/superteam/myframework.git
cd myframework
git remote add upstream https://github.com/someuser/myframework.git
# Update:
git fetch upstream
@gwd999
gwd999 / ticker.sh
Created February 7, 2021 23:26 — forked from TheCedarPrince/ticker.sh
Song Ticker for OBS - writes to a file and then you can read it into OBS
while true
do
sleep 15
playerctl -p chromium metadata --format "{{ title }}" | sed -E 's/\[[^][]*\]//g' | sed 's/([^)]*)//g' &> ~/Streaming/song.txt
done
@gwd999
gwd999 / whyR_satellite.R
Last active November 26, 2020 22:49
Satellite image analysis with R - from whyR talk by Ewa G.
#Satellite imagery analysis in R @ Why R? 2020
# origi8nally from: https://github.com/WhyR2020/workshops/blob/master/satellite/whyr_satellite.R
#install.packages("devtools")
#library(devtools)
#devtools::install_github("16EAGLE/getSpatialData")
#install.packages("sen2r")
#two more packages to install (with our ML methods for classification): randomForest and kernlab
library(getSpatialData)
@gwd999
gwd999 / msys2-setup.md
Created June 7, 2020 18:13 — forked from roblogic/msys2-setup.md
MSYS2 first time setup

MSYS2 is a minimalist linux/unix shell environment for Windows.

Quote: "A modern replacement for MSYS bringing recent versions of the GNU toolchains, Git and other common Unix command line tools to the Windows platform"

1. Install

Do all the steps listed here: http://msys2.github.io/
(troubleshooting guide here: https://github.com/msys2/msys2/wiki/MSYS2-installation )

2. Set up proxies

//
// onehiddenlayerperceptron.cu
// onehiddenlayerperceptron
//
// Created by Sergei Bugrov on 8/21/17.
// Copyright © 2017 Sergei Bugrov. All rights reserved.
//
#include <stdio.h>
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@gwd999
gwd999 / R_OpenBLAS
Created December 21, 2019 16:23 — forked from cheuerde/R_OpenBLAS
Compiling R against OpenBLAS #install #R
#####################################################
### How to compile R and link it against OpenBLAS ###
#####################################################
# Assuming no root priviledges on the destination machine,
# so we have to compile our software locally
# set default installation directory:
INSTDIR=$HOME/opt
@gwd999
gwd999 / winbuild.txt
Created August 5, 2019 02:40 — forked from leeper/winbuild.txt
Building R from source on Windows
# Outline for building R from source on Windows (7)
# http://cran.r-project.org/doc/manuals/r-release/R-admin.html#Building-from-source
# Pre-built Windows R-Devel binary: http://cran.r-project.org/bin/windows/base/rdevel.html
# possibly helpful: http://stackoverflow.com/questions/25451705/build-r-source-code-from-windows
# install Rtools
# http://cran.r-project.org/bin/windows/Rtools/
# install Inno Setup (Unicode version)
@gwd999
gwd999 / singleton
Created February 25, 2016 13:34 — forked from jverzani/singleton
example of singleton pattern
## Singleton pattern
Singleton <- setRefClass("Singleton",
fields=list(
Class="ANY",
instance="ANY"
),
methods=list(
initialize=function(...) {
"Override this by defining Class"