- Use TypeScript for all new code
- Follow functional programming principles where possible
- Prefer interfaces for data structures and type definitions
- Prefer immutable data (const, readonly)
- Use optional chaining (?.) and nullish coalescing (??) operators
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
// Dependencies : | |
// npm i download jsdom walk replaceall | |
const path = require('path') | |
const fsp = require('fs/promises') | |
const download = require('download') | |
const walk = require('walk') | |
const replaceAll = require("replaceall"); | |
const { JSDOM } = require('jsdom') |
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
// select the 1 or more rows to set the active range | |
function cellCSVSplitToRows() { | |
const sheet = SpreadsheetApp.getActiveSheet() | |
const aRange = sheet.getActiveRange() | |
let rowTracker = 0 | |
function setFeatures(range) { | |
const startIndex = range.getRowIndex() | |
// target the column with CSV content here | |
const fColIndex = 3 |
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
'use strict'; | |
/** | |
* JSON prettifier | |
* | |
* as a general prettifier `node jsonpr.js '{"this":"is","json":"prettifier"}'` | |
* as a stream reader `echo '{"some":"JSON"}' | node jsonpr.js` | |
*/ | |
process.stdin.setEncoding('utf8'); | |
let stdin = process.openStdin(); | |
let json = process.argv[2]; |
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
Comments = new Mongo.Collection('comments'); | |
if (Meteor.isClient) { | |
Meteor.subscribe('allComments'); | |
Meteor.call("callMe", "Rob", function(err, result) { | |
if (err) throw err; | |
console.log('result: ' + result); | |
}); |
Shows how GreenSock's DrawSVGPlugin can animate the strokes on , , , and . It can also do and . Learn more at www.greensock.com/drawSVG
Forked from GreenSock's Pen SVG-Stroke Animation.
A Pen by Captain Anonymous on CodePen.
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
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-pages/core-pages.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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
Meteor managed packages reside in: | |
~/.meteor/packages | |
NPM packages managed in: | |
~/.npm | |
Place private package in folder i.e. | |
~/code/packages | |
export a path in .bash_profile for meteor |