I hereby claim:
- I am josh-miller on github.
- I am joshmili (https://keybase.io/joshmili) on keybase.
- I have a public key ASCNmoG6Svfm6lI2RCwxd65Ur4He6aY3vJOtzMQvzKCqOQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| app.use(express.methodOverride()); | |
| // ## CORS middleware | |
| // | |
| // see: http://stackoverflow.com/questions/7067966/how-to-allow-cors-in-express-nodejs | |
| var allowCrossDomain = function(req, res, next) { | |
| res.header('Access-Control-Allow-Origin', '*'); | |
| res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); | |
| res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization'); | |
| build: | |
| docker build -t node-portal . | |
| stopdev: | |
| - docker kill node-portal | |
| - docker rm node-portal | |
| startdev: | |
| docker run \ | |
| -v $(shell pwd)/app/src:/var/node/app/src \ |
| 'use strict'; | |
| export const stateManager = { | |
| state: [], | |
| states: {}, | |
| currentState: function() { | |
| return this.state; | |
| }, |
| <?php | |
| /** | |
| * Run this in hook_update, enable, or install | |
| **/ | |
| $settings = field_bundle_settings('node', 'article'); | |
| $settings['view_modes']['view_mode_name']['custom_settings'] = TRUE; | |
| field_bundle_settings('node', 'article', $settings); |
| npm install selenium-webdriver | |
| npm install selenium-server-standalone-jar | |
| npm install phantomjs |
| /** | |
| * Implements hook_preprocess_pager(). | |
| */ | |
| function THEME_preprocess_pager(&$vars, $hook) { | |
| $vars['tags'][0] = 'first'; | |
| $vars['tags'][1] = 'previous'; | |
| $vars['tags'][3] = 'next'; | |
| $vars['tags'][4] = 'last'; | |
| } |
| <?php if (isset($rows)): ?> | |
| <?php foreach($rows as $row): ?> | |
| <div class="field-row"> | |
| <div class="field-item"> | |
| <?php print render($row['field_some_field']); ?> | |
| </div> | |
| <div class="field-item"> | |
| <?php print render($row['field_someother_field']); ?> | |
| </div> | |
| </div> |
| $knowledge_lab_settings = variable_get('theme_knowledge_lab_settings', array()); | |
| $knowledge_lab_settings['default_logo'] = 0; | |
| variable_set('theme_knowledge_lab_settings', $knowledge_lab_settings); |
| /* ======================================================================== | |
| * Bootstrap: affix.js v3.3.4 | |
| * http://getbootstrap.com/javascript/#affix | |
| * ======================================================================== | |
| * Copyright 2011-2015 Twitter, Inc. | |
| * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
| * ======================================================================== */ | |
| +function ($) { |