Skip to content

Instantly share code, notes, and snippets.

@bdenckla
bdenckla / PHP-partial-application.php
Created October 19, 2011 23:59
PHP function implementing partial function application
<?php
function Pa() // Partially Apply
{
$origArgs = func_get_args();
return function() use ( $origArgs )
{
$allArgs = array_merge( $origArgs, func_get_args() );
return call_user_func_array( 'call_user_func', $allArgs );
};
}
@bdenckla
bdenckla / Perl-partial-application.pl
Created October 20, 2011 00:00
Perl function implementing partial function application
sub Pa # Partially Apply
{
my ( $f, @a ) = @_;
sub { $f->( @a, @_ ) }
}
@bdenckla
bdenckla / bash-script-illustrating-pipefail.sh
Created November 4, 2011 21:23
bash script illustrating pipefail
#!/bin/bash
false; echo "false alone: $?"
false | head; echo "false piped to head: $?"
set -o pipefail
false | head; echo "false 'pipefailed' to head: $?"
@bdenckla
bdenckla / wab.pl
Created November 4, 2011 21:27
underscore, while, and angle brackets in Perl
#!/usr/bin/perl
use warnings;
use strict;
use Data::Dumper;
sub f { while ( <> ) {} }
my $a = 1;
@bdenckla
bdenckla / escape_database_for_grant.php
Created February 4, 2012 01:16
Escape SQL (MySQL?) database name for grant
<?php
function escape_database_for_grant( $d )
{
$search = array( '_', '%' );
$replace = array ( '\_', '\%' );
return str_replace( $search, $replace, $d );
}
?>
@bdenckla
bdenckla / modem.pl
Created February 24, 2012 18:31
Dave J.'s modem program
#!/usr/bin/perl -w
use strict;
use warnings qw(all);
use LWP::Simple;
use Data::Dumper;
use HTML::TreeBuilder;
use HTML::DOMbo;
use Win32::API;
@bdenckla
bdenckla / ArtScroll VbnC Psalm 1
Created June 8, 2022 15:10
ArtScroll vocalized-but-not-cantillated Psalm 1
This gist exists to show ArtScroll VbnC Psalm 1.
@bdenckla
bdenckla / sheva-distinctions.txt
Created April 21, 2024 14:25
A gist to store some sheva-distinction images publicly in its comments
The comments are the purpose; see the comments.
@bdenckla
bdenckla / gist:f5d9c5d67107df00c3226045c0d1e946
Last active June 1, 2024 12:12
A gist to store some Hebrew word images publicly in its comments
The comments are the purpose; see the comments.
Use the "assets" URL created immediately when you paste the image into the comment edit box (as opposed to the URL from clicking on the image once it becomes part of a submitted comment).
@bdenckla
bdenckla / main.md
Last active May 7, 2024 10:54
A Review of Hebrew World's Phonetic Bible

A Review of Hebrew World's Phonetic Bible

This is a review of Hebrew World's digital product called the Hebrew/English Phonetic Bible. We will use Exodus 20 as a source of examples.

Taking a look at the first word of the chapter gives us a feel for the transliteration style:

image

  • The V is capitalized because they use English-like capitalization. In their scheme, each verse is likened to a sentence. (Not shown here is that, correspondingly, a period appears at the end of each verse.) This equation of verse and sentence is limited to their phonetic transliteration; the English translation they provide has its own, independent punctuation, including its own sentence divisions.
  • The syllables are separated by a fairly heavy mid-dot (aka interpunct).