Images: http://imgur.com/a/RsTfZ
This file contains hidden or 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
| https://thepiratebay.org/description.php?id=12101405 |
This file contains hidden or 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
| SELECT Reddit_Group_Name, count(distinct Team_name) as team_count, count(1) as arrest_count, count(1)/count(distinct Team_name) as arrest_rate FROM `ArrestDateRedditGroups` | |
| group by Reddit_Group_Name | |
| ORDER BY `arrest_rate` ASC; | |
| SELECT Reddit_Group_Name, count(distinct Team_name) as team_count, count(1) as arrest_count, count(1)/count(distinct Team_name) as arrest_rate FROM `ArrestDateRedditGroups` | |
| group by Reddit_Group_Name | |
| ORDER BY `arrest_rate` DESC; | |
| SELECT Reddit_Group_Name, Team_name, count(1) as arrest_count | |
| FROM `ArrestDateRedditGroups` |
This file contains hidden or 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 DNA { | |
| float[] _dna; | |
| DNA() { | |
| this._dna = new float[DNACODE.values().length]; | |
| } | |
| DNA(DNA d1, DNA d2) { | |
| this._dna = this.mutate(d1._dna, d2._dna); | |
| } |
This file contains hidden or 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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^api/v1/([^/]*)/([^/]*)/([^/]*)$ api/router.php?endpoint=$1&verb=$2&id=$3 [QSA,NC,L] | |
| RewriteRule ^api/v1/([^/]*)/([^/]*)$ api/router.php?endpoint=$1&verb=$2 [QSA,NC,L] | |
| RewriteRule ^api/v1/([^/]*)$ api/router.php?endpoint=$1 [QSA,NC,L] | |
| RewriteCond %{THE_REQUEST} \s/+(sidebar)\.php[\s?] [NC] | |
| RewriteRule ^ /%1 [R=301,L,NE] |
This file contains hidden or 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 BrownianPoint extends PVector { | |
| int mode; | |
| PVector last; | |
| float firstLoad; | |
| BrownianPoint(float x, float y, float load, int mode) { | |
| this.x = x; | |
| this.y = y; | |
| this.z = load; | |
| this.mode = mode; | |
| this.last = PVector.random2D(); |
This file contains hidden or 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 FieldVector { | |
| PVector location; | |
| PVector grid_location; | |
| PVector heading; | |
| FieldVector(PVector loc, PVector grid_loc) { | |
| this(loc, grid_loc, PVector.random2D()); | |
| } | |
| FieldVector(PVector loc, PVector grid_loc, PVector heading) { | |
| this.location = loc; | |
| this.grid_location = grid_loc; |
This file contains hidden or 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
| function Disc(parent, position, rad) { | |
| this.parent = parent; // a PlinkoBoard object | |
| this.position = position; | |
| this.r = rad; | |
| this.velocity = createVector(0, 0); | |
| this.mass = 1; | |
| this.acceleration = createVector(0, 0); | |
| this.update = function () { | |
| //this.applyForce(GRAVITY); |
This file contains hidden or 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
| var data = require('./recipe-dataset.json'); | |
| var markov = require('./markov.js'); | |
| var name_generator = new markov.Generator(4, 32); | |
| var ingred_generator = new markov.Generator(4, 750); | |
| var desc_generator = new markov.Generator(7,500); | |
| for (var i = 0; i < data.length; i++) { | |
| name_generator.feed(data[i].name); |
This file contains hidden or 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 BrownianPartical { | |
| PVector position; | |
| float radius; | |
| color fill; | |
| BrownianPartical(PVector pos){ | |
| this(pos, color(255)); | |
| } | |
| BrownianPartical(PVector pos, color c){ | |
| position = pos; | |
| fill = c; |
NewerOlder