sudo apt-get remove redis-server -y
mkdir -p ~/repos
cd ~/repos
git clone https://github.com/antirez/redis
git checkout tags/3.2.0-rc3
make
sudo make install
sudo ./utils/install_server.sh
cd ../..
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot){ | |
this.offset = 1; | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; |
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
<?php | |
namespace Extreloquent; | |
use Illuminate\Database\Eloquent\Builder; | |
/** | |
* Extension of the Eloquent model to add active dates to data | |
* | |
* Class Model |
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
<?php | |
class BaseModel extends Eloquent | |
{ | |
public $timestamps = false; | |
/** | |
* Validation rules | |
* | |
* @var array |
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
<?php namespace App\Services; | |
use Illuminate\Session\Store; | |
/** | |
* Laravel 5 Flash messages inspired by Laracasts Flash Messages. | |
* | |
* @link https://github.com/laracasts/flash | |
* | |
* @author Andrew Willis <[email protected]> | |
* |
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
class Listeners { | |
constructor() { | |
this.list = {}; | |
} | |
create(eventName, id, cb) { | |
if (!this.list[eventName]) { | |
this.list[eventName] = {}; | |
} |
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
Verifying that +willishq is my blockchain ID. https://onename.com/willishq |
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
storagedir="$(pwd)/storage/app/public" | |
publicdir="$(pwd)/public" | |
linkfile="${publicdir}/${*:-storage}"; | |
if [ -d $storagedir ] && [ -d $publicdir ]; then | |
if [ -L $linkfile ]; then | |
rm $linkfile; | |
fi | |
ln -s $storagedir $linkfile | |
fi |
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
<?php | |
namespace App\Http\Middleware; | |
use DB; | |
class TransactionMiddleware | |
{ | |
public function ($request, $next) | |
{ |
OlderNewer