For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
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 UIKit | |
protocol StoryboardInstantiable: NSObjectProtocol { | |
associatedtype MyType | |
static var defaultFileName: String { get } | |
static func instantiateViewController(_ bundle: Bundle?) -> MyType | |
} | |
extension StoryboardInstantiable where Self: UIViewController { | |
static var defaultFileName: String { |
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 Float readUsage() { | |
try { | |
RandomAccessFile reader = new RandomAccessFile("/proc/stat", "r"); | |
String load = reader.readLine(); | |
String[] toks = load.split(" "); | |
long idle1 = Long.parseLong(toks[5]); | |
long cpu1 = Long.parseLong(toks[2]) + Long.parseLong(toks[3]) + Long.parseLong(toks[4]) | |
+ Long.parseLong(toks[6]) + Long.parseLong(toks[7]) + Long.parseLong(toks[8]); |
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
{ | |
"dart.flutterSdkPath": ".fvm/flutter_sdk", | |
// Remove .fvm files from search | |
"search.exclude": { | |
"**/.fvm": true | |
}, | |
// Remove from file watching | |
"files.watcherExclude": { | |
"**/.fvm": true | |
} |
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
# Miscellaneous | |
*.class | |
*.log | |
*.pyc | |
*.swp | |
.DS_Store | |
.atom/ | |
.buildlog/ | |
.history | |
.svn/ |