One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
type CamelToUpperSnake<T extends string, P extends string = ''> = string extends Uncapitalize<T> ? string : | |
T extends `${infer C0}${infer R}` ? | |
CamelToUpperSnake<R, `${P}${C0 extends Uppercase<C0> ? '_' : ''}${Uppercase<C0>}`> : P; | |
// works with both camelCase and CamelCase |
const fs = require('fs'); | |
const path = require('path'); | |
const directory = './Liquid'; | |
(async () => { | |
const files = await fs.promises.readdir(directory); | |
for (const file of files) { | |
const name = file |
define :getBpm do |samp, beats| | |
t = sample_duration samp | |
bps = t/beats | |
beatsPerMin = 60/bps | |
return beatsPerMin | |
end | |
puts getBpm(:loop_amen, 4) |
samps = "C:/Program Files (x86)/Sonic Pi/etc/my-samples" | |
use_bpm 170 | |
live_loop :metro do | |
sleep 1 | |
cue :beat | |
sleep 7 | |
cue :ambient | |
end |
const puppeteer = require("puppeteer"); | |
(async () => { | |
const autoScroll = async (page) => { | |
await page.evaluate(async () => { | |
await new Promise((resolve, reject) => { | |
let totalHeight = 0; | |
const distance = 100; | |
const timer = setInterval(async () => { | |
const scrollHeight = document.body.scrollHeight; |
const puppeteer = require("puppeteer"); | |
(async () => { | |
try { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto("https://www.facebook.com/events/discovery/?suggestion_token=%7B%22city%22%3A%22107677462599905%22%2C%22time%22%3A%22tomorrow%22%7D"); | |
await page.waitForSelector("div.clearfix > div > div > div > div > div > a"); | |
Math.max(...container.map((element) => element.field)); |