Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
Basically just type the following in a shell: | |
$ irb | |
irb> require "spaceship" | |
irb> Spaceship::Tunes.login("iTunesConnect_username", "iTunesConnect_password") | |
irb> Spaceship::Tunes.select_team | |
You'll be presented with a list of teams your account belongs to, along with the numerical representation for that team. |
Author: Chris Lattner
STUFF = this is some stuff |
Modern Cocoa development involves a lot of asynchronous programming using closures and completion handlers, but these APIs are hard to use. This gets particularly problematic when many asynchronous operations are used, error handling is required, or control flow between asynchronous calls gets complicated. This proposal describes a language extension to make this a lot more natural and less error prone.
This paper introduces a first class Coroutine model to Swift. Functions can opt into to being async, allowing the programmer to compose complex logic involving asynchronous operations, leaving the compiler in charge of producing the necessary closures and state machines to implement that logic.
// ==UserScript== | |
// @name Trello card title Markdown | |
// @version 0.4.0 | |
// @homepage https://gist.github.com/gorbiz/6062481 | |
// @description Add support for bold and emphasized Markdown in card titles | |
// @match https://trello.com/b/* | |
// @match http://trello.com/b/* | |
// ==/UserScript== | |
/*** |
// Created by Tony Mann on 3/22/15. | |
// Copyright (c) 2015 7Actions. All rights reserved. | |
// | |
// Adapted from http://ossh.com.au/design-and-technology/software-development/implementing-rich-text-with-images-on-os-x-and-ios/ | |
import UIKit | |
class ImageAttachment: NSTextAttachment { | |
var verticalOffset: CGFloat = 0.0 | |
/* | |
One of the first things someone new to iOS Development finds is that dealing with the keyboard is trickier | |
than they think it should be. Simply changing the scrolling extents of a UITableView (or UIScrollView, or | |
UICollectionView) that is partially covered by they keyboard reveals a lot about the internals of how iOS | |
works and highlights various "gotchas" that need to be considered. | |
There are various ways to know that a keyboard has been shown - but observing some specific notifications | |
provides a reliable way to allow you to modify your views to deal with it. |