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:
| // App delegate | |
| #import <AVFoundation/AVFoundation.h>// place in .h | |
| // applicationDidFinishLaunchingWithOptions | |
| // [self prepareAudioSession]; | |
| - (BOOL)prepareAudioSession { | |
| // deactivate session |
| // | |
| // AMScanViewController.h | |
| // | |
| // | |
| // Created by Alexander Mack on 11.10.13. | |
| // Copyright (c) 2013 ama-dev.com. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> | |
| #import <AVFoundation/AVFoundation.h> |
| <?php | |
| /*************************************************************** | |
| Description: City data in JSON. | |
| Developer: Vishal Kurup | |
| ***************************************************************/ | |
| $host = "abc12345"; //Your database host server | |
| $db = "abc12345"; //Your database name | |
| $user = "abc12345"; //Your database user |
| function switchClass(){ | |
| var delay = 2000; | |
| var colors = new Array ("red", "grey", "green", "blue"); | |
| var i = 0; | |
| setInterval(function(){ | |
| $('span').removeClass(colors[i]); | |
| i++; |
| <html> | |
| <body style="background: #333"> | |
| <script > | |
| var gui = require('nw.gui'); | |
| var win = gui.Window.get(); | |
| function takeSnapshot() { | |
| win.capturePage(function(img) { | |
| var popWindow = gui.Window.open('popup.html', | |
| {width: 420, height: 300}); | |
| popWindow.on('loaded', function() { |
| @import compass | |
| $icons: sprite-map("icons/*.png") | |
| $icons-hd: sprite-map("icons-hd/*.png") | |
| i | |
| background: $icons | |
| display: inline-block | |
| @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) | |
| background: $icons-hd |
| <?php | |
| $countries = | |
| array( | |
| "AF" => "Afghanistan", | |
| "AL" => "Albania", | |
| "DZ" => "Algeria", | |
| "AS" => "American Samoa", | |
| "AD" => "Andorra", | |
| "AO" => "Angola", |
| <? | |
| /* _lang_util.php - Multilanguage site utility script | |
| * This is my basic script to detect language and keep it in a cookie | |
| * | |
| * Language priority, from lowest to highest : | |
| * - default lang | |
| * - browser accepted lang | |
| * - cookie lang | |
| * - query parameter lang | |
| * |
| public class Json { | |
| public static JSONObject getJson(String url){ | |
| InputStream is = null; | |
| String result = ""; | |
| JSONObject jsonObject = null; | |
| // HTTP | |
| try { |