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
#!/bin/bash | |
# Conventional Commits "commit-msg" git hook # | |
# | |
# Installs a "Conventional Commit" commit-msg Git hook | |
# See more: https://www.conventionalcommits.org/ | |
# | |
# Usage: | |
# - Copy this file to your repo | |
# - Run it once: bash install-cc-hook.sh |
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
#!/usr/bin/env | |
####################################### | |
# deleteJSONKey() $key $json_file_path | |
# | |
# Deletes a property from a JSON file, | |
# taking care of dangling commas if needed | |
# | |
# Usage example: | |
# |
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> |
NewerOlder