Skip to content

Instantly share code, notes, and snippets.

View RupertBarrow's full-sized avatar

Rupert Barrow RupertBarrow

View GitHub Profile
import cpx from 'cpx';
import { log } from 'console';
// Copy the SLDS resources to the assets dir
cpx.copy('../../node_modules/@salesforce-ux/design-system/assets/**/*', 'src/assets', () => {
log(`Done copying SLDS resources`);
});
@msrivastav13
msrivastav13 / tasks.json
Last active October 30, 2020 20:00
Run Salesforce CLI scanner on current file
{
"version": "2.0.0",
"tasks": [
{
"label": "SFDX: Run Security Scan on Current File",
"type": "shell",
"command": "sfdx",
"args": [
"scanner:run",
"-t",
@tkers
tkers / streaming.js
Last active September 29, 2020 05:36
#!/usr/bin/env node
//
// streaming.js
//
// Stream data from Tesla's streaming API to either a flat file or a MongoDB database
//
var request = require("request");
var teslams = require("../teslams.js");
var fs = require("fs");
var util = require("util");
@isaacplmann
isaacplmann / diagram.css
Last active January 3, 2022 07:19
D3 Diagram with left/right aligned links
#chart text {
fill: white;
font: 10px Helvetica;
text-anchor: end;
}
line {
/*stroke: black;*/
}
line:first-child.notify,
line:first-child.precheck,
@olih
olih / jq-cheetsheet.md
Last active September 21, 2024 00:05
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq