Install vite and tailwind and needed plugins
npm install -D vite tailwindcss postcss autoprefixer postcss-custom-properties postcss-nested vite-plugin-live-reload
Install vite and tailwind and needed plugins
npm install -D vite tailwindcss postcss autoprefixer postcss-custom-properties postcss-nested vite-plugin-live-reload
/* | |
A simple Twitter bot that posts random images. | |
Tutorial: https://botwiki.org/resource/tutorial/random-image-tweet/ | |
*/ | |
const fs = require('fs'), | |
path = require('path'), | |
Twit = require('twit'), | |
config = require(path.join(__dirname, 'config.js')), | |
images = require(path.join(__dirname, 'images.js')); |
################################################################################ | |
# sox cheat sheet | |
################################################################################ | |
# Example commands for the sox command-line audio processing tool, | |
# for manipulating or batch processing audio files. | |
################################################################################ | |
# Daniel Jones <[email protected]> | |
################################################################################ | |
################################################################################ |
or delicacies too choice for the manual.
TOC
// Open the Chrome inspector, and select the topmost div containing the twitter thread. | |
// You might want to open the first tweet in the thread, scroll down to load every item in the thread, then select the parent container | |
var foo = document.createElement("div"); | |
var str = "" | |
$($0).find(".tweet").each(function(i, t) { | |
var tweet = $(t); | |
var turl = "https://twitter.com" + tweet.data("permalink-path") | |
var tdate = tweet.find(".tweet-timestamp").attr("title") | |
var tcontent = tweet.find(".tweet-text").html() |
( // http://doc.sccode.org/Classes/ServerOptions.html
s.options.numBuffers = 1024 * 16; // increase this if you need to load more samples s.options.memSize = 8192 * 16; // increase this if you get "alloc failed" messages s.options.maxNodes = 1024 * 32; // increase this if you are getting drop outs and the message "too many nodes"
// Default // s.options.numOutputBusChannels = 2; // set this to your hardware output channel size, if necessary // s.options.numInputBusChannels = 2; // set this to your hardware output channel size, if necessary
exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.
If Disk Utility is unable to repair, consider trying this:
diskutil list
to find the right drive id.disk1s1
sudo fsck_exfat -d <id from above>
. eg sudo fsck_exfat -d disk1s3
-d
is debug so you'll see all your files output as they're processed.// this function will work cross-browser for loading scripts asynchronously | |
function loadScript(src) { | |
return new Promise(function(resolve, reject) { | |
const s = document.createElement('script'); | |
let r = false; | |
s.type = 'text/javascript'; | |
s.src = src; | |
s.async = true; | |
s.onerror = function(err) { | |
reject(err, s); |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import tweepy #https://github.com/tweepy/tweepy | |
import json | |
import sys | |
#Twitter API credentials | |
consumer_key = "" | |
consumer_secret = "" |
// source: https://ctrlq.org/code/19702-twitter-image-upload | |
function autoTweet() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getSheetByName("schedule"); // This must match the sheet name! | |
var rows = sheet.getRange("A:D").getValues(); | |
var titleList = [], newValues = [], | |
response, doc, title; | |
var twitterCallback = function(rowIndex, err, result) { |