~ $ type mp
mp is a function with definition
function mp
mpv --input-ipc-server=/tmp/mpvsocket --shuffle --no-video /home/xk/Music/
end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then | |
exec $(tmux a -t base || tmux new -s base) | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { writeFileSync } from "fs"; | |
const numberOfSongs = process.argv.slice(2).length; | |
const randomFile = process.argv | |
.slice(2) | |
.map((x) => ' -i "' + x + '" \\\n') | |
.join(""); | |
function rndInt(min: number, max: number) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.config/mpv/input.conf | |
- af toggle "lavfi=[pan=1c|c0=0.5*c0+0.5*c1]" ; show-text "Audio mix set to Mono" | |
= af toggle "lavfi=[alimiter=10:1:1:5:8000]" ; show-text "Audio limiter enabled" | |
Ctrl+= af toggle "acompressor=ratio=4,loudnorm" ; show-text "dynamic range compression enabled" | |
Ctrl+0 af toggle "pan=stereo|FL=FC+0.30*FL+0.30*FLC+0.30*BL+0.30*SL+0.60*LFE|FR=FC+0.30*FR+0.30*FRC+0.30*BR+0.30*SR+0.60*LFE" ; show-text "Audio night-mode enabled" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xpathApply(doc, "//*", xmlAttrs) | |
xml_find_all(order1xml, "//*") | |
xml_attrs(xml_find_all(order1xml, "//*")[2]) | |
xml_find_all(xml_doc, xpath = "/response/orderstatus/order/fixmlmessage") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MIT License | |
// Jacob Chapman | |
var oauth = require("oauth"); | |
// Setup key/secret for authentication and API endpoint URL | |
var configuration = { | |
api_url: "https://api.tradeking.com/v1", | |
consumer_key: "################", | |
consumer_secret: "################", | |
access_token: "################", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(httr) | |
require(RJSONIO) | |
require(glue) | |
require(xml2) | |
require(data.table) | |
require(tibble) | |
orders <- jsonlite::fromJSON((credentials$OAuthRequest("https://api.tradeking.com/v1/accounts/xxxxxxxx/orders.json")))$response$orderstatus$order |