sudo apt install --reinstall python3
sudo apt install --reinstall python
`` sudo update-alternatives --remove-all python
set -e | |
defaults write com.apple.dt.Xcode DVTTextEditorTrimTrailingWhitespace -bool YES | |
defaults write com.apple.dt.Xcode DVTTextEditorTrimWhitespaceOnlyLines -bool YES | |
defaults write com.apple.dt.Xcode DVTTextIndentTabWidth -int 2 | |
defaults write com.apple.dt.Xcode DVTTextIndentWidth -int 2 | |
defaults write com.apple.dt.Xcode DVTTextPageGuideLocation -int 100 |
;;; Directory Local Variables | |
;;; For more information see (info "(emacs) Directory Variables") | |
;;; Commentary: | |
;; .dir-locals.el for use with the Emacs Eglot LSP client and | |
;; python-lsp-server (pylsp) LSP server v1.10.0. | |
;; Default values in accordance with | |
;; https://github.com/python-lsp/python-lsp-server/blob/v1.10.0/CONFIGURATION.md |
sudo apt install --reinstall python3
sudo apt install --reinstall python
`` sudo update-alternatives --remove-all python
Scalable Vector Extensions (SVE) is ARM’s latest SIMD extension to their instruction set, which was announced back in 2016. A follow-up SVE2 extension was announced in 2019, designed to incorporate all functionality from ARM’s current primary SIMD extension, NEON (aka ASIMD).
Despite being announced 5 years ago, there is currently no generally available CPU which supports any form of SVE (which excludes the [Fugaku supercomputer](https://www.fujitsu.com/global/about/innovation/
------------------------------------------------------------------------------------------- | |
# Auth: Christopher Stone | |
# dCre: 2018/11/30 16:19 | |
# dMod: 2018/11/30 16:52 | |
# Appl: AppleScriptObjC | |
# Task: List a Given Folder as type Furl, type Path, or by Name. | |
# Libs: None | |
# Osax: None | |
# Tags: @Applescript, @Script, @ASObjC, @List, @Folder, @Furl, @Path, @Name | |
------------------------------------------------------------------------------------------- |
// YOSEMITE Javascript for Applications JXA | |
// Capture the main result links from a Google search page as Markdown | |
// ( Using XPath to search for <a> elements which are children | |
// of elements with class 'r' | |
var resultLinksMD = function () { | |
var r = document.evaluate( | |
"//*[@class='r']/a", | |
document, null, 0, null | |
), |
<?php | |
/** | |
* Lightens/darkens a given colour (hex format), returning the altered colour in hex format.7 | |
* @param str $hex Colour as hexadecimal (with or without hash); | |
* @percent float $percent Decimal ( 0.2 = lighten by 20%(), -0.4 = darken by 40%() ) | |
* @return str Lightened/Darkend colour as hexadecimal (with hash); | |
*/ | |
function color_luminance( $hex, $percent ) { | |
// validate hex string |
To me, legacy code is simply code without tests. I’ve gotten some grief for this definition. What do tests have to do with whether code is bad? To me, the answer is straightforward, and it is a point that I elaborate throughout the book: Code without tests is bad code. It doesn’t matter how well written it is; it doesn’t matter how pretty or object-oriented or well-encapsulated it is. With tests, we can change the behavior of our code quickly and verifiably. Without them, we really don’t know if our code is getting better or worse.
Four Reasons to Change Software: For simplicity’s sake, let’s look at four primary reasons to change software.
Code | Terminology | Kind | Usage | Line | |
---|---|---|---|---|---|
$scr | scripting additions folder | Property of class: domain | System Events : Disk-Folder-File Suite | 1 | |
%doc | music folder | Property of class: user domain object | System Events : Disk-Folder-File Suite | 2 | |
µdoc | music folder | Enumeration | Standard Additions : File Commands | 3 | |
ƒhlp | help | Enumeration | Standard Additions : File Commands | 4 | |
ƒhlp | help folder | Enumeration | Standard Additions : File Commands | 5 | |
ƒlib | shared libraries | Enumeration | Standard Additions : File Commands | 6 | |
ƒlib | shared libraries folder | Enumeration | Standard Additions : File Commands | 7 | |
ƒmod | modem scripts | Enumeration | Standard Additions : File Commands | 8 | |
ƒmod | modem scripts folder | Enumeration | Standard Additions : File Commands | 9 |