Skip to content

Instantly share code, notes, and snippets.

View edouard-claude's full-sized avatar
🦄
GraphSQRL = GraphQL + SQL + Go

Edouard CLAUDE edouard-claude

🦄
GraphSQRL = GraphQL + SQL + Go
View GitHub Profile
@edouard-claude
edouard-claude / marshal.go
Created October 20, 2021 09:20 — forked from gigo1980/marshal.go
gqlgen ISO8601
// Holds (un-)marshalling methods to handle graphql scalars in custom ways
package model
import (
"fmt"
"io"
"strings"
"time"
"github.com/99designs/gqlgen/graphql"
@edouard-claude
edouard-claude / sheetsToArray
Last active April 17, 2019 11:10
example for Medium post
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$",""));
}
}
mkdir -p generated
sips -Z 29 --out generated/iPhoneSettings-29x29.png sourceIcon.png
sips -Z 58 --out generated/iPhoneSettings-29x29@2x.png sourceIcon.png
sips -Z 80 --out generated/iPhoneSpotlight-40x40@2x.png sourceIcon.png
sips -Z 120 --out generated/iPhoneApp-60x60@2x.png sourceIcon.png
sips -Z 29 --out generated/iPadSettings-29x29.png sourceIcon.png
sips -Z 58 --out generated/iPadSettings-29x29@2x.png sourceIcon.png
sips -Z 40 --out generated/iPadSpotlight-40x40.png sourceIcon.png