Skip to content

Instantly share code, notes, and snippets.

View mhink's full-sized avatar

Matt Hink mhink

View GitHub Profile
@mhink
mhink / notify.rb
Created November 21, 2016 19:37
A quick ruby script for OS X notifications from the shell (even in tmux!)
#! /usr/bin/env ruby
require 'optparse'
@reattach = true
@title = "Shell Notification"
OptionParser.new do |opts|
opts.banner = "Usage: notify [options] \"This is a notification\""
opts.on("--no-reattach", "don't use 'reattach-to-user-namespace") do |noreattach|
const FooBar = () => (
<div>Hello, world!</div>
);
const FooBarEquivalent = () => (
React.createElement("div", {}, ["Hello, world!"])
);
const MyComponent = (
<FooBar />
Dungeon Crawl Stone Soup version 0.21-a0-143-g1ab7d47 (tiles) character file.
Imem the Chopper (Minotaur Berserker) Turns: 71, Time: 00:00:31
Health: 15/19 AC: 13 Str: 21 XL: 1 Next: 41%
Magic: 0/0 EV: 3 Int: 4 God: Trog [*.....]
Gold: 0 SH: 0 Dex: 9 Spells: 0/0 levels left
rFire + . . SeeInvis . a - +0 hand axe
rCold + . . Gourm . (no shield)

Keybase proof

I hereby claim:

  • I am mhink on github.
  • I am mhink (https://keybase.io/mhink) on keybase.
  • I have a public key ASD4_JoL6uLuSKirFTrtGCHmp16345uQ5OCen4yrmtwJrAo

To claim this, I am signing this object: