Regular expression to match a line that doesn't contain a word?
^((?!someword).)*$
# https://www.youtube.com/watch?v=Ub4-nG09PFw | |
# https://gist.github.com/amitabhadey/37af83a84d8c372a9f02372e6d5f6732#file-dijkstraalgorithm-py-L85 | |
class Graph: | |
def dijkstra(self, graph, start, goal): | |
shortest_dist = {} | |
predecessor = {} | |
unvisited = graph.copy() # copy graph | |
track_path = [] | |
for node in unvisited: |
GET _cat/indices?v | |
GET _cat/indices?v&index=index_name-* | |
GET _cat/allocation?v | |
GET _cat/nodes?v&h=name,disk*,ram* | |
GET _cluster/stats?human&pretty | |
GET /index_name-2019.09.*/_search | |
{ | |
"size" : 0, |
select | |
SUBSTRING_INDEX(mail_addr,'@',-1) as mail_domain, | |
count(1) as mail_count | |
from mail_table | |
group by SUBSTRING_INDEX(mail_addr,'@',-1) | |
order by mail_count desc; |
on waitForWin(check_name, time_out) | |
set wait_time to 0 | |
tell application "System Events" | |
repeat while (wait_time < time_out) | |
set frontApp to first application process whose frontmost is true | |
set frontAppName to name of frontApp | |
tell process frontAppName | |
tell (1st window whose value of attribute "AXMain" is true) | |
set windowTitle to value of attribute "AXTitle" |
# sales_report.csv -> 20190730_sales.csv, 20190729_sales.csv | |
sales_date, price, item_id, item_name,.... | |
"20190730", 100, A01, "sample item xxx" | |
"20190729", 200, B01, "sample item yyy" | |
# OSX | |
awk -F, '{ print >>(substr($1, 2, 8) "_sales.csv");close(substr($1,2,8)"_sales.csv")}' sales_report.csv |
tell application "Visual Studio Code" | |
delay 1 | |
tell application "System Events" | |
keystroke "`" using control down | |
delay 1 | |
keystroke "sudo some command" | |
keystroke return | |
keystroke "password" | |
keystroke return | |
end tell |
Regular expression to match a line that doesn't contain a word?
^((?!someword).)*$
vlist = document.getElementsByClassName("yt-simple-endpoint style-scope ytd-playlist-video-renderer"); | |
for(i=0;i<vlist.length;i++) { | |
console.log("https://www.youtube.com" + vlist[i].getAttribute("href")); | |
} |
Kinesis Freestyle (Terrible key switches. Mushy and un-lovable)
Kinesis Freestyle Edge (Traditional layout with too many keys, mech switches, proably too big to be tented easily/properly)
Matias Ergo Pro (Looks pretty great. Have not tried.)
ErgoDox Kit (Currently, my everyday keyboard. Can buy pre-assembled on eBay.)
ErgoDox EZ (Prolly the best option for most people.)
# 容量をくっているトップ20を表示(ファイル) | |
du -mah | sort -rn | head -20 | |
# 容量をくっているトップ20を表示(ディレクトリのみ) | |
du -mh | sort -rn | head -20 |