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
input[type='checkbox'] { | |
opacity: 0; | |
} | |
input[type='checkbox'] + label { | |
font: auto; | |
position: absolute; | |
// top: 25px; | |
display: flex; | |
align-items: center; |
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
private double calculateAverage(ArrayList<Integer> list) { | |
double sum = 0; | |
for (Integer elem : list) { | |
sum += elem; | |
} | |
sum = sum / list.size(); | |
return sum; | |
} |
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 android.os.Handler | |
//**/ | |
/ * This is a helper function used for timing, written with infix functions that make it/ | |
/ * possible to write a timer resembling natural language. It contains both seconds and milliseconds/ | |
/ * for convenience./ | |
/ */ | |
/ * Usage:/ | |
/ * Do after 100 seconds {}/ | |
/ * Do after aHundred milliseconds {}/ |
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
val hasPermissions: Boolean | |
get() { | |
return ArePermissionsEnabled fromList stupidList | |
} | |
//**/ | |
/ * This is a helper class used for checking permissions/ | |
/ */ |
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
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' | |
killall Dock |
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
DispatchQueue.main.asyncAfter(deadline: .now() + 0.9, execute: { | |
self.self.doScan() | |
}) |