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
type Query { | |
launches( | |
pageSize: Int | |
after: String | |
): LaunchConnection! | |
launch(id: ID!): Launch | |
me: User | |
} | |
type Mutation { | |
bookTrips(launchIds: [ID]!): TripUpdateResponse! |
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
/** | |
* Basic Arithmetic | |
*/ | |
const bind = Function.prototype.bind, | |
liberate = bind.bind(Function.prototype.call), | |
reduce = liberate(Array.prototype.reduce), | |
slice = liberate(Array.prototype.slice); | |
function multiplier(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
/** | |
* Provide digestFetch function | |
*/ | |
const crypto = require('crypto'); | |
const nodeFetch = require('node-fetch'); | |
const mergeOptions = require('merge-options'); | |
const cnonceSize = 32; | |
const nonceRaw = 'abcdef0123456789'; |
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 app\Observers; | |
use Illuminate\Database\Eloquent\Model; | |
class ReadOnly | |
{ | |
/** | |
* Listen to the Model creating event. |
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
let contexts = {} | |
function getContext(key) { | |
if (typeof contexts[key] === 'undefined') { | |
contexts[key] = { promise: null, resolve: null, reject: null } | |
} | |
return contexts[key] | |
} | |
function getPromise(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
/** | |
* v-click-outside directive | |
*/ | |
import Vue from 'vue' | |
import $ from 'jquery' | |
let elements = [] | |
Vue.directive('click-outside', { |
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
yarn install v0.17.0 | |
info No lockfile found. | |
[1/4] Resolving packages... | |
warning gulp-browserify > browserify > glob > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
warning gulp > vinyl-fs > glob-watcher > gaze > globule > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
warning gulp > vinyl-fs > glob-stream > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
warning gulp > vinyl-fs > glob-watcher > gaze > globule > glob > [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. | |
warning gulp-browserify > through2 > xtend > [email protected]: | |
[2/4] Fetching packages... | |
warning [email protected]: The platform "linux" is incompatible with this module. |
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
/*** Running CodePen available at http://codepen.io/anon/pen/VKyAVw ***/ | |
/** | |
* Flatten an array of arbitrarily | |
* nested arrays of integers into | |
* a flat array of integers. | |
*/ | |
function getFlattenedIntegers(integers) { | |
var result = [] |
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
/* | |
* angular-ui-bootstrap | |
* http://angular-ui.github.io/bootstrap/ | |
* Version: 0.13.0-SNAPSHOT - 2015-03-19 | |
* License: MIT | |
*/ | |
angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepick |
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
_ _ _ _ ___ ___ | |
| \ | (_) |_ _ __ ___ _ _ ___ |_ _/ _ \ | |
| \| | | __| __/ _ \| | | / __| | | | | | Welcome! | |
| |\ | | |_| | | (_) | |_| \__ \_ | | |_| | Get help → help.nitrous.io | |
|_| \_|_|\__|_| \___/ \__,_|___(_)___\___/ |
NewerOlder