Skip to content

Instantly share code, notes, and snippets.

View evanscottgray's full-sized avatar
🤠
herding cats

Evan Gray evanscottgray

🤠
herding cats
View GitHub Profile
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie ie6 lt-ie10 lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie ie7 lt-ie10 lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie ie8 lt-ie10 lt-ie9" lang="en"> <![endif]-->
<!--[if IE 9]> <html class="no-js ie ie9 lt-ie10" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.10.4/themes/black-tie/jquery-ui.css"/>
<?php
require 'core/init.php';
$pk = $_POST['pk']; //primary key aka ID
$name = $_POST['name']; //name of the field
$value = $_POST['value']; //value of the field
echo $pk
echo $name
echo $value
@evanscottgray
evanscottgray / gist:8626937
Created January 26, 2014 01:52
getting started with doge
cd dir with cudaminer
cudaminer.exe -H 1 -i 0 -l auto -C 1 -o stratum+tcp://scrypt.megamultipool.com:3335 -O egray2.doge:x
@evanscottgray
evanscottgray / docker rm
Created January 23, 2014 04:30
delete all exited images on hypervisor
docker -H=tcp://127.0.0.1:1337 ps -a | grep Exit | awk '{print $1}' | sudo xargs docker -H=tcp://127.0.0.1:1337 rm

Unionize: network superpowers for your docker containers

Unionize lets you connect together docker containers in arbitrarily complex scenarios.

Note: I recommend to use https://github.com/jpetazzo/pipework instead.

  • pipework is a better name than unionize
  • it's hosted on a "real" github repo instead of a small gist :-)

Now if you want Unionize, it's still here. Just check those examples.

class BaseComponent extends React.Component {
_bind(...methods) {
methods.forEach( (method) => this[method] = this[method].bind(this) );
}
}
class ExampleComponent extends BaseComponent {
constructor() {
super();
this._bind('_handleClick', '_handleFoo');
class ExampleComponent extends React.Component {
constructor() {
super();
this. _handleClick = this. _handleClick.bind(this);
}
render() {
return <div onClick={this._handleClick}>Hello, world.</div>;
}
@evanscottgray
evanscottgray / gist:1d7f6eff8457575fda11
Created June 17, 2015 21:11
created by github.com/tr3buchet/gister
[evan|laserbeams /Users/evan]% cat test.txt
hello towne you are cool
@evanscottgray
evanscottgray / gist:efa984d3e603bec62573
Created June 17, 2015 21:10
created by github.com/tr3buchet/gister
hello towne you are cool
@evanscottgray
evanscottgray / test.rb
Created June 9, 2015 20:46
redis things
def create(check=@check_data)
key = self.class._make_key(@id)
redis_data = check.to_json
self.class.redis.multi do |m|
m.rpush(self.class._list_key, @id)
m.set(key, redis_data)
end
end