Procedural Animated Gears
See the full Fractal Gears experiment: http://brm.io/gears/
More of the source at: https://github.com/liabru/gears-d3-js
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(query_start, clock_timestamp()), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| # Customize BASH PS1 prompt to show current GIT repository and branch. | |
| # by Mike Stewart - http://MediaDoneRight.com | |
| # SETUP CONSTANTS | |
| # Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
| # I don't remember where I found this. o_O | |
| # Reset | |
| Color_Off="\[\033[0m\]" # Text Reset |
| <?php | |
| namespace App\Support; | |
| class HigherOrderOptionalProxy | |
| { | |
| /** | |
| * The target being transformed. | |
| * Use _ prefix to avoid namespace conflict on __get() | |
| * |
| <?php | |
| /** | |
| * Naive Bayes classifier | |
| */ | |
| include __DIR__ . '/../vendor/autoload.php'; | |
| function train($samples) | |
| { |
| <?php | |
| use Illuminate\Database\Eloquent\Model; | |
| class ModelWithScope extends Model | |
| { | |
| use SelectableTrait; | |
| protected $selectable = [ | |
| 'id', 'title', 'created_at' |
Procedural Animated Gears
See the full Fractal Gears experiment: http://brm.io/gears/
More of the source at: https://github.com/liabru/gears-d3-js