Skip to content

Instantly share code, notes, and snippets.

View edwardchan's full-sized avatar

Edward Chan edwardchan

  • Red Hat
  • New York
View GitHub Profile
[
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" },
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" }
]
{
"count": 12,
"next": null,
"previous": null,
"results": [
{
"name": "18-34 year old",
"localized_name": {
"name": "18-34 year old",
"language": "en"
{
"count": 75,
"next": null,
"previous": null,
"results": [
{
"name": "Amazing",
"localized_name": {
"name": "Amazing",
"language": "en"
@edwardchan
edwardchan / G_GS_content_type_fields.txt
Created November 3, 2016 19:50
Field definitions for all the content types on NG GS.
{
"article": {
"body": {
"id": "node.article.body",
"type": "text_with_summary",
"label": "Body",
"field_name": "body",
"description": "",
"settings": {
"display_summary": true
{
"article": {
"body": {
"id": "node.article.body",
"type": "text_with_summary",
"label": "Body",
"field_name": "body",
"value": [],
"description": "",
"settings": {
http://news.nationalgeographic.com/2016/04/160427-spacex-mars-red-dragon-china-mission/|/2016/10/space-x-planea-enviar-una-nave-espacial-marte-en-2018
http://news.nationalgeographic.com/2016/05/160502-mars-water-boil-sand-gullies-slope-lineae-space/|/2016/10/la-arena-de-marte-puede-estar-hirviendo-presta-atencion-al-mecanismo-de-explosion
http://news.nationalgeographic.com/2016/03/160324-mars-nasa-gravity-map-space-science/|/2016/10/tres-cosas-geniales-que-hemos-aprendido-del-mapa-gravitatorio-de-marte-de-la-nasa
http://news.nationalgeographic.com/2015/10/151002-mars-mission-nasa-return-space/|/2016/10/como-nos-iremos-de-marte
http://news.nationalgeographic.com/2016/05/160519-mars-missions-orbits-lockheed-martin-space-science/|/2016/10/queremos-humanos-en-marte
http://news.nationalgeographic.com/2016/05/160520-watch-mars-opposition-biggest-brightest-planets-astronomy/|/2016/10/mira-marte-en-su-momento-mas-grande-y-brillante-de-la-ultima-decada
http://news.nationalgeographic.com/2016/04/ice-lake-suwa-japan-tor
[{"pointer": {"content_type": "article", "id": "4", "uri": "http://news.nationalgeographic.com/2016/04/160427-spacex-mars-red-dragon-china-mission/"}, "title": "Space X planea enviar una nave espacial a Marte en 2018", "abstract": "La compa\u00f1\u00eda pretende enviar versiones modificadas de sus c\u00e1psulas \u201cDrag\u00f3n\u201d al planeta rojo como parte de su meta a largo plazo de llevar humanos a Marte.", "created_at": "2016-10-01T12:16:28.214365", "last_modified_datetime": "2016-10-01T12:16:28.214365", "publication_datetime": "2016-10-01T12:16:28.214365", "keywords": ["spacex", " Marte", " Nave espacial"], "meta": {"domain": "SPACE", "is_deleted": false, "lastUpdate": "2016-10-01T12:16:28.214365"}, "body": "\nEl fundador de SpaceX, Elon Musk, se ha hecho famoso por decir que quiere morir en Marte- no en el impacto. A d\u00eda de hoy, la compa\u00f1\u00eda de vuelos espaciales dio a conocer su intenci\u00f3n de comenzar a enviar la nave Red Dragon al planeta rojo en 2018. Aunque los vuelos iniciales
name: Modal Form Example
type: module
description: 'Modal Form Example module'
package: Example
version: VERSION
core: 8.x
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library name="PHP">
<CLASSES>
<root url="file://$USER_HOME$/Sites/thr_thrillist/web/core/includes" />
diff --git a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
index a68c3c8..cd89b77 100644
--- a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
+++ b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
@@ -6,6 +6,7 @@
use Drupal\Core\Form\FormStateInterface;
use Drupal\taxonomy\Entity\Term;
use Drupal\taxonomy\TermStorageInterface;
+use Drupal\taxonomy\VocabularyInterface;
use Drupal\taxonomy\VocabularyStorageInterface;