I hereby claim:
- I am d4rekanguok on github.
- I am d4rek (https://keybase.io/d4rek) on keybase.
- I have a public key whose fingerprint is 1973 C35F 82EF DC52 898E 644C 5742 2A02 DDA9 A54B
To claim this, I am signing this object:
const { src } = require('gulp') | |
const fs = require('fs') | |
const path = require('path') | |
const through = require('through2') | |
const hashsum = require('gulp-hashsum') | |
const modifyJson = ({ fileName, src, property }) => through.obj((file, _, cb) => { | |
const { name } = path.parse(file.path) | |
if (name !== fileName) return cb(null, file) |
const path = require('path'); | |
const pathToInlineSvg = path.resolve(__dirname, '../resources/icons'); | |
module.exports = (_, _, defaultConfig) => { | |
const rules = defaultConfig.module.rules; | |
// modify storybook's file-loader rule to avoid conflicts with svgr | |
const fileLoaderRule = rules.find(rule => rule.test.test('.svg')); | |
fileLoaderRule.exclude = pathToInlineSvg; |
const sketch = require('sketch/dom'); | |
const UI = require('sketch/ui'); | |
const document = sketch.getSelectedDocument(); | |
const selection = document.selectedLayers.layers.slice(); | |
const resize = (layer, options = {}) => { | |
const { scaleX, scaleY, originX, originY } = Object.assign({ | |
scaleX: 1, | |
scaleY: 1, | |
originX: 0, |
var sketch = require('sketch/dom'); | |
var document = sketch.getSelectedDocument(); | |
var selection = document.selectedLayers.layers.slice(); | |
selection | |
.sort((l1, l2) => { | |
var l1x = l1.frame.x, | |
l1y = l1.frame.y, | |
l2x = l2.frame.x, | |
l2y = l2.frame.y; |
Layer::chain = (options...) -> | |
layer = @ | |
options.reduce (promise, option) -> | |
promise.then () -> | |
new Promise (resolve) -> | |
layer.animate option | |
layer.once Events.AnimationEnd, () -> | |
resolve() | |
, Promise.resolve() |
#!/bin/bash | |
# sh /Applications/Sketch.app/Contents/Resources/sketchtool/install.sh | |
# npm install -g svgo s2v | |
if [ -z "$1" ]; then | |
SOURCEDIR=. | |
else | |
SOURCEDIR=$1 | |
fi |
I hereby claim:
To claim this, I am signing this object: