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:
| /** | |
| Filename: commands.js | |
| AppLamp.nl led light API: wifi box byte commands | |
| © AppLamp.nl: you can share,modify and use this code (commercially) as long as you | |
| keep the referer "AppLamp.nl led light API" in the file header. | |
| RESPECT AT LEAST 50 MS BETWEEN EACH SEND COMMAND TO PREVENT PACKAGE LOSS | |
| The functions in this file will return the appropriate hex commands as 3 byte array | |
| to send to an UDP-socket towards WIFI BOX-IP:8899 (see wifibox.js) | |
| - (void)controllerWillChangeContent:(NSFetchedResultsController *)controller | |
| { | |
| self.shouldReloadCollectionView = NO; | |
| self.blockOperation = [[NSBlockOperation alloc] init]; | |
| } | |
| - (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id<NSFetchedResultsSectionInfo>)sectionInfo | |
| atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type | |
| { | |
| __weak UICollectionView *collectionView = self.collectionView; |
| #!/usr/bin/env python | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| """ |
| pm list packages -f |
| const uint8_t PROGMEM digital_pin_to_port_PGM[] = { | |
| PD, /* 0 */ | |
| PD, | |
| PD, | |
| PD, | |
| PD, | |
| PD, | |
| PD, | |
| PD, | |
| PB, /* 8 */ |
| @implementation MySharedThing | |
| + (id)sharedInstance | |
| { | |
| DEFINE_SHARED_INSTANCE_USING_BLOCK(^{ | |
| return [[self alloc] init]; | |
| }); | |
| } | |
| @end |
| #import <Foundation/Foundation.h> | |
| int main(int argc, const char * argv[]) { | |
| @autoreleasepool { | |
| const char *name = "a_test_queue"; | |
| dispatch_queue_t queue1 = dispatch_queue_create(name, NULL); | |
| dispatch_queue_t queue2 = dispatch_queue_create(name, NULL); | |
| dispatch_async(queue1, ^{ | |
| sleep(2); |
| # See original post at http://stackoverflow.com/questions/822404/how-to-set-up-cmake-to-build-an-app-for-the-iphone | |
| cmake_minimum_required(VERSION 2.8) | |
| cmake_policy(SET CMP0015 NEW) | |
| cmake_policy(SET CMP0016 NEW) | |
| project(test) | |
| set(NAME test) |