I hereby claim:
- I am tankxu on github.
- I am tankxu (https://keybase.io/tankxu) on keybase.
- I have a public key whose fingerprint is D505 7C14 6BBA EA2F 1165 FD79 2049 DF9B 8E4E 378A
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
#First released as C++ program by Hiroyuki Tsutsumi as part of the free software suite “Beer” | |
#I thought porting it to Python could be both a challenge and useful | |
from sys import argv, exit, getsizeof | |
from struct import pack_into, unpack_from | |
def ceil4(n): |
I hereby claim:
To claim this, I am signing this object:
A list of sketch scripts |
方法一:
gifsicle -O3 --lossy=130 input.gif -o output.gif
lossy 的值越大压缩越严重
方法二:
convert input.gif -fuzz 15% -layers Optimize output.gif
#! /bin/bash | |
# set -e | |
for file in ./pdf/* | |
do | |
fileName=$(basename -- "$file") | |
fileName="${fileName%.*}" | |
# echo $filename | |
pdfName=./pdf/$fileName.pdf | |
outputName=./jpg/$fileName.jpg |
(* | |
https://apple.stackexchange.com/questions/184633/how-do-i-clear-all-os-x-notifications-with-1-click | |
*) | |
tell application "System Events" | |
tell process "NotificationCenter" | |
set numwins to (count windows) | |
repeat with i from numwins to 1 by -1 | |
click button "Close" of window i | |
end repeat |
const sketch = require("sketch") | |
const document = sketch.getSelectedDocument() | |
const selection = document.selectedLayers.layers | |
const Group = sketch.Group | |
const Style = sketch.Style | |
const Rectangle = sketch.Rectangle | |
const Artboard = sketch.Artboard | |
const ShapePath = sketch.ShapePath | |
const Text = sketch.Text | |
const SymbolInstance = sketch.SymbolInstance |
const tokenArray = [ | |
{ name: 'color-background-default', value: '#f5f7fa'}, | |
{ name: 'color-background-white', value: '#fff'}, | |
{ name: 'color-background-dark', value: '#202d40'}, | |
{ name: 'color-background-tooltip', value: '#202d40'}, | |
{ name: 'color-background-message-warning', value: '#fffbe5'}, | |
{ name: 'color-background-message-success', value: '#f2ffe0'}, | |
{ name: 'color-background-message-error', value: '#fff0f0'}, | |
{ name: 'color-background-message-info', value: '#e6f7ff'}, | |
{ name: 'color-background-list-row-hover', value: '#f5f7fa'}, |
const puppeteer = require("puppeteer") | |
// Set parameter | |
const urls = [ | |
'https://github.com/enterprise', | |
'https://github.com/team' | |
] | |
const pageWidth = 1600 | |
const delayTime = 5000 |