Below are some thoughts on extending the RDF Patch format syntax to a line-based protocol that allows updating and querying RDF triple and quad stores. This allows triple or quad stores to be used directly by systems that require direct access to the data (e.g. with access to real blank node labels unavailable via SPARQL Query/Update). It also allows modular implementation without requiring systems to use the same language as the store (e.g. using the Jena API) or use wrappers/adapters (e.g. using things like SWIG or XS).
This file contains hidden or 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
package Simulator; | |
sub import { | |
require Import::Into; | |
Simulator::Types->import::into(scalar(caller), ':all'); | |
} | |
use Moops; | |
library Types |
This file contains hidden or 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 Mysql; | |
use strict; | |
use vars qw($school_name); | |
use vars qw($pass); | |
require "./cgi-lib.pl"; |
This file contains hidden or 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
#!/bin/bash | |
# Usage: | |
# | |
# cat file.yml | load-yaml-dump-json | |
# ./load-yaml-dump-json # enter data and ctl-d when finished | |
yaml=`cat` | |
echo == Perl |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
<http://sailortalk.podOmatic.com/rss2.xml> | |
HTTP://www.knient.com/CAL/CAL-Podcast/CAL-Podcast.xml | |
Http://feeds.feedburner.com/fridgeandhbomb | |
Http://feeds.feedburner.com/wfodicks | |
Http://ravenc-taouf.podomatic.com/rss2.xml | |
Http://www.calvaryonline.org/podcasts/podcast.xml | |
Http://www.changkhui.com/XML/teemateepai.xml | |
httP://dtfreunde.podcaster.de/Deutsches_Theater.rss | |
http://-myantioch.sermon.tv/rss/main | |
http://004.podOmatic.com/rss2.xml |
This file contains hidden or 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/env perl | |
use Mojolicious::Lite; | |
use Coro; | |
use Mojo::IOLoop; | |
# Magical class for calling a method non-blocking (with a closure) and | |
# rescheduling the current coroutine until it is done | |
package with::coro { | |
use Coro; |
The legendary #django-social
channel was once a lovely place of vibrant, cheerful discussion. I miss that.
This experimental channel is a place for off-topic, positive conversation. IRC is a great place to bitch and vent, but #positivepython
is not the place for it.
Logs are available at botbot.me. Feel free to invite anyone that you feel should be a part of the group. We want to be selective, not exclusive.
Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function.
— John Carmack
It’s OK to figure out murder mysteries, but you shouldn’t need to figure out code. You should be able to read it.
— Steve McConnell
This file contains hidden or 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 BSD::Resource qw(setrlimit RLIMIT_VMEM RLIM_INFINITY); | |
my ($mem) = shift // usage(); | |
@ARGV or usage(); | |
my ($n, $s) = $mem =~ /\A (\d+) ([kmgKMG]?) \z/x or usage(); | |
my $suf = { k => 1024, | |
m => 1024 * 1024, | |
g => 1024 * 1024 * 1024, | |
}; |