This file contains hidden or 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
| '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' --disable-threaded-gpu-rasterization --disable-quic --disable-gpu --disable-display-list-2d-canvas --disable-new-avatar-menu --disable-3d-apis --disable-about-in-settings --disable-accelerated-2d-canvas --disable-accelerated-jpeg-decoding --disable-accelerated-video-decode --disable-account-consistency --disable-affiliation-based-matching --disable-answers-in-suggest --disable-app-list-dismiss-on-blur --disable-async-dns --disable-background-networking --disable-backing-store-limit --disable-blink-features --disable-blink-scheduler --disable-boot-animation --disable-breakpad --disable-bundled-ppapi-flash --disable-canvas-aa --disable-cast --disable-cast-streaming-hw-encoding --disable-click-delay --disable-client-side-phishing-detection --disable-cloud-import --disable-component-cloud-policy --disable-component-extensions-with-background-pages --disable-component-update --disable-composited-antialiasing --disable-confirmation --disable-contextual- |
This file contains hidden or 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
| // main.js | |
| fs = require('fs') | |
| A = require('./a')(fs) | |
| // a.js | |
| module.exports = function(fs) { | |
| return function A() {} | |
| } |
This file contains hidden or 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
| import 'dart:html'; | |
| main() { | |
| var button = new ButtonElement(); | |
| button | |
| ..id = 'confirm' | |
| ..text = 'Confirm' | |
| ..classes.add('important') | |
| ..onClick.listen((e) => window.alert('Confirmed!')); | |
| querySelector('#registration').children.add(button); |
This file contains hidden or 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
| { | |
| // https://github.com/jscs-dev/node-jscs/blob/876d012919aecf2a834f2b98a66e1ee2c6692f0b/presets/jquery.json | |
| "preset": "jquery", | |
| // Overrides. | |
| // http://jscs.info/rules.html | |
| "validateQuoteMarks": "'", | |
| "validateIndentation": 2, | |
| "disallowTrailingComma": null, | |
| "requireSpaceAfterKeywords": [] |
This file contains hidden or 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
| // mobile are the default style, it shouldn't need to be used explicitly. | |
| $breakpoints: ( | |
| mobile: 0px, | |
| mobile-large: 480px, | |
| tablet: 760px, | |
| tablet-large: 960px | |
| ); | |
| // Adds a min-width media query for the given breakpoint name with the | |
| // nested @content. Can pass in a breakpoint name from the $breakpoints |
This file contains hidden or 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
| zmv -n 'src/(**/)(*)-provider.js' 'src/$1$2.js' | |
| mv -- src/javascripts/queue/alerts/alerts-provider.js src/javascripts/queue/alerts/alerts.js | |
| mv -- src/javascripts/queue/config/config-provider.js src/javascripts/queue/config/config.js | |
| mv -- src/javascripts/queue/flashcard-game/game-setup/flashcard-game-api-provider.js src/javascripts/queue/flashcard-game/game-setup/flashcard-game-api.js | |
| mv -- src/javascripts/queue/history/history-provider.js src/javascripts/queue/history/history.js | |
| mv -- src/javascripts/queue/http/backend-provider.js src/javascripts/queue/http/backend.js | |
| mv -- src/javascripts/queue/http/urls-provider.js src/javascripts/queue/http/urls.js | |
| mv -- src/javascripts/queue/notifications/notifications-provider.js src/javascripts/queue/notifications/notifications.js | |
| mv -- src/javascripts/queue/people/people-provider.js src/javascripts/queue/people/people.js | |
| mv -- src/javascripts/queue/quiz-game/game-logic/quiz-game-provider.js src/javascripts/queue/quiz-game/game-logic/quiz-game.js |
This file contains hidden or 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.module('rat').controller('NewCompanyModalController', | |
| class NewCompanyModalController { | |
| constructor(Backend) { | |
| angular.extend(this, { Backend }); | |
| console.log('k') | |
| this.pay() | |
| } |
This file contains hidden or 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
| // Example webpack configuration with asset fingerprinting in production. | |
| 'use strict'; | |
| var path = require('path'); | |
| var webpack = require('webpack'); | |
| var StatsPlugin = require('stats-webpack-plugin'); | |
| var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| // must match config.webpack.dev_server.port | |
| var devServerPort = 3808; |
This file contains hidden or 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 getData = (response) => response.data; | |
| let get = (...a) => $http.get(...a).then(getData); | |
| let post = (...a) => $http.post(...a).then(getData); | |
| let put = (...a) => $http.put(...a).then(getData); | |
| let del = (...a) => $http.delete(...a).then(getData); |
This file contains hidden or 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
| service('Rat', class Rat { | |
| constructor(Backend) => { | |
| this.Backend = Backend | |
| } | |
| create: () => this.backend.post() // <-- jshint doesn't know what properties `this` has, need to run it to know about the whoopsie | |
| }) |