- Panels
- Guide to creating custom panel plugins
- D3
- Project page: http://d3js.org/
- Code: https://github.com/mbostock/d3
- Examples
- Politics: http://www.nytimes.com/interactive/2015/06/04/us/politics/stacking-up-the-presidential-fields.html?ref=politics&_r=0
- Uber rides by Neighborhood in San Francisco: http://bost.ocks.org/mike/uberdata/
- Shiboronoi: http://bl.ocks.org/mbostock/7280327
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 Drupal\saintlukes_migrate\Plugin\migrate\source\d7; | |
use Drupal\migrate\Row; | |
use Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity; | |
/** | |
* Drupal 7 field_collection_item source from database. | |
* |
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 | |
$csv_contents = file_get_contents('http://forever.codeforamerica.org/fellowship-2015-tech-interview/Violations-2012.csv'); | |
$csv_data = explode(PHP_EOL, $csv_contents); | |
$results = array(); | |
for ($i = 1; $i < count($csv_data); $i++) { | |
$row_data = explode(',', $csv_data[$i]); | |
$violation_category = trim($row_data[2]); |
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
; Coffee Extras | |
projects[coffee_extras][type] = module | |
projects[coffee_extras][download][type] = git | |
projects[coffee_extras][download][url] = git://git.drupal.org/sandbox/mrkdboyd/2361931.git | |
projects[coffee_extras][download][branch] = 7.x-1.x |
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
// Remove constraint and index | |
queryInterface.sequelize.query( | |
'ALTER TABLE "project" DROP CONSTRAINT IF EXISTS project_name_key;' | |
).then(function() { | |
return queryInterface.removeIndex('project', 'project_name_key'); | |
}); | |
// Add unique constraint and index | |
queryInterface.addIndex('project', ['name'], { | |
indexName: 'project_name_key', |
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
Show hidden characters
{ | |
"preset": "node-style-guide", | |
"requireTrailingComma": false, | |
"disallowMultipleVarDecl": false, | |
"requireCurlyBraces": ["else", "for", "while", "do", "try", "catch" ], | |
"disallowKeywordsOnNewLine": [], | |
"maximumLineLength": null | |
} |
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
.c3 path.domain { | |
shape-rendering: crispEdges; | |
} |
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
module.exports = function(grunt) { | |
// Load all plugins and tasks defined by the grunt-drupal-tasks package. | |
require('grunt-drupal-tasks')(grunt); | |
// Get the OS and set it as a variable. | |
var os = require('os'); | |
var platform = os.platform(); | |
grunt.config('platform', platform); |
NewerOlder