-i
- ignore errors
-c
- continue
-t
- use video title as file name
--extract-audio
- extract audio track
const input = "a.com,b.com c.com\nwow.com"; | |
const outputSet = splitByMultipleSeparators(input); | |
const outputArray = Array.from(outputSet); // ['a.com', 'b.com', 'c.com', 'wow.com'] | |
function splitByMultipleSeparators(rawValue, separators = [",", " ", "\n"], uniqueTokens = new Set()) { | |
const separator = separators.pop(); | |
if (!separator) | |
return uniqueTokens; |
const fetch = require('node-fetch'); | |
fetch('https://pselookup.vrymel.com/api/stocks') | |
.then(response => response.json()) | |
.then(data => console.log(data)); |
import os | |
import boto3 | |
from botocore.exceptions import ClientError | |
import requests | |
import arrow | |
import csv | |
from time import sleep | |
from decimal import * | |
BASE_URL = os.environ['PSE_BASE_URL'] |
; The official HD AI | |
; An Artificial Intelligence Script written by Archon and Promiskuitiv | |
; Get in contact with Promiskuitiv by sending a mail to [email protected] | |
; List of taunts it reacts to: | |
; Standard taunts. | |
; 33 - Stop slinging resources. If slinging is requested early and is immediately canceled it may mess up the strategy. | |
; 38 - Sling Resources. Human player only, stops any unit production except for civilian units. |
query = from i in Intersection, | |
where: i.lat >= 100.0 or i.lat <= 200.0, | |
where: i.lng >= 200.0 or i.lng <= 400.0, | |
where: fragment("acos(sin(?) * sin(lat) + cos(?) * cos(lat) * cos(lng - (?))) <= ?", 1, 2, 3, 4) |
tell application "System Preferences" | |
activate | |
reveal pane "Mouse" | |
end tell | |
delay 0.5 | |
tell application "System Events" to tell process "System Preferences" | |
click checkbox "Scroll direction: Natural" of window "Mouse" | |
end tell |
{ | |
"color_scheme": "Packages/ayu/ayu-mirage.tmTheme", | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "ayu-mirage.sublime-theme", | |
"line_padding_top": 5, | |
"line_padding_bottom": 5, | |
"draw_indent_guides": false, |
# tested on macOS 10.12.4 | |
# based on https://elixirforum.com/t/how-to-change-a-phoenix-project-name-smoothly/1217/6 | |
# replace values as necessary | |
current_otp="hello_phoenix" | |
current_name="HelloPhoenix" | |
new_otp="" | |
new_name="" | |
git grep -l $current_otp | xargs sed -i '' -e 's/'$current_otp'/'$new_otp'/g' |