This gist is in response to a RedwoodJS Discord question from Andrew (HH):
How do I create a worker with many skills?
Andrew (HH)12/11/2020
export const createWorker = ({ input }) => {
return db.worker.create({
data: {
This gist is in response to a RedwoodJS Discord question from Andrew (HH):
How do I create a worker with many skills?
Andrew (HH)12/11/2020
export const createWorker = ({ input }) => {
return db.worker.create({
data: {
At #jamstackconf 2020, Netlfiy announced a preview of Edge Handlers which will allow you to run code directly on the edge server to handle things like custom authentication patterns, localization and personalization.
| ZIP,LAT,LNG | |
| 00601,18.180555, -66.749961 | |
| 00602,18.361945, -67.175597 | |
| 00603,18.455183, -67.119887 | |
| 00606,18.158345, -66.932911 | |
| 00610,18.295366, -67.125135 | |
| 00612,18.402253, -66.711397 | |
| 00616,18.420412, -66.671979 | |
| 00617,18.445147, -66.559696 |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| require 'csv' | |
| require 'json' | |
| if ARGV.size != 2 | |
| puts 'Usage: csv_to_json input_file.csv output_file.json' | |
| puts 'This script uses the first line of the csv file as the keys for the JSON properties of the objects' | |
| exit(1) | |
| end |
| brew install optipng pngquant advancecomp | |
| Optimize the PNGs like this: | |
| pngquant --verbose --speed=1 --quality=0-100 INPUT.png -o OUPUT.png | |
| optipng -o7 FILE.png | |
| advpng -z -4 FILE.png | |
| advdef -z -4 FILE.png |
| ######################################################################### | |
| ## Get NBA Team Game Logs From the Stattleship API | |
| ######################################################################### | |
| ## install and load the stattleshipR package | |
| devtools::install_github("stattleship/stattleship-r") | |
| library(stattleshipR) | |
| ## set API token | |
| set_token('YOUR_ACCESS_TOKEN') |
| #!/bin/ruby | |
| require 'awesome_print' | |
| require 'csv' | |
| require 'dotenv' | |
| require 'httparty' | |
| require 'hashie' | |
| require 'highline' | |
| require 'link_header' |
CW Specials Pigeon ('-' * 19) Let the CW Specials Pigeon (https://twitter.com/cw_lunch_pigeon) make you a sandwich worth of being on the lunch menu at Commonwealth Cambridge http://commonwealthcambridge.com/
A Pen by David Thyresson on CodePen.
| # http://www.pragmaux.com/post/42520342525/getting-rklogconfigurebyname-working-in-rubymotion | |
| def init_restkit_logging | |
| #define RKLogLevelOff -> RKlcl_vOff | |
| #define RKLogLevelCritical -> RKlcl_vCritical | |
| #define RKLogLevelError -> RKlcl_vError | |
| #define RKLogLevelWarning -> RKlcl_vWarning | |
| #define RKLogLevelInfo -> RKlcl_vInfo | |
| #define RKLogLevelDebug -> RKlcl_vDebug | |
| #define RKLogLevelTrace -> RKlcl_vTrace |