Important:
I wrote this function to manipulate my
package.json.
This is a suboptimal solution; the correct way is via the official [npm-pkg][pkg].
@nicholaswmin
| /* Catmull-Rom interpolating splines in ES6 | |
| ---- | |
| authors: Nicholas Kyriakides (2017) & Unknown | |
| from: "A class of local interpolating splines" | |
| Catmull, Edwin; Rom, Raphael | University of Utah, 1974 | |
| Barnhill, Robert E.; Riesenfeld, Richard F. (eds.). | |
| Computer Aided Geometric Design. | |
| @summary |
| /** | |
| * 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. |
| <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> |
| // 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)", |
| #!/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 |
The key words
must,must not,required,shall,shall not
should,should not,recommended,may, andoptionalin this
document are to be interpreted as described in [RFC 2119][rfc-2119].
| # Problem set: You need to instantiate `Pages` from `Files`, | |
| # picked up using the standard `File.read` method. | |
| # | |
| # For whatever reason, the `path` is the filename. | |
| # and the `data` are the contents of the File. | |
| # ---- | |
| # Modelling: | |
| # | |
| # To decouple the persistence layer and the domain layer, | |
| # I introduce a new class `Entry` which acts as an intermediary. |
| /* | |
| UI controls bound to CSS Custom Properties for on-the-fly tweaks. | |
| Also draws an auto-updating grid. | |
| > - updates to this gist must republish a new gisthostfor.me | |
| > - only works for numeric props for now | |
| It's a native WebComponent, so it can be dropped in style guides | |
| without affecting or being affected by the environmental CSS. |