(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| # Insomnia Configuration | |
| ## Run the test query | |
| { | |
| shop { | |
| id | |
| name | |
| } | |
| } | |
| # Query Structure Examples |
| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./authorization"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |
| /* eslint-disable no-console, import/first */ | |
| import path from 'path'; | |
| import express from 'express'; | |
| import expressStaticGzip from 'express-static-gzip'; | |
| import graphqlHTTP from 'express-graphql'; | |
| import PrettyError from 'pretty-error'; | |
| import bodyParser from 'body-parser'; | |
| import raven from 'raven'; | |
| import morgan from 'morgan'; | |
| import { graphqlBatchHTTPWrapper } from 'react-relay-network-layer'; |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # Make sure you have a recent version: the code points that Powerline |
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # Make sure you have a recent version: the code points that Powerline |
| # chromium | |
| sudo apt install -y chromium-browser | |
| # dev (php, docker, git, node, bower, electron, composer) | |
| sudo apt install -y \ | |
| php php-curl php-mysql \ | |
| docker.io \ | |
| git \ | |
| nodejs npm | |
| sudo ln -s /usr/bin/nodejs /usr/bin/node |
| <style> | |
| .ui-datepicker .md-icon { | |
| flex: 0 0 auto; | |
| margin-right: 8px; | |
| width: 18px; | |
| height: 18px; | |
| } | |
| </style> | |
| <style lang="sass" scoped> |
| Route::get('edit', function() { | |
| // fetch our post, and it's associated categories | |
| $post = Post::with('cats')->where('id', '=', $id)->first(); | |
| // fetch all of our categories | |
| $cats = Cat::all(); | |
| // create our empty array | |
| $post_cats = array(); |
| angular.module('Demo', ['ionic', 'Demo.controllers', 'Demo.services', 'ngCordova']) | |
| .run(function ($ionicPlatform, sqliteService) { | |
| $ionicPlatform.ready(function () { | |
| // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard | |
| // for form inputs) | |
| if (window.cordova && window.cordova.plugins.Keyboard) { | |
| cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | |
| cordova.plugins.Keyboard.disableScroll(true); |