Search / 30 posts tagged code snippet
Subscribe-
Memoize Erlang function calls
http://blog.socklabs.com/ 2008/ 09/ memoize_erlang_function_calls/The Erlang workshop has been a blast so far. Just wrote this quick snippet to memoize Erlang function calls. Enjoy! Using it is pretty simple. Just start the memoize server and then send mfas to it. 1> memoize:start(). 2> memoize:memoize(fun module:function/0, [Arguments]).
-
Code Snippet Example for Live Writer
http://www.philoking.com/ 2008/ 09/ 20/ code-snippet-example-for-live-writer/1: <script type="text/javascript"> 2: 3: window.onload = function() { 4: 5: //define message default 6: document.getElementById('message').innerHTML = "(please press a button...)"; 7: 8: //setup events 9: document.getElementById('btnStart').onclick = playIt; 10:
-
How To Quote Comments In A WordPress Comment List
http://www.farfromfearless.com/ 2008/ 08/ 29/ how-to-quote-comments-in-wordpress…I received an email from a reader this afternoon, asking about one of the commenting features that I built into the Lemon Twist theme: quote comments. Hi Chris, I’m really curious on how you got that quote feature on your comment section.
-
Put Code Snippets in a Wordpress Blog
http://www.longcountdown.com/ 2008/ 08/ 23/ put-code-snippets-in-a-wordpress-blo…I’ve installed WP-Syntax, a great plugin for Wordpress that lets you add code snippets to your blog posts without losing all the formatting. You can use all manner of languages and even include line numbers if you want.
-
Avoiding Duplicate Title Tags on Pager Pages in Drupal
http://www.seo-expert-blog.com/ blog/ avoiding-duplicate-title-tags-on-pager-pag…Google Webmaster Tools includes a tool called content analysis that you find in the Diagnostics section. The content analysis tool reported a suboptimal number of duplicate title tags and meta descriptions for some Drupal sites that I monitor with these tools.
-
Creating custom PHPUnit assertions - Raphael Stolt
http://computer-internet.marc8.com/ creating-custom-phpunit-assertions-raphael-s…Creating custom PHPUnit assertions - Raphael Stolt Planet PHP Mon, 07/28/2008 - 12:02 While developing PHP applications and applying developer testing the applications safety net will grow along the timeline, and as normal code, test code should be in a fresh, odour free state too.
-
Scrolling code display boxes of doom
http://silverpenpub.net/ blog/ 2008/ 07/ 24/ scrolling-code-display-boxes-of-doo…Why can’t anything ever work as advertised? So, I’ve written a couple of tech articles for the next couple of weeks (scheduled to publish on the next two Tuesdays) and they had a few code snippets in them.
-
Erlang Snippet: Remove stale iplaywow cache files
http://blog.socklabs.com/ 2008/ 07/ erlang_snippet_remove_stale_ip/Now = calendar:datetime_to_gregorian_seconds(erlang:universaltime()), [begin {ok, [{{time, Time}, _}]} = file:consult(File), case Time < Now - 14400 of true -> file:delete(File); _ -> ok end end || File <- filelib:wildcard("cache/*")].
About / rising and falling
Find posts and stories that have something in common using this weighted list of phrases, where popularity is represented by size. Learn more...
