duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
# Close Xcode & the iOS Simulator | |
# http://stackoverflow.com/a/30940055 | |
# Remove any old runtimes from this directory. | |
cd /Library/Developer/CoreSimulator/Profiles/Runtimes | |
# e.g. | |
sudo rm -rf iOS\ 8.1.simruntime | |
# http://stackoverflow.com/a/11790983 | |
# Remove the download receipts for simulators you don't need anymore. |
func SineEaseInOutLinearAverage(x: Double) -> Double { | |
var easeInOutSine = ((cos(M_PI * x) - 1) / -2) | |
return (easeInOutSine + x) / 2 | |
} | |
func ShadingFunctionCreate(startColor: NSColor, _ endColor: NSColor, _ slopeFunction: (Double) -> Double) -> (UnsafePointer<CGFloat>, UnsafeMutablePointer<CGFloat>) -> Void { | |
return { inData, outData in | |
let q = CGFloat(slopeFunction(Double(inData[0]))) | |
outData[0] = startColor.redComponent + (endColor.redComponent - startColor.redComponent) * q | |
outData[1] = startColor.greenComponent + (endColor.greenComponent - startColor.greenComponent) * q |
docker inspect -f '{{ range $k, $v := .ContainerConfig.Labels -}} | |
{{ $k }}={{ $v }} | |
{{ end -}}' $cid |
"""ledger journal parser | |
We use this to parse the ledger file because we want to preserve the | |
exact format of the file including spaces, etc. It maps the parsed | |
transaction to the origin lines of the file. | |
""" | |
import ledger | |
Current as of 9front-5966.df2c352ae695
This is a collection of notes on how to complete tasks I've found myself commonly performing while using 9front.
Note that most of what is here is straight from various parts of the 9front FQA, just ordered differently. If not from the FQA, I'll provide the source under the header for the section.
As I'm in the process of learning Plan 9/9front, feel free to comment with suggestions or corrections.
bind -T root F12 \ | |
set prefix None \;\ | |
set key-table off \;\ | |
set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\ | |
set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\ | |
set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\ | |
if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\ | |
refresh-client -S \;\ | |
bind -T off F12 \ |
Tired of spamming Yubikey one-time password (OTP) codes into Slack? Here are two options to help prevent that. You can do either or both. Both require ykman
, the Yubikey CLI configuration manager. Get it with Homebrew:
brew install ykman
If you…