Skip to content

Instantly share code, notes, and snippets.

@dieface
dieface / keybase.md
Created February 13, 2019 11:44
for my keybase usage

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@dieface
dieface / upstart-node-server.conf
Created August 16, 2016 23:43
Upstart Conf for Node Server - edited in /etc/init/upstart-node-server.conf
description "RESTful Server"
author "dieface"
# When to start the service
# used to be: start on startup
# until we found some mounts weren't ready yet while booting
start on started mountall and runlevel [2345]
# When to stop the service
stop on shutdown
@dieface
dieface / mac-apps.md
Created August 9, 2016 02:59 — forked from erikreagan/mac-apps.md
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@dieface
dieface / integerWithBytes
Created April 6, 2016 12:08 — forked from krzyzanowskim/integerWithBytes
integerWithBytes Swift way
// Playground - noun: a place where people can play
import Foundation
typealias Byte = UInt8
protocol GenericIntegerType: IntegerType {
init(_ v: Int)
init(_ v: UInt)
init(_ v: Int8)
@dieface
dieface / play_all_voices.sh
Created April 3, 2016 07:23 — forked from ttscoff/play_all_voices.sh
A quick Bash loop to play all available voices for OS X say command
#!/bin/bash
# Arguments can include a quoted string to define the test string to be repeated
# If an argument is numbers only, it changes the rate at which to speak (words per minute, default 200)
play_all_voices() {
local voice
local rate=200
local test_string="How are you?"
for arg in $@; do
if [[ $arg =~ ^[0-9]+$ ]]; then
@dieface
dieface / users.json
Created February 7, 2016 16:30
User Example
[{
"name": "Brad Connelly",
"username": "Soledad.Cummings77",
"email": "Victoria.Mraz@gmail.com",
"address": {
"street": "Casimir Ridge",
"suite": "Apt. 803",
"city": "East Virginie shire",
"zipcode": "31760-5201",
"geo": {
@dieface
dieface / GIF-Screencast-OSX.md
Created January 31, 2016 04:43 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@dieface
dieface / react-parent-context-patch.js
Created January 9, 2016 17:53 — forked from jamesknelson/react-parent-context-patch.js
Use parent context instead of owner context in facebook/react (#2112)
var ReactInstanceMap = require("react/lib/ReactInstanceMap");
var ReactLifeCycle = require("react/lib/ReactLifeCycle");
var ReactNativeComponent = require("react/lib/ReactNativeComponent");
var ReactReconciler = require("react/lib/ReactReconciler");
var emptyObject = require("react/lib/emptyObject");
var invariant = require("react/lib/invariant");
var warning = require("react/lib/warning");
var ReactCompositeComponentMixin = require('react/lib/ReactCompositeComponent').Mixin;
@dieface
dieface / Default-568h@2x.png
Created January 9, 2016 10:32 — forked from uebo/Default-568h@2x.png
iOS Sample Launch Screen File
Default-568h@2x.png
@dieface
dieface / Enhance.js
Created January 8, 2016 09:08 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {