in ~/.config/fish/functions/fish_prompt.fish
replace
set suffix "$"
with
DROP TABLE IF EXISTS test_table; | |
CREATE TABLE test_table( | |
id bigserial NOT NULL, | |
latitude double precision, | |
longitude double precision, | |
geom geometry, | |
geog geography, | |
updated_ts double precision, | |
CONSTRAINT test_table_unique_key UNIQUE (id) | |
); |
### =delete overlapping buffers= ### | |
options("scipen"=100) | |
require(varhandle) | |
require(data.table) | |
require(tidyr) | |
require(tidyverse) | |
require(dplyr) | |
require(DBI) |
#!/bin/bash | |
# create new user | |
adduser -m --disabled-password --gecos "" bluehat | |
usermod -aG sudo bluehat | |
#usermod -aG wheel bluehat | |
echo "bluehat ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | |
su bluehat | |
mkdir ~/.ssh | |
touch ~/.ssh/authorized_keys | |
#generate your RSA keys: ssh-keygen -t rsa -b 4096 -f cinsects |
UPDATE wof | |
SET body = substring(body, '(?<=geometry": ).*$'); |
function fish_greeting | |
cat /proc/loadavg | cut -d' ' -f 2 | |
shuf -n 4 ~/mdrive/notes/(ls -p ~/mdrive/notes/ |grep -v / | shuf -n 1) | cowsay -W 52 -f tux | |
end |
import Html | |
import Html.Attributes as Attributes | |
--Tags | |
Html.a [ Attributes.href "http://www-db.stanford.edu/~evtimov/midas/demos.html", Attributes.target "_blank" ] [ text "Open in a new window!" ] | |
<a href="http://www-db.stanford.edu/~evtimov/midas/demos.html" target="_blank">Hello World!</a> | |
largestDivisible : Maybe Int | |
largestDivisible divideBy maxInt = | |
let | |
p x = x % divideBy == 0 | |
in | |
List.head (List.filter p List.reverse (List.range 0 maxInt)) |
X | Y | id | |
---|---|---|---|
12.5132783 | 41.9042869 | 246571139 | |
12.5162428 | 41.9047904 | 246571141 | |
12.5008587 | 41.9031875 | 246571142 | |
12.5147289 | 41.8882923 | 246572369 | |
12.5133898 | 41.8896867 | 246572370 | |
12.5055161 | 41.8938436 | 246572372 | |
12.5055930 | 41.8939226 | 246572374 | |
12.5031139 | 41.8953371 | 246574144 | |
12.5030480 | 41.8952766 | 246574145 |
[ | |
{ | |
"key": "ctrl+tab", | |
"command": "workbench.action.quickOpenPreviousRecentlyUsedEditor" | |
}, | |
{ | |
"key": "ctrl+tab", | |
"command": "workbench.action.acceptSelectedQuickOpenItem", | |
"when": "inEditorsPicker && inQuickOpen" | |
}, |
in ~/.config/fish/functions/fish_prompt.fish
replace
set suffix "$"
with