brew install rbenv ruby-build
rbenv init # Or add eval "$(rbenv init - zsh)" to rc file
rbenv install 2.7.2
echo 2.7.2 > .ruby-version
gem inst ffi -- --disable-system-libffi
bundle install
bundle exec jekyll serve
This file contains hidden or 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
| # TAGS speparated by vertical line | | |
| OPTIMIZE_TAGS="OPTIMIZE:|TEST:" | |
| find "${SRCROOT}/" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($OPTIMIZE_TAGS).*\$" | wc -l | xargs -I{} echo "warning: 🔆 {} Optimize | Test Items" | |
| NEXTUP_TAGS="NEXTUP:" | |
| find "${SRCROOT}/" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($NEXTUP_TAGS).*\$" | wc -l | xargs -I{} echo "warning: 🗃️ {} NextUp Tasks" | |
| FIXME_TAGS="FIXME:" |
This file contains hidden or 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
| @import Photos; | |
| [PHPhotoLibrary requestAuthorizationForAccessLevel:PHAccessLevelReadWrite handler:^(PHAuthorizationStatus status) { | |
| NSLog(@"PHAuthorizationStatus: %ld", status); | |
| PHFetchOptions *fetchOptions = [[PHFetchOptions alloc] init]; | |
| fetchOptions.includeHiddenAssets = YES; | |
| fetchOptions.includeAllBurstAssets = YES; | |
| PHFetchResult<PHAsset *> *result = [PHAsset fetchAssetsWithOptions:fetchOptions]; |
This file contains hidden or 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
| import Foundation | |
| import UIKit | |
| struct DropShadowStyle { | |
| var color: UIColor = .black | |
| var alpha: Float = 0.1 | |
| let x: CGFloat | |
| let y: CGFloat | |
| let blur: CGFloat | |
| let spread: CGFloat |
python -m venv .venv
source .venv/bin/activate
pip install m3u8downloader
downloadm3u8 -o foo.mp4 spaces_m3u8_url
ffmpeg -i foo.mp4 -b:a 192K -vn bar.mp3
This file contains hidden or 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
| console.log('Select Layer Then Run Script.'); | |
| var sketch = require('sketch'); | |
| var UI = require('sketch/ui'); | |
| var document = sketch.getSelectedDocument(); | |
| var selectedLayers = document.selectedLayers; | |
| var selectedCount = selectedLayers.length; |
This file contains hidden or 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
| class HorizontalPickerView: UIView, UIPickerViewDataSource, UIPickerViewDelegate { | |
| let types = ["不循环","每天","每周","每月","每年"] | |
| let sliderControl: UIPickerView = { | |
| let view = UIPickerView() | |
| view.transform = CGAffineTransform(rotationAngle: -90 * (.pi / 180)) | |
| return view | |
| }() | |
| init() { |
This file contains hidden or 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
| # Error Text | |
| ### 4.2 段落 | |
| 不使用 Markdown 标记(以下简称标记)的称之为段落。Base 0 段落间距未设置,因此推荐你通过换行来区分不同的段落,段落的前后要有空行,所谓的空行是指没有文字内容。若想在段内强制换行的方式是使用**两个以上**空格加上回车(引用中换行省略回车)。 | |
| ### 4.3 引用 | |
| 在段落的每行或者只在第一行使用符号`>`,就可以创建一个饮用,如: |
NewerOlder