Skip to content

Instantly share code, notes, and snippets.

View thenrich's full-sized avatar

Tim Henrich thenrich

  • Loop Science
  • Maryland
View GitHub Profile
apiVersion: workspace.devfile.io/v1alpha2
kind: DevWorkspaceTemplate
metadata:
name: theia-ide-rlang-hello-world
spec:
commands:
- id: init-container-command
apply:
component: remote-runtime-injector
events:

Keybase proof

I hereby claim:

  • I am thenrich on github.
  • I am thenrich (https://keybase.io/thenrich) on keybase.
  • I have a public key whose fingerprint is 7F07 EA10 904B 7E1F D54B 51D0 B395 E7ED 3973 A6BC

To claim this, I am signing this object:

@thenrich
thenrich / queue_play.go
Last active February 3, 2017 14:54
Go queue
package main
import (
"fmt"
"time"
)
// Container for messages in the queue
type Message struct {
Msg string
@thenrich
thenrich / gist.html
Created July 6, 2015 20:02
Hugo Gist
<script type="text/javascript" src="http://gist.github.com/{{ .Get 0 }}.js"></script>
core@ip-10-0-0-139 ~ $ docker info
Containers: 1
Images: 8
Storage Driver: overlay
@thenrich
thenrich / uwsgi.service
Created January 22, 2015 20:57
uWSGI systemd unit file
[Unit]
Description=uWSGI
After=docker.service
Requires=docker.service
[Service]
EnvironmentFile=/home/core/environ
User=core
TimeoutStartSec=300
ExecStartPre=-/usr/bin/docker kill uwsgi
@thenrich
thenrich / gate_opener.xml
Created December 18, 2014 02:04
gate_opener.xml layout for Android Gate Opener
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/widget_margin"
android:background="#c0c0c0" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Open Gate"
@thenrich
thenrich / Receiver.java
Created December 18, 2014 02:02
BroadcastReceiver for Android Gate Opener
package YOURPACKAGE.gateopener;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
@thenrich
thenrich / GateOpener.java
Created December 18, 2014 01:51
GateOpener.java Widget for Android Gate Opener
package YOURPACKAGE.gateopener;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.RemoteViews;
@thenrich
thenrich / AndroidManifest.xml
Last active August 29, 2015 14:11
AndroidManifest.xml for Gate Opener Android App
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="YOURPACKAGE.gateopener" >
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >