/etc/network/interfaces
vs https://wiki.debian.org/SystemdNetworkd
Enable memory swap limits:
# ... | |
import numpy as np | |
def extractMainLobe(window, M): | |
# ... | |
return np.zeros(M) | |
if __name__ == '__main__': | |
# The check above ensures the following code only runs if we run this |
#!/bin/bash | |
GVIM=/c/Windows/gvim.bat | |
args=() | |
TEMP="$(cygpath -w "$ORIGINAL_TEMP")" | |
for arg in "$@"; do | |
if [[ $arg == /* ]]; then | |
args+="$(cygpath -w "$arg")" |
package main | |
import ( | |
"errors" | |
"fmt" | |
"golang.org/x/net/html" | |
"io" | |
"net/http" | |
"net/url" | |
"os" |
/etc/network/interfaces
vs https://wiki.debian.org/SystemdNetworkd
Enable memory swap limits:
if has("win32") | |
set guifont=Consolas:h10 | |
set guioptions=aegimrL | |
else | |
set guifont=Monospace\ 11 | |
set guioptions=imrL | |
endif | |
set showtabline=2 | |
set columns=85 |
[caps]>[escape] | |
[lalt]>[kpshft] | |
[rwin]>[kpshft] | |
[home]>[lwin] | |
[pup]>[rwin] | |
[intl-\]>[caps] | |
[end]>[lalt] | |
[pdown]>[ralt] | |
[kp-y]>[pause] | |
[kp-caps]>[escape] |
set ts=8 | |
set sw=2 | |
set sts=2 | |
set et | |
set cc=80,120 | |
set list | |
set mouse=a | |
if has('win32') || has('win64') |
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*:pvrThinkPad* | |
KEYBOARD_KEY_b7=rightmeta | |
KEYBOARD_KEY_3a=esc | |
KEYBOARD_KEY_01=capslock |
This hidutil command remaps the following keys on the internal MacBook Pro keyboard:
I use these remappings because I spend most of my time working in the terminal or in Emacs, so having an extra command key is less important to me than having symmetric left/right ctrl and option keys.
To use com.local.KeyRemapping.plist
, place it in ~/Library/LaunchAgents/
import ArgumentParser | |
import Foundation | |
struct MyStruct: Codable { | |
var id: Int = 0 | |
var name: String = "" | |
var port: Int? | |
} | |
let myStructKey = "myStructs" |