This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
Map | Action |
---|---|
<F1> | Causes Netrw to issue help |
<cr> | Netrw will enter the directory or read the file |
<del> | Netrw will attempt to remove the file/directory |
- | Makes Netrw go up one directory |
a | Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide) |
c | Make browsing directory the current directory |
C | Setting the editing window |
d | Make a directory |
--- Stubs for entity.* callbacks defined in C++. | |
-- | |
-- DO NOT INCLUDE this file in your scripts, it is for documentation purposes only. | |
-- | |
-- Entity callbacks query and mutate the specific entity that is running the | |
-- lua script. They can be called from a _different_ entity using | |
-- world.callScriptedEntity(targetEntityId, "entity.*"), replacing "*" with the | |
-- name of a function defined below. | |
-- | |
-- Specific types of entities (e.g. NPCs, Objects) define different sets of |
import UIKit | |
// Lots of ideas here that I'd love thoughts about. Some of this creates new highly generic types | |
// (UniqueIdentifier, IdentifiedSet) that may have broader purpose. Some of it defines a new Observer pattern. | |
// I've been playing around with this UniqueIdentifier type. Its purpose is to let you store things | |
// in dictionaries (or possibly sets) that you couldn't otherwise. | |
// It's just a self-referencial ObjectIdentifier. I used to use NSUUID for this purpose, but wondering | |
// if this is better. |
; Comments start with semicolons. | |
; Clojure is written in "forms", which are just | |
; lists of things inside parentheses, separated by whitespace. | |
; | |
; The clojure reader assumes that the first thing is a | |
; function or macro to call, and the rest are arguments. | |
; | |
; Here's a function that sets the current namespace: | |
(ns test) |
+ (NSAttributedString *)artsyBodyTextAttributedStringFromHTML:(NSString *)HTML withFont:(UIFont *)font | |
{ | |
NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init]; | |
style.lineHeightMultiple = 1.2; | |
style.paragraphSpacing = font.pointSize * .5; | |
NSDictionary *textParams = @{ | |
NSFontAttributeName : font, | |
NSParagraphStyleAttributeName : style, |
// | |
// CollectionViewDataSource.swift | |
// Khan Academy | |
// | |
// Created by Andy Matuschak on 10/14/14. | |
// Copyright (c) 2014 Khan Academy. All rights reserved. | |
// | |
import UIKit |
/** | |
* The examples provided by Facebook are for non-commercial testing and | |
* evaluation purposes only. | |
* | |
* Facebook reserves all rights not expressly granted. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL | |
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
// uses PriorityQueue from https://github.com/mauriciosantos/Buckets-Swift | |
protocol Pathfinding { | |
typealias Node: Hashable | |
func neighborsFor(node: Node) -> [Node] | |
func costFrom(from: Node, to: Node) -> Int | |
func heuristicFrom(from: Node, to: Node) -> Int | |
} |
import Cocoa | |
struct Person { | |
var name: String = "John" | |
var age: Int = 50 | |
var dutch: Bool = false | |
var address: Address? = Address(street: "Market St.") | |
} | |
struct Address { |