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:
| class DisableMigrations(object): | |
| def __contains__(self, item): | |
| return True | |
| def __getitem__(self, item): | |
| return "notmigrations" | |
| MIGRATION_MODULES = DisableMigrations() |
| ''' | |
| fizzbuzz refers to a quick test to filter applicants for programmer jobs who don't actually know how to code. | |
| (see eg, http://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/) | |
| "pass in a sequence of integers from 1 to 100; | |
| for integers that are multiples of three: print “fizz” | |
| for integers that are multiples of five print “buzz” | |
| for integers that are multiples of five AND three print "fizzbuzz" | |
| for remaining integers, print the integer value | |
| ''' |
| class KeyifyList(object): | |
| def __init__(self, inner, key): | |
| self.inner = inner | |
| self.key = key | |
| def __len__(self): | |
| return len(self.inner) | |
| def __getitem__(self, k): | |
| return self.key(self.inner[k]) |
| Miscellaneous Symbols and Pictographs | |
| 🌀️ = [1F300] CYCLONE | |
| 🌁️ = [1F301] FOGGY | |
| 🌂️ = [1F302] CLOSED UMBRELLA | |
| 🌃️ = [1F303] NIGHT WITH STARS | |
| 🌄️ = [1F304] SUNRISE OVER MOUNTAINS | |
| 🌅️ = [1F305] SUNRISE | |
| 🌆️ = [1F306] CITYSCAPE AT DUSK | |
| 🌇️ = [1F307] SUNSET OVER BUILDINGS |
| headers: | |
| _ASAsyncTransaction.h | |
| _ASAsyncTransactionGroup.h | |
| _ASDisabledPanUITextView.h | |
| _ASDisplayLayer.h | |
| _ASDisplayLayerDelegate-Protocol.h | |
| _ASDisplayView.h | |
| _ASImageNodeDrawParameters.h | |
| _ASPendingState.h | |
| _ASTextNodeCachedMetrics.h |
| rm -rf ~/Library/Application\ Support/Slack/ | |
| rm -rf ~/Library/Containers/com.tinyspeck.slackmacgap/ | |
| rm -rf ~/Library/Preferences/com.tinyspeck.slackmacgap.plist | |
| rm -rf ~/Library/Saved\ Application\ State/com.tinyspeck.slackmacgap.savedState | |
| rm ~/Library/Safari/LocalStorage/*slack* |
| #!/usr/bin/env bash | |
| # https://code.google.com/p/chromium/issues/detail?id=226801 | |
| url='https://chromium.googlesource.com/chromium/src/net/+/master/http/transport_security_state_static.json?format=TEXT'; | |
| curl -#s "${url}" | \ | |
| base64 --decode | \ | |
| sed '/^ *\/\// d' | \ | |
| sed '/^\s*$/d' > hsts.json; |
| #include <math.h> | |
| /* | |
| Example application for doing FFT on a Particle Photon and sending the data to Processing on a computer | |
| Designed for Phyiscal Computing Studio, Spring 2016, IDeATe @ Carnegie Mellon University: http://courses.ideate.cmu.edu/physcomp/s16/48-390/ | |
| Inspired by Adafruit's FFT: Fun with Fourier Transforms tutorial: https://learn.adafruit.com/fft-fun-with-fourier-transforms/software | |
| FFT function from Paul Bourke: http://paulbourke.net/miscellaneous/dft/ | |
| TCP connection code provided by Alex Alspach |
| /* | |
| * © 2016 - Julián Acosta | |
| * License: CC BY-SA 4.0 (http://creativecommons.org/licenses/by-sa/4.0/) | |
| * | |
| * Print your own logo in developer tools! | |
| * | |
| * Step 1: Convert your logo to ASCII text here: http://picascii.com (I used color output) | |
| * Note: Is possible that you'll have to resize your photo in order to retain aspect ratio | |
| * Step 2: Remove the <pre></pre> tag that is surrounding the generated code, replace with "[" and "]" | |
| * Step 3: Run the following regexes (*DON'T ALTER THE ORDER*) in order to convert to JSON (Works in PHPStorm and Sublime Text 2): |