Skip to content

Instantly share code, notes, and snippets.

View kochie's full-sized avatar
💻
Working on something cool

Robert Koch kochie

💻
Working on something cool
View GitHub Profile
@kochie
kochie / index.html
Created May 29, 2023 06:52
Acrylic Test
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>Hello World!</title>
</head>
<body>
@kochie
kochie / cart_edges.sql
Created May 21, 2019 01:33
Athena script to convert csv to Neptune tables
SELECT CONCAT(CAST(m1.lid AS VARCHAR),
'-',CAST(m2.lid AS VARCHAR)) AS "id",
CONCAT(CAST(m1.pid AS VARCHAR),'-',CAST(m2.pid AS VARCHAR)) AS "~id",
m1.pid AS "~to", m2.pid AS "~from",
m1.quantity*m2.quantity AS "weight",
'boughtTogether' AS "~label"
FROM "mumumango"."lineitem" AS m1, "mumumango"."lineitem" AS m2
WHERE m1.lid<m2.lid
AND m1.oid=m2.oid
ORDER BY m1.lid;
#!/bin/bash
unamestr=`uname`
if [[ "$unamestr" == 'Darwin' ]]; then
brew install vim git make libcurl4-openssl-dev autotools-dev automake gcc tmux
else
sudo apt-get -y install vim git make libcurl4-openssl-dev autotools-dev automake gcc tmux
fi
@kochie
kochie / install.sh
Last active May 14, 2020 11:58
A updated installation of OpenCV on Ubuntu 17.04. Also provides command line argument to compile ARM binaries aimed at Raspberry Pi
#!/bin/bash
VERSION=3.3.0
PYTHON=/usr/bin/python3
if [ $1 == "arm" ]; then
echo "Compiling for ARM (Raspberry Pi)"
sudo apt-get install gcc-arm-linux-gnueabi
sudo apt-get install gcc-arm-linux-gnueabihf
@kochie
kochie / .tmux.conf
Created September 27, 2017 07:04 — forked from snuggs/.tmux.conf
TMUX configuration file
##############################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
#############################
#
# COPY AND PASTE

Keybase proof

I hereby claim:

  • I am kochie on github.
  • I am kochie (https://keybase.io/kochie) on keybase.
  • I have a public key whose fingerprint is A09C 3ECB 1582 1533 F46C 7D9A 060F 6578 4D08 8318

To claim this, I am signing this object:

#!/usr/bin/env python
# Tkinter (Tk/Ttk) Progressbar widget example
#
# Written by Yu-Jie Lin
# This code is placed in Public Domain
#
# Gist: https://gist.github.com/livibetter/6850443
# Clip: https://www.youtube.com/watch?v=rKr8wjKuhBY
#
# References: