This file contains 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
// Holds (un-)marshalling methods to handle graphql scalars in custom ways | |
package model | |
import ( | |
"fmt" | |
"io" | |
"strings" | |
"time" | |
"github.com/99designs/gqlgen/graphql" |
This file contains 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 sheetsToArray = (data) => { | |
let i, j, ilen, jlen | |
let dataSafe = [] | |
let columnNames = [] | |
if (undefined !== data && data.length){ | |
for(let key in data[0]){ | |
if(/^gsx/.test(key)){ | |
columnNames.push(key.replace("gsx$","")); | |
} | |
} |
This file contains 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
mkdir -p generated | |
sips -Z 29 --out generated/iPhoneSettings-29x29.png sourceIcon.png | |
sips -Z 58 --out generated/[email protected] sourceIcon.png | |
sips -Z 80 --out generated/[email protected] sourceIcon.png | |
sips -Z 120 --out generated/[email protected] sourceIcon.png | |
sips -Z 29 --out generated/iPadSettings-29x29.png sourceIcon.png | |
sips -Z 58 --out generated/[email protected] sourceIcon.png | |
sips -Z 40 --out generated/iPadSpotlight-40x40.png sourceIcon.png |