- Proposal: SE-NNNN
- Authors: Dmitry Lobanov
- Review Manager: TBD
- Status: Awaiting Review
During the review process, add the following fields as needed:
- Implementation: apple/swift#NNNNN
name: Awesome App | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the develop branch | |
push: | |
branches: [ master ] | |
# pull_request: | |
# branches: [ develop ] | |
jobs: | |
name: Build master |
find . -name '*.swift' | perl -ple 's/ /\\ /g' | xargs perl -i -lpe 's/^\t/ /g' |
find Core -name '*.h' | perl -ne 'chomp; my $f = (split("\/"))[-1]; my $s = qq(mv $_ Core/Include/$f); print $s, "\n"; print qx($s);' |
During the review process, add the following fields as needed:
#!/usr/bin/ruby | |
# This script rename blog-post to jekyll conventions naming. | |
# Suppose, that you have a file with metadata content. | |
# File.txt: | |
# --- | |
# title:'Wow, title. Rename blog-post.' | |
# date:26.01.2018 12:31:55 GMT+3 | |
# --- | |
# ruby script.rb -i File.txt |
# Space describe the dependencies between coordinates | |
class Space | |
attr_accessor :basis, :normalized_basis | |
def add(lhs, rhs) | |
# pp "left -> #{lhs}" | |
# pp "right -> #{rhs}" | |
max = [lhs.count, rhs.count].max | |
result = Array.new(max, 0).each_with_index.map { |e, i| | |
# puts "left -> #{lhs[i]} right -> #{rhs[i]} e -> #{e}" | |
e += lhs[i] if i < lhs.count |
date +"%Y-%m-%d %H:%M:%S %z" | pbcopy |
ls Resources/*.png | perl -lne '$old = $_; s/(\@\w+)/_inverted$1/; $_ = qx(basename $_); chomp; $_ = qq(Results/$_); $s = qq(convert $old -fuzz 10% -fill none +opaque white $_); print $s; print qx($s);' | |
# 1. details: | |
# 2. take png images from directory Resources | |
# 3. append "_inverted" before \@ symbol. | |
# 4. convert $old -fuzz 10% -fill none +opaque white $new | |
# 5. -fuzz add threshold in 10% for white color. Which are NOT white in 10% thresholds would be removed. | |
# 6. -fill none should fill color with transparent color | |
# 7. +opaque matches color to be replaced. plus add inversion. So, +opaque matches these colors that SHOULD NOT be replaced. |
/* | |
For example, you use Core Data sqlite. | |
It is necessary, because sqlite database stores data in single file. | |
Whole database is single file. | |
Now you have two options. | |
1. Delete all data from all tables | |
2. Delete database sqlite file | |
Second option is clean but complex. |