Because Chrome DevTools snippets don't get saved...boo
also, for good reference: http://anti-code.com/devtools-cheatsheet/
Because Chrome DevTools snippets don't get saved...boo
also, for good reference: http://anti-code.com/devtools-cheatsheet/
| /// <summary> | |
| /// PGP round-trip encryption -- http://blogs.microsoft.co.il/kim/2009/01/23/pgp-zip-encrypted-files-with-c/#comment-611002 | |
| /// </summary> | |
| public class PGPEncryptDecrypt | |
| { | |
| /** | |
| * A simple routine that opens a key ring file and loads the first available key suitable for | |
| * encryption. | |
| * | |
| * @param in |
| <?php | |
| if(!class_exists('WpPluginUpgradeBase')) : | |
| abstract class WpPluginUpgradeBase { | |
| function __construct() { | |
| add_action( 'admin_init', array(&$this, 'load_plugin') ); | |
| } |
| void Main() | |
| { | |
| test(100, 9); | |
| test(1000, 9); | |
| test(100, 25); | |
| test(10000, 100); | |
| } | |
| // Define other methods and classes here | |
| void test(int populationSize, int segmentSize) { |
// Disable Context Menu document.oncontextmenu = function () { return false };
// Disable dragging of HTML elements document.ondragstart = function () { return false };
| <?php | |
| /* | |
| Plugin Name: Forms: 3rd-Party Migrate | |
| Plugin URI: https://github.com/zaus/forms-3rdparty-migrate | |
| Description: Export/Import settings for Forms-3rdparty, or migrate to/from CF7-3rdparty | |
| Author: zaus | |
| Version: 0.3.2 | |
| Author URI: http://drzaus.com | |
| */ |
I liked the colors, but didn't like the Flash plugin on http://flatuicolors.com/.
And 100% JS, for no reason other than it's fun.
| /// <summary>Silly convenience initializer for creating Vs tasks with a dictionary; | |
| /// can use <code>new Perf { { "task1", n => whatever }, {"task2", n => bar}...}.Vs()</code> | |
| /// <para>see http://stackoverflow.com/a/14000325/1037948 </para> | |
| /// </summary> | |
| /// <remarks>Doesn't automatically call <see cref="Vs"/> because...</remarks> | |
| public class Perf : Dictionary<string, Action<int>> {} | |
| /// <summary>Silly convenience initializer for creating Vs tasks with a dictionary that can also provides some output; | |
| /// can use <code>new Perf<T> { { "task1", n => whatever }, {"task2", n => bar}...}.Vs()</code> | |
| /// <para>see http://stackoverflow.com/a/14000325/1037948 </para> |
Generating a maze with a simple algorithm
A Pen by Gabriel Valfridsson on CodePen.
A simple platform game engine, the map is customisable and scriptable. Refer to the comments in the "map" variable for instructions.
I plan to expand the engine in the future, the ability to use images for tiles and the player is one thing that I have in mind. Any suggestions are welcome.