Skip to content

Instantly share code, notes, and snippets.

View halhenke's full-sized avatar
:octocat:
Segge Fallt

Hal Henke halhenke

:octocat:
Segge Fallt
View GitHub Profile
@halhenke
halhenke / Screen Protector
Created January 24, 2019 03:00
This is what i got
https://www.amazon.com/gp/product/B073DLZWX7/ref=ppx_yo_dt_b_asin_title_o00__o00_s00?ie=UTF8&psc=1
@halhenke
halhenke / The Favourite
Created January 24, 2019 00:03
Cinematic Cinema
Dendy Cinemas Opera Quays - Map
12:10pm 9:20pm
Showtimes at Palace Verona
Palace Verona - Map
3:20pm 9:10pm
Showtimes at Chauvel, Paddington
Chauvel, Paddington - Map
2:30pm 6:50pm
@halhenke
halhenke / playground.rs
Created October 21, 2018 14:29 — forked from rust-play/playground.rs
Code shared from the Rust Playground
use std::rc::Rc;
extern crate core;
use core::cell::RefCell;
use std::ops::Deref;
type RT = Rc<RefCell<Thing>>;
struct Thing {
a: Vec<String>,
}
@halhenke
halhenke / gdrive-dload.sh
Created July 8, 2018 19:19
Download a file from Google Drive - Bash Script
#!/bin/bash
# fileid="### file id ###"
fileid="1hEG-GmMrvp--hWRU41RMBLB3gL-IdXs9"
filename="ILSVRC2014_devkit.tar"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
@halhenke
halhenke / differentiable_programming.html
Last active May 10, 2018 11:52
Differentiable Programming - Yann LeCunn
From <a href="https://www.facebook.com/yann.lecun/posts/10155003011462143">here</a>:
<h1>
Yann LeCun
</h1>
<i>5 January</i>
<p>OK, Deep Learning has outlived its usefulness as a buzz-phrase. Deep Learning est mort. Vive Differentiable Programming!</p>
#------------------------------------------------------------------
# STACK HELP
#------------------------------------------------------------------
# Check if this is actually a stack project
function _is_stack()
{
if ! [[ -f stack.yaml ]]
then
echo "Current directory does not appear to be a stack project..."
@halhenke
halhenke / labels_1024.tsv
Created February 27, 2017 14:39 — forked from teamdandelion/labels_1024.tsv
TensorBoard: TF Dev Summit Tutorial
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
7
2
1
0
4
1
4
9
5
9
@halhenke
halhenke / json-env.fish
Created November 9, 2016 14:56
Use env variables from a JSON file in Fish Shell command
function json-env -d "Takes a JSON file of config values and uses them as ENV vars for a command..
e.g. json-env env.json node --inspect src/index.js"
eval env -S (cat $argv[1] | jq 'to_entries | reduce .[] as $item (""; . + "\($item.key)=\($item.value) ")') $argv[2..-1]
end
@halhenke
halhenke / docker-bash.fish
Created August 17, 2016 07:00
Run a docker image & start an interactive BASH shell for dummies like me
function docker-bash -d "Run image & start interactive BASH shell"
docker run -i -t $argv[1] /bin/bash
end
function ping-ping -d "Do I have internet or fucking what?"
ping google.com
end