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
/* | |
* File -> Stylesheet and copy this | |
* - Makes everything darker | |
* - Mutes distracting labels | |
*/ | |
.bg() { | |
background-color: #222; | |
background: #222; | |
} |
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
// Activate the 'Default Dark' theme and then customise it | |
// Drop this in the editor | |
{ | |
"extends": "Default Dark.sublime-theme", | |
"variables": { | |
"vcs_untracked": "var(--greenish)", | |
"vcs_modified": "var(--orangish)", | |
"vcs_missing": "var(--redish)", | |
"vcs_staged": "var(--bluish)", | |
"vcs_added": "var(--greenish)", |
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
/* | |
* Your Stylesheet | |
* | |
* This stylesheet is loaded when Pulsar starts up and is reloaded automatically | |
* when it is changed and saved. | |
* | |
* Add your own CSS or Less to fully customize Pulsar. | |
* If you are unfamiliar with Less, you can read more about it here: | |
* http://lesscss.org | |
*/ |
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
const storedToken = null | |
module.exports = () => { | |
if (storedToken) | |
return storedToken | |
return fetch('./login') | |
.then(token => { | |
storedToken = token | |
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
{ | |
aircraft: [ | |
// aircraft 1 | |
{ | |
id: 'LK-122', // registration number | |
item: sampleAircraftSVG, // aircraft SVG | |
// list of movements | |
movements: [ | |
// movement 1 | |
{ |
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
language: node_js | |
sudo: required | |
before_script: | |
# @next might not be needed in the future since polymer-cli should have | |
# been updated | |
- npm install -g bower polymer-cli@next | |
# Chrome 58 has a WebComponent bug | |
- sudo mv /usr/bin/google-chrome /usr/bin/google-chrome-old | |
- sudo mv /usr/bin/google-chrome-beta /usr/bin/google-chrome | |
node_js: stable |
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
/* | |
* Preservation of implicit type in interpolated string (ES2015) | |
* | |
* Authors: | |
* - Nik Kyriakides, @nicholaswmin, nik.kyriakides@gmail.com | |
* | |
* MIT Licensed | |
*/ | |
const aNum = 3; |
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
<base href="https://polygit.org/components/"> | |
<script src="webcomponentsjs/webcomponents-lite.min.js"></script> | |
<link href="polymer/polymer.html" rel="import"> | |
<link href="paper-input/paper-input.html" rel="import"> | |
<dom-module id="x-example"> | |
<template> | |
<paper-input value="{{name::input}}"></paper-input> | |
<h4>{{name}}</h4> |
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
/** | |
* Clusters a number of Paper Elements as Paper Groups. | |
* Clustering is based on distance between elements, | |
* using K-means clustering. | |
* - This method DOES NOT preserve z-order of items, so use with caution | |
* | |
* | |
* - Dependent on clusterfck.js. | |
* See: https://github.com/NathanEpstein/clusters | |
* and download browser .js file. |
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
/** | |
* Interpolates a Catmull-Rom Spline through a series of x/y points | |
* Converts the CR Spline to Cubic Beziers for use with SVG items | |
* | |
* If 'alpha' is 0.5 then the 'Centripetal' variant is used | |
* If 'alpha' is 1 then the 'Chordal' variant is used | |
* | |
* | |
* @param {Array} data - Array of points, each point in object literal holding x/y values | |
* @return {String} d - SVG string with cubic bezier curves representing the Catmull-Rom Spline |