Skip to content

Instantly share code, notes, and snippets.

View hsjunnesson's full-sized avatar

Hans Sjunnesson hsjunnesson

View GitHub Profile
@protrolium
protrolium / ffmpeg.md
Last active November 12, 2024 21:27
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

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:

source 'https://rubygems.org'
group :development do
gem 'guard-shell'
gem 'guard-sass'
gem 'guard-livereload'
gem 'coderay'
gem 'kramdown'
end
@hsjunnesson
hsjunnesson / HSActionSheet.h
Created February 25, 2012 22:55
UIAlertViews are bad for you
//
// HSActionSheet.h
// UIAlertViewBlock
//
// Created by Hans Sjunnesson on 2/25/12.
// Copyright (c) 2012 Hans Sjunnesson
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
@jonsterling
jonsterling / gist:1541947
Created December 30, 2011 23:09
Configuring UITableViews with C99 array initialization!
// Define your table view's sections
typedef enum {
kTitleSection = 0,
kGoalSection,
kNumberOfSections
} NESTemplateEditTableSections;
// Make configuration arrays indexed against table sections.
// It's safe to reorder the original enum!
static NSString * const kCellIdentifiers[kNumberOfSections] = {
@bakkdoor
bakkdoor / thrift-mode.el
Created January 8, 2011 02:56
Simple thrift mode (taken from https://github.com/kragen/stevej-emacs/blob/master/thrift-mode/thrift.el) and adjusted to highlight self-defined types, unions & namespaces nicely.
(require 'font-lock)
(defvar thrift-mode-hook nil)
(add-to-list 'auto-mode-alist '("\\.thrift\\'" . thrift-mode))
(defvar thrift-indent-level 2
"Defines 2 spaces for thrift indentation.")
;; syntax coloring