name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays
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
| export const makeEmbed = async (params: MakeEmbedParams) => { | |
| let { agent, imageUrl, imageAlt, encoding: imageFormat } = params; | |
| imageFormat = imageFormat || guessImageFormat(imageUrl) | |
| imageAlt = imageAlt || 'image' | |
| const check = fs.existsSync(imageUrl) | |
| if (!check) { | |
| const msg = `Unable to find image ${imageUrl}`; | |
| console.error(msg); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| { | |
| "meta": { | |
| "theme": "elegant" | |
| }, | |
| "basics": { | |
| "name": "David 'DC' Collier", | |
| "label": "Creative Engineer", | |
| "picture": "", | |
| "email": "dc@rikai.co", |
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
| #!/usr/bin/env bash | |
| set -x | |
| APP_NAME=$1 | |
| echo "logs for APP ${APP_NAME}" | |
| ssh ubuntu@bots.rikai-bots.com "pm2 logs author.${APP_NAME}" |
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
| ! function(a, b) { | |
| "function" == typeof define && (define.amd || define.cmd) ? define(function() { | |
| return b(a) | |
| }) : b(a, !0) | |
| }(this, function(a, b) { | |
| function c(b, c, d) { | |
| a.WeixinJSBridge ? WeixinJSBridge.invoke(b, e(c), function(a) { | |
| g(b, a, d) | |
| }) : j(b, d) | |
| } |
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
| // keywords will trigger anywhere inside a block of text | |
| const keywords = { | |
| "spanish food": "I love Paella!", | |
| "thai food": "I love TomYum soup!", | |
| // you can have multiline texts | |
| // surround it with backticks: ` ` (not single ' ' quotes ) | |
| "san francisco": `The Golden Gate City! | |
| I love san francisco! |
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
| // keywords will trigger anywhere inside a block of text | |
| const keywords = { | |
| "spanish food": "I love Paella!", | |
| "thai food": "I love TomYum soup!", | |
| // you can have multiline texts | |
| // surround it with backticks: ` ` (not single ' ' quotes ) | |
| "san francisco": `The Golden Gate City! | |
| I love san francisco! |
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
| const debug = require('debug')("test:RoomData"); | |
| // var test = require('tape'); | |
| const test = require('tape-async'); | |
| test('join regex', (t) => { | |
| let pairs = [ | |
| { | |
| msg: '"$invitee😀" joined the group chat via the QR Code shared by "$invitee😀"', |
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
| /* | |
| * File: bst.js | |
| * | |
| * A pure JavaScript implementation of a binary search tree. | |
| * | |
| */ | |
| /* | |
| * Class: BST | |
| * |
NewerOlder