table Word {
frequency:long;
ipa:string;
translation:[string];
}
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
-ifndef(PRINT). | |
-define(PRINT(Var), io:format("DEBUG: ~p:~p - ~p~n~n ~p~n~n", [?MODULE, ?LINE, ??Var, Var])). | |
-endif. |
{
"keys": [
"downbeat"
],
"values": [
{
"frequency": 236548,
"ipa": "daʊnˈbit",
"translation": [
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
convert -resize '368x268!' -delay 50 *.png animation.gif | |
gifsicle --colors 256 animation.gif --no-loopcount > animation2.gif | |
gifsicle -O3 --lossy=80 animation2.gif -o animation3.gif |
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
{ | |
relativeUrls: true, | |
dumpLineNumbers: 'comments' | |
} |
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
files = `ls ./svg_icons/*.svg` | |
bad_files = [] | |
files.split("\n").each {|f| | |
`rm -rf ./tmp ./tmp2` | |
`mkdir ./tmp` | |
`cp #{f} ./tmp` | |
ok = system("fontcustom compile ./tmp/ -o tmp2") | |
if $?.exitstatus != 0 | |
puts "bad file: #{f}" | |
bad_files.push f |
- 从build入手:理解项目模块依赖关系
- 从CI/CD入手:理解项目开发-测试-发布流程
- 从测试入手:单元测试、集成测试、E2E测试
- 理解宏观架构,通读技术文档和代码
- 使用debugger跟踪代码执行核心流程
- 关注细节:一切不知道的都是需要了解的
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 exec = require("child_process").execSync; | |
const devicePreferences = exec( | |
`/usr/libexec/PlistBuddy -c "Print :DevicePreferences" ~/Library/Preferences/com.apple.iphonesimulator.plist` | |
).toString(); | |
const regexp = /\s+([A-Za-z0-9-]+)\s=\sDict\s\{/g; | |
let matched = []; | |
while ((matched = regexp.exec(devicePreferences)) !== null) { | |
const simulatorUuid = matched[1]; | |
try { |
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
#!/usr/bin/env ruby | |
# backup workbench.app's AsyncStorage filesystem, so we can restore the whole redux store for development. | |
require "open3" | |
Open3.popen3("ps ax | grep workbench.app | awk '{print $5}' ") { |stdin, stdout, stderr| | |
process_name = stdout.readlines()[0] | |
base_dir = process_name.split('/data/')[0] |