This file contains hidden or 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
| sudo apt-get purge -y wolfram-engine | |
| sudo apt-get purge -y libreoffice* | |
| sudo apt-get purge -y oracle-java* | |
| sudo apt-get purge -y scratch2 | |
| sudo apt-get purge -y scratch | |
| sudo apt-get purge -y minecraft-pi | |
| sudo apt-get autoremove | |
| sudo apt-get clean |
This file contains hidden or 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
| certifi>=2018.10.15 | |
| chardet>=3.0.4 | |
| clarifai>=2.4.1 | |
| configparser>=3.5.0 | |
| EasyProcess>=0.2.3 | |
| emoji>=0.5.1 | |
| future>=0.17.1 | |
| grpcio>=1.16.1 | |
| idna>=2.7 | |
| jsonschema>=2.6.0 |
This file contains hidden or 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
| func convertDegreesToSemicircle (degrees: Double) -> Int32 { | |
| return Int32(degrees * (pow(2.0, 31.0) / 180)) | |
| } |
This file contains hidden or 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
| for (key, value) in UserDefaults.standard.dictionaryRepresentation() { | |
| print("\(key) = \(value) \n") | |
| } |
This file contains hidden or 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
| sudo su | |
| echo "LC_ALL=en_US.UTF-8" >> /etc/environment | |
| echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen | |
| echo "LANG=en_US.UTF-8" > /etc/locale.conf | |
| locale-gen en_US.UTF-8 |
This file contains hidden or 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
| function FindProxyForURL(url, host) { | |
| return "SOCKS 10.42.0.1:8889"; | |
| } |
This file contains hidden or 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
| let origImage = UIImage(named: "imageName"); | |
| let tintedImage = origImage?.imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate) | |
| btn.setImage(tintedImage, forState: .Normal) | |
| btn.tintColor = UIColor.redColor() |