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
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 |
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
protocol SomeProtocol1: AnyObject { | |
func doSth1() | |
} | |
protocol SomeProtocol2: AnyObject { | |
func doSth2() | |
} | |
class Subscriber1: SomeProtocol1 { |
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
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?" |
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
#!/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 |
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
# 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 |