HTML5 canvas plasma demo

  1. <title>Canvas Plasma</title>
  2.  
  3. <script type="text/javascript">
  4. var ctx;
  5. var tid = null;
  6.  
  7. function body_Load() {
  8.     var canvas = document.getElementById('plasma');
  9.     if (canvas.getContext) {
  10.         ctx = canvas.getContext('2d');
  11.        
  12.         traceDiv = document.getElementById('trace');
  13.     }
  14.     else {
  15.         alert("Couldn't get the canvas, sorry :(");
  16.     }
  17. }
  18.  
  19. function startButton_Click() {
  20.     if (tid != null)
  21.         clearInterval(tid);
  22.    
  23.     tid = setInterval("drawFrame()", 50);
  24. }
  25.  
  26. function stepButton_Click() {
  27.     drawFrame();
  28. }
  29.  
  30. func

Drupal Publisher for Live Photo Gallery 0.3

Download: DrupalPhotoPublisher-0.3.msi
Size: 406.5 KB
md5_file hash: f6a1daffa32f39a0024e3214a5557631
First released: Wed, 2010-06-30 14:11
Last updated: Wed, 2010-06-30 14:12

Fixes for Live Essentials wave 4 beta.

Simple scene library for Ren'Py

  1. # Copyright (c) 2010 Karl Knechtel, Chris Charabaruk
  2. # Licensed under the zlib/libpng license
  3. # see http://www.opensource.org/licenses/zlib-license.php
  4.  
  5. # Documentation is in-line with the source, or visit
  6. # http://labs.coldacid.net/code/simple-scene-library-renpy
  7. # for further details.
  8.  
  9. init python:
  10.    
  11.     # show_scene_ actually plays the scene, show_scene lets us use it
  12.     # from a button.
  13.     def show_scene_(scene_id):
  14.        
  15.         # Put a halt to music, in case the scene starts without any
  16.         renpy.music.stop(fadeout=0.0)
  17.        
  18.         # Now we actually star

Automatic directories for audio in Ren'Py

  1. # No code yet, may add later

Ren'Py settings for SciTE 2.0.3+

  1. # Define SciTE settings for Ren'Py files.
  2.  
  3. file.patterns.rpy=*.rpy;*.rpym
  4.  
  5. shbang.renpy=rpy
  6.  
  7. filter.renpy=Ren'Py (rpy rpym)|$(file.patterns.rpy)|
  8.  
  9. lexer.$(file.patterns.rpy)=python
  10. lexer.renpy.strings.over.newline=1
  11.  
  12. keywordclass.renpy=at call expression hide image init jump label menu \
  13. onlayer python scene set show with \
  14. and assert break class continue def del elif \
  15. else except exec finally for from global if import in is lambda None \
  16. not or pass print raise return try while yield $ \
  17. play queue stop sound music fadeout fadein channel \
  18. voice sustain nvl clear window
  19.  
  20. k

Radio Alarm Clock 0.10.2

Download: AlarmClock-0.10.2.zip
Size: 124.57 KB
md5_file hash: c430103f2350b01acc635ec6e485546e
First released: Sun, 2010-02-07 11:29
Last updated: Tue, 2010-03-16 02:13

Changes in 0.10.2:

  • FIX: Snooze button wasn't turning off sleep radio.­

Radio Alarm Clock 0.10.2

Download: AlarmClock-0.10.2.msi
Size: 631 KB
md5_file hash: 0193d7138c200e36f20c8cce35893a43
First released: Sun, 2010-02-07 11:29
Last updated: Tue, 2010-03-16 02:14

Changes in 0.10.2:

  • FIX: Snooze button wasn't turning off sleep radio.­

Number rounding extension method

  1. using System;
  2.  
  3. namespace TestApp
  4. {
  5.     public static class ExtensionMethods
  6.     {
  7.         public static int RoundOff (this int i)
  8.         {
  9.             return ((int)Math.Round(i / 10.0)) * 10;
  10.         }
  11.     }
  12.  
  13.     public class TestApp
  14.     {
  15.         public static void Main()
  16.         {
  17.             int roundedNumber = 236.RoundOff(); // returns 240
  18.             int roundedNumber2 = 11.RoundOff(); // returns 10
  19.             Console.WriteLine(roundedNumber);
  20.             Console.WriteLine(roundedNumber2);
  21.         }
  22.     }
  23. }

Anti-Telus filter

  1. #!/usr/bin/perl
  2.  
  3. $user = 'REDIR@EXAMPLE.ADDRESS';
  4. $pass = 'PASSWORD';
  5. $host = 'POP3.SERVER.ADDRESS';
  6.  
  7. %redir = (
  8.     'sender@example.address' => 'reciever@example.address'
  9. );
  10.  
  11. $sendmail = '/usr/sbin/sendmail -t';
  12. #DEBUG $sendmail = 'cat >>test2.txt';
  13.  
  14. use Mail::POP3Client;
  15.  
  16. # connection
  17. $pop = new Mail::POP3Client(HOST => $host);
  18. $pop->User($user);
  19. $pop->Pass($pass);
  20.  
  21. $pop->Connect() >= 0 || die $pop->Message();
  22.  
  23. # loop through messages
  24. for ($i = 1; $i <= $pop->Count(); $i++) {
  25.     %head = ();
  26.  
  27.     foreach ($pop->Head($i)) {
  28.         /^(From|Subject|Content-type):\s+(

Radio Alarm Clock 0.10.1

Download: AlarmClock-0.10.1.zip
Size: 132.78 KB
md5_file hash: edb1c2291cf952745d0eb364663a5cf2
First released: Wed, 2009-01-14 06:32
Last updated: Tue, 2010-03-16 02:10

Changes in 0.10.1:

  • FIX: Crashes on startup; RadioManager cannot be instantiated due to Configuration system exceptions.
  • FIX: Don't reset preferences when upgrading or reinstalling.
#