- 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
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); |
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
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
; 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
<?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
diff --git a/geolocation.libraries.yml b/geolocation.libraries.yml | |
index 71c2fcf..b817e7c 100644 | |
--- a/geolocation.libraries.yml | |
+++ b/geolocation.libraries.yml | |
@@ -22,6 +22,12 @@ geolocation.views.filter.geocoder: | |
dependencies: | |
- geolocation/geolocation.geocoder | |
+# HTML5 Geolocation API. | |
+geolocation.html5: |
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
diff --git a/geolocation.libraries.yml b/geolocation.libraries.yml | |
index 71c2fcf..b817e7c 100644 | |
--- a/geolocation.libraries.yml | |
+++ b/geolocation.libraries.yml | |
@@ -22,6 +22,12 @@ geolocation.views.filter.geocoder: | |
dependencies: | |
- geolocation/geolocation.geocoder | |
+# HTML5 Geolocation API. | |
+geolocation.html5: |
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
(function ($, Drupal, drupalSettings) { | |
'use strict'; | |
/** | |
* @namespace | |
*/ | |
drupalSettings.geolocation.html5 = drupalSettings.geolocation.html5 || {}; | |
drupalSettings.geolocation.html5.proximity_view_ids = drupalSettings.geolocation.html5.proximity_view_ids || []; | |
Drupal.behaviors.geolocationProximityHTML5 = { |
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
diff --git a/geolocation.libraries.yml b/geolocation.libraries.yml | |
index 71c2fcf..b5dfaaf 100644 | |
--- a/geolocation.libraries.yml | |
+++ b/geolocation.libraries.yml | |
@@ -22,6 +22,12 @@ geolocation.views.filter.geocoder: | |
dependencies: | |
- geolocation/geolocation.geocoder | |
+# HTML5 Geolocation API. | |
+geolocation.html5: |
OlderNewer