This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following image was genarated from the deepo project: | |
# https://github.com/ufoym/deepo | |
# Running from the generator directory: | |
# python generate.py --cuda-ver=9.2 --cudnn-ver=7 Dockerfile \ | |
# caffe jupyter opencv python==3.6 | |
FROM glassbeadlabs/deepo:caffe-py36-cu92-dnn7 | |
# Install openpose | |
# This snippet was adapted from the following fork |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import argparse | |
import logging | |
import subprocess | |
import os | |
import tempfile | |
from tempfile import mkstemp | |
import configparser | |
import gzip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compact version | |
const promisify = (fn, ...args) => new Promise((resolve, reject) => | |
fn(...args, (error, result) => error && reject(error) || resolve(result)) | |
) | |
// Example | |
// function myAsyncFn(options = Object, callback = Function) {} | |
// Like Promise | |
promisify(myAsyncFn, { msg: 'test' }).then(result => console.log(result)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place me in /etc/hotplug.d/iface/99-keepwanalive | |
if [ "$ACTION" = "ifdown" -a "$INTERFACE" = "wan" ]; then | |
COUNTER=0 | |
PASS=0 | |
while [ $PASS -eq 0 ] | |
do | |
grep "up" /sys/class/net/eth0/operstate > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//place this script in the Editor folder within Assets. | |
using UnityEditor; | |
//to be used on the command line: | |
//$ Unity -quit -batchmode -executeMethod WebGLBuilder.build | |
class WebGLBuilder { | |
static void build() { | |
string[] scenes = {"Assets/main.unity"}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx React.DOM */ | |
'use strict'; | |
var React = require('react'), | |
{ PropTypes } = React; | |
var AudioPlayer = React.createClass({ | |
propTypes: { | |
source: PropTypes.string.isRequired, | |
isPlaying: PropTypes.bool.isRequired, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// svg.textflow.js 0.8 - Copyright (c) 2013 Wout Fierens - Licensed under the MIT license | |
SVG.Textflow = function() { | |
this.constructor.call(this, SVG.create('text')) | |
/* define default style */ | |
this.styles = { | |
'font-size': 16 | |
, 'font-family': 'Helvetica, Arial, sans-serif' | |
, 'text-anchor': 'start' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="iPhoneBro" class="iPhone gen"> | |
<div class="title"> | |
<input type="submit" class="back button" value="Messages"> | |
<span class="contact_name button">(614) MEME-BRO</span> | |
<input type="submit" class="edit button" value="Edit"> | |
</div> | |
<div id="conversation" class="conversation "> | |
<div class="time"><div class="time"><p>Aug 9, 2012 3:43 AM</p></div></div><div class="text sent" id="query"><div class="reflect"></div><p>Check Out <a href-"http://www.memebro.com/?r=codepen">memebro.com</a></p></div> | |
<div class="text receive"><div class="reflect"></div><p>Try "+popular", "+trending", or "+new" for meme lists</p></div> | |
<div class="text sent" id="query"><div class="reflect"></div><p>+popular</p></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CSS Color Names | |
// Compiled by @bobspace. | |
// | |
// A javascript object containing all of the color names listed in the CSS Spec. | |
// This used to be a big array, but the hex values are useful too, so now it's an object. | |
// If you need the names as an array use Object.keys, but you already knew that! | |
// | |
// The full list can be found here: https://www.w3schools.com/cssref/css_colors.asp | |
// Use it as you please, 'cuz you can't, like, own a color, man. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules | |
public/socket.io.min.js | |
public/jquery.js |
NewerOlder