Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
from fastapi import Request, HTTPException | |
from pydantic import BaseModel, BaseModel, HttpUrl | |
from modal import Secret, App, web_endpoint, Image | |
from typing import Optional, List | |
from example import proposal | |
import os | |
app = App(name="circleback", image=Image.debian_slim().pip_install("openai", "pydantic", "fastapi")) | |
class Attendee(BaseModel): |
package main | |
import ( | |
"flag" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"strings" | |
) |
const padLeft = (number, n,str) => { | |
return number.toString().length >= n ? number : Array(n-String(number).length + 1).join(str||'0') + number; | |
} | |
const playTime = (milliseconds) => { | |
let seconds = milliseconds / 1000.0, | |
hours = Math.floor(seconds / 3600), | |
minutes = Math.floor((seconds % 3600) / 60), | |
only_seconds = Math.round(seconds % 60), | |
parts = []; |
source 'https://rubygems.org' | |
gem 'nokogiri', '~>1.6' | |
gem 'aws-sdk', '~> 2' |
main() { | |
while [[ true ]]; do | |
local request="$(curl -s 'http://www.apple.com/us/shop/goto/iphone_7/select' | grep 'be back soon')" | |
if [[ ! $request ]]; then | |
say 'Yep, time to buy' | |
break | |
fi |
# this is running in Project 2 | |
class MyClass | |
def some_process | |
# if the worker was in this project I could do this | |
# MyWorker.perform_async(...args) | |
# but the worker isn't in my project | |
# I always thought I could do this, but it seems it needs | |
# class: ActualClass, | |
# not |
<script> | |
(function(d) { | |
var tkTimeout=3000; | |
if(window.sessionStorage){if(sessionStorage.getItem('useTypekit')==='false'){tkTimeout=0;}} | |
var config = { | |
kitId: 'abc1234', | |
scriptTimeout: tkTimeout | |
}, | |
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";if(window.sessionStorage){sessionStorage.setItem("useTypekit","false")}},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='//use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s) | |
})(document); |
# use mac notification center | |
notification :terminal_notifier | |
guard :rspec, cmd: 'bin/rspec' do | |
require "guard/rspec/dsl" | |
dsl = Guard::RSpec::Dsl.new(self) | |
# Feel free to open issues for suggestions and improvements | |
# RSpec files |