This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use KinoSearch1::Index::IndexReader; | |
my $r = KinoSearch1::Index::IndexReader->new( invindex => '/path/to/index' ); | |
# get one or more readers | |
my @readers = ref $r->{sub_readers} eq 'ARRAY' ? @{ $r->{sub_readers} } : $r; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import PowerShell Community Extensions | |
# Available from http://pscx.codeplex.com/ | |
$pscx = Get-Module -List Pscx | |
if($m){Import-Module Pscx} | |
Set-Alias open Invoke-Item | |
Set-Alias vi gvim # because I forget... | |
function prompt | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Gistson - Embedded Gist WP Plugin | |
Plugin URI: http://arin.me/blog/tag/gistson | |
Description: Use a shortcode [gist id="12345"] to embed A Gist from http://gist.github.com into your blog | |
Version: 0.2 | |
Author: Arin Sarkissian | |
Author URI: http://arin.me | |
Copyright 2009 Arin Sarkissian, 2011 Andrew Jones |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl | |
use POSIX; | |
use DateTime; | |
use Test::More tests => 3; | |
sub date_from_week_number { | |
my ( $week_num, $year ) = @_; | |
$year ||= POSIX::strftime( '%Y', localtime ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This allows you to use a Quarter as an interval in the Simile Timeline. | |
* See http://andrew-jones.com/2009/12/01/using-a-quarter-interval-with-the-simile-timeline/ for info. | |
* It has been tested with version 2.3.0 (March 6, 2009). Unlikely to work with other versions. | |
* For more information on the timeline, see http://www.simile-widgets.org/wiki/Timeline | |
*/ | |
SimileAjax.DateTime.QUARTER = 11; | |
(function() { |
NewerOlder