- We architect applications for transparency and intercommunication, but our community is silo'd
- Grunt vs Gulp, etc are false dichotomies
- Many/most of us are in this business because we found a welcoming community: key component of the open part of open source
- Current landscape appears sectarian, polarizing
- We are not in opposing castles, we are living in cities inextricably linked by trade routes
- We should take a step back and re-architect our community, with the same mindfulness we take in our applications
- But in the community, two modules (groups) that do similar things are a strength: competition used to be considered a good thing! We wouldn't have Ember, Angular, etc or any of the others if it existed in isolation. Backbone is still relevant, and still inspiring new ideas (look at ampersand, new developments in marionette)
- Relevancy and utility are not correlated to novelty
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
// Declaring a variable of type PImage | |
PImage img; | |
// Define a function to turn an X and Y value into a one-dimensional | |
// array index, for use with acquiring individual pixels from the image | |
int getPixelIndex( int x, int y ) { | |
// Images are a set width: for each increase in y, we've | |
// effectively gone one width to the right and then wrapped | |
// around to the next line. Multiply the width by the number | |
// of times that wrapping has occurred (which line we are on, |
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
{ | |
"vars": { | |
"@gray-darker": "lighten(#000, 13.5%)", | |
"@gray-dark": "lighten(#000, 20%)", | |
"@gray": "lighten(#000, 33.5%)", | |
"@gray-light": "lighten(#000, 46.7%)", | |
"@gray-lighter": "lighten(#000, 93.5%)", | |
"@brand-primary": "#84bfed", | |
"@brand-success": "#975bfb", | |
"@brand-info": "#f2d890", |
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
{ | |
"name": "dream-speedrun", | |
"description": "Run through dream.js as fast as possible", | |
"main": "speedrun.js", | |
"scripts": { | |
"start": "node speedrun.js" | |
}, | |
"license": "WTFPL" | |
} |
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
module.exports = [ | |
'offset', // (int) - number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination (Click here for a workaround). The 'offset' parameter is ignored when 'posts_per_page'=>-1 (show all posts) is used. | |
'posts_per_archive_page', // (int) - number of posts to show per page - on archive pages only. Over-rides posts_per_page and showposts on pages where is_archive() or is_search() would be true. | |
// 'showposts', // <replaced by posts_per_page> | |
'nopaging', // (boolean) - show all posts or use pagination. Default value is 'false', use paging. | |
'post_type', // (string / array) - use post types. Retrieves posts by Post Types, default value is 'post'. | |
'post_status', // (string / array) - use post status. Retrieves posts by Post Status. Default value is 'publish', but if the user is logged in, 'private' is added. | |
'category__in', // (array) - use ca |
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
diff --git a/lib/class-wp-json-posts.php b/lib/class-wp-json-posts.php | |
index 941c796..a06ed0f 100644 | |
--- a/lib/class-wp-json-posts.php | |
+++ b/lib/class-wp-json-posts.php | |
@@ -519,9 +519,10 @@ class WP_JSON_Posts { | |
* | |
* @param string|object $type Type name, or type object (internal use) | |
* @param boolean $_in_collection Is this in a collection? (internal use) | |
+ * @param boolean $_in_taxonomy Is this request being added to a taxonomy record? (internal use) | |
* @return array Post type data |
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
diff --git a/lib/class-wp-json-posts.php b/lib/class-wp-json-posts.php | |
index 941c796..a06ed0f 100644 | |
--- a/lib/class-wp-json-posts.php | |
+++ b/lib/class-wp-json-posts.php | |
@@ -519,9 +519,10 @@ class WP_JSON_Posts { | |
* | |
* @param string|object $type Type name, or type object (internal use) | |
* @param boolean $_in_collection Is this in a collection? (internal use) | |
+ * @param boolean $_in_taxonomy Is this request being added to a taxonomy record? (internal use) | |
* @return array Post type data |
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
diff --git a/lib/class-wp-json-posts.php b/lib/class-wp-json-posts.php | |
index 941c796..599e8af 100644 | |
--- a/lib/class-wp-json-posts.php | |
+++ b/lib/class-wp-json-posts.php | |
@@ -1090,6 +1090,23 @@ class WP_JSON_Posts { | |
} | |
/** | |
+ * Embed post type data into taxonomy data | |
+ * |
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
$('body').append('<div class="container"></div>'); | |
_.times(10, function() { | |
_.times(100, function(){ | |
var $div = $('<div/>'); | |
$div.addClass('line'); | |
var rand = Math.random(); | |
if (rand < 0.33) { | |
$div.addClass('left'); | |
} else if (rand > .67) { |
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
TO mmadness :depth | |
if :depth < 1 [forward 10 back 10 stop] | |
forward :depth * 10 * 2 | |
right 90 | |
forward :depth * ( 10 * ( :depth / 5 ) ) | |
left 90 | |
mmadness :depth - 1 | |
right 90 | |
back :depth * ( 10 * ( :depth / 5 ) ) | |
left 180 |