For HTTP headers it's quite straightforward: draft-nottingham-http-link-header defines this.
Link: <http://example.com/>; rel="previous"; titile="Previous chapter"
#!/usr/bin/env ruby | |
require 'plist' | |
def visit(thing, want, &block) | |
case thing | |
when Hash | |
thing.keys.each do |key| | |
if want.include?(key) | |
yield key, thing[key] | |
else |
-- Set selected Address Book contact pictures from Gravatar. | |
-- Released under GPL. | |
-- by Doug Smith, http://smithsrus.com | |
-- Fixed md5_email routine by Tatsuhiko Miyagawa | |
-- Grab the selected records and see how many there are. | |
tell application "Address Book" | |
set selected_contacts to selection | |
set count_selected to number of items in selected_contacts |
For HTTP headers it's quite straightforward: draft-nottingham-http-link-header defines this.
Link: <http://example.com/>; rel="previous"; titile="Previous chapter"
#!/usr/bin/env ruby | |
require 'json' | |
require 'open3' | |
require 'date' | |
class Importer | |
def initialize(*args) | |
@js_files = *args | |
end |
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'open3' | |
require 'date' | |
require 'ri_cal' | |
class Importer | |
attr_reader :url |
#!/usr/bin/env perl | |
use strict; | |
use Parse::CPAN::Packages; | |
use Module::CoreList; | |
use JSON::XS; | |
$| = 1; | |
my $packages_file = "$ENV{HOME}/minicpan/modules/02packages.details.txt.gz"; |
require 'typhoeus' | |
require 'ethon' | |
resolve = Ethon::Curl.slist_append(nil, "example.com:443:1.2.3.X") | |
r = Typhoeus::Request.new( | |
"https://example.com", | |
resolve: resolve, | |
# verbose: true, | |
) |
Given this URL:
Append #foo=bar
to the URL, and paste it to the location bar: