Skip to content

Instantly share code, notes, and snippets.

@bretsko
bretsko / gist:5fc1d14309ea97bfe46ac725425d76b6
Created October 5, 2023 13:27
Cloud removal in Sentinel-2 imagery using a deep residual neural network and SAR-optical data fusion
ISPRS Journal of Photogrammetry and Remote Sensing 166 (2020) 333–346
Contents lists available at ScienceDirect
ISPRS Journal of Photogrammetry and Remote Sensing
journal homepage: www.elsevier.com/locate/isprsjprs
Cloud removal in Sentinel-2 imagery using a deep residual neural network
and SAR-optical data fusion
protocol SomeProtocol1: AnyObject {
func doSth1()
}
protocol SomeProtocol2: AnyObject {
func doSth2()
}
class Subscriber1: SomeProtocol1 {
import Foundation
let options = NSLinguisticTagger.Options.omitWhitespace.rawValue | NSLinguisticTagger.Options.joinNames.rawValue
let tagger = NSLinguisticTagger(tagSchemes: NSLinguisticTagger.availableTagSchemes(forLanguage: "en"), options: Int(options))
//let str = "Can a cat eat?"
//[Can:Other, a:Other, cat:Other, eat:Other, ?:SentenceTerminator]
//let str = "Can a human swim?"
#!/bin/bash
declare -a releases=("debian" "ubuntu" "centos")
shopt -s nullglob
shopt -s nocasematch
# Case 1
#dmesg | grep debian, ubuntu etc.
#uname -a | grep
#lsb_release -a | grep
# When I read source files I often stumble upon big headers containing copyright information and other info.
# Scrolling through multiple files with such headers is really frustrating when all I want is to read, not modify.
# So I developped this script to clear out those headers only to make convenient READING the sources.
# Of course, make a safe reading copy before proceding with this.
# It scans the first 20 lines (change to whatever you like) and deletes all the lines starting with //.
# It stops at the first encounetered hash sign, which signify the first includes.
awk -i inplace '!( NR<20 && !/^[[:blank:]]*#.*)/ && /^[[:blank:]]*($|[/].*)/)' file.c