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:
| <?php | |
| $data = (object)array( | |
| "html" => "<foo bar=\"baz\"/> &", | |
| "arabic" => "العربية al-ʿarabiyyah, IPA: [æl ʕɑrɑˈbijjɐ], or عربي ʿarabī", | |
| "hebrew" => "עִבְרִית, Ivrit", | |
| "chinese" => "汉语/漢語 Hanyu; 华语/華語 Huáyǔ; 中文 Zhōngwén", | |
| "korean" => "한국어/조선말", | |
| "japanese" => "日本語 Nihongo", | |
| "umlauts" => "äüöãáàß", |
| /* | |
| Distributed under The MIT License: | |
| http://opensource.org/licenses/mit-license.php | |
| 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 use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to |
| public class Json { | |
| public static JSONObject getJson(String url){ | |
| InputStream is = null; | |
| String result = ""; | |
| JSONObject jsonObject = null; | |
| // HTTP | |
| try { |
| <? | |
| /* _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 | |
| * |
| <?php | |
| $countries = | |
| array( | |
| "AF" => "Afghanistan", | |
| "AL" => "Albania", | |
| "DZ" => "Algeria", | |
| "AS" => "American Samoa", | |
| "AD" => "Andorra", | |
| "AO" => "Angola", |
| @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 |
| <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() { |
| function switchClass(){ | |
| var delay = 2000; | |
| var colors = new Array ("red", "grey", "green", "blue"); | |
| var i = 0; | |
| setInterval(function(){ | |
| $('span').removeClass(colors[i]); | |
| i++; |
| <?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 |