Skip to content

Instantly share code, notes, and snippets.

@tatsuyasusukida
tatsuyasusukida / !README-javascript-audio.md
Last active October 24, 2024 21:35
🎵 How to record audio using the Web Audio API in JavaScript

🎵 How to record audio using the Web Audio API in JavaScript

Demo video: How to record audio using the Web Audio API in JavaScript

About this article

This article describes how to record audio using the Web Audio API in JavaScript. The related resources are shown below.

@teezzan
teezzan / index.js
Created September 4, 2020 19:03
Add Text to Video Using Nodejs
var ffmpeg = require('fluent-ffmpeg');
var axios = require('axios');
// make sure you set the correct path to your video file
var proc = ffmpeg('./input.mp4')
.videoFilters({
filter: 'drawtext',
options: {
fontfile:'font.ttf',
text: 'THIS IS TEXT',
@Sauerstoffdioxid
Sauerstoffdioxid / googleurlparams.md
Last active October 13, 2024 13:30
Google/Blogger Image URL Parameters

Google/Blogger Image URL Parameters

This is an effort to document what is known about Google's (Blogger's/Blogspot's) image URL parameters. Some of these options were taken from existing first or third party documentation (see the links at the end of this document), but the majority is based off my own investigations.

Where to use them?

  • On Blogger's image URL's: 2.bp.blogspot.com/-OF7u67HQE1M/VHc8S8qJTDI/AAAAAAAACxI/UD-11c63diQ/s1600/005.png
  • On just about any googleusercontent image URL: https://lh3.googleusercontent.com/Jvmz11cLrvNIHG_LWjVO9B-UV2IN4Cfk1pycbhWZl6IriMgCAGCOFuBRtoHaiZ6xeVGqCugZcCql=w176-h176-n-o

Replace the bolded parts with the parameters.

@amans199
amans199 / ACF Arabian Country list
Created February 10, 2020 06:43
Arabian Country list formatted for Advanced Custom Fields select dropdown
algeria : Algeria
bahrain : Bahrain
comoros : Comoros
djibouti : Djibouti
egypt : Egypt
iraq : Iraq
jordan : Jordan
kuwait : Kuwait
lebanon : Lebanon
libya : Libya
@adcreare
adcreare / npm-beta-publish.md
Last active October 21, 2024 15:53
npm publish a beta package

Steps to publish a npm package to beta that won't be available via latest and won't auto install on ncu updates etc

  1. Ensure any compile is run npm run dist etc
  2. Modify version in package.json to the following format (match with existing verion numbers etc) "version": "0.1.120-beta.1" where beta.x is the number of those betas
  3. Publish to npm npm publish --tag beta

There are two options for install:

  • Always install beta with npm install packagename@beta
  • Install specific version with npm install [email protected]