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
%!TEX TS-program = xelatex | |
\documentclass[12pt]{scrartcl} | |
% The declaration of the document class: | |
% The second line here, i.e. | |
% \documentclass[12pt]{scrartcl} | |
% is a standard LaTeX document class declaration: | |
% we say what kind of document we are making in curly brackets, | |
% and specify any options in square brackets. |
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
(ns playground.experiments.lazy-reddit | |
(:require [net.cgrand.enlive-html :as html])) | |
(defn subreddit-url [name] | |
(str "http://www.reddit.com/r/" name)) | |
(defn fetch-page [url] | |
(html/html-resource (java.net.URL. url))) | |
(defn make-integer [n] |
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 ruby | |
require 'github_api' | |
require 'optparse' | |
options = {} | |
OptionParser.new do |opts| | |
opts.on("-a", "--add-gist-id", "Add gist ID to output filename") do |v| | |
options[:add] = true | |
end |
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 macruby | |
framework 'scriptingbridge' | |
keynote = SBApplication.applicationWithBundleIdentifier("com.apple.iWork.Keynote") | |
outliner = SBApplication.applicationWithBundleIdentifier("com.omnigroup.OmniOutlinerPro3") | |
document = outliner.classForScriptingClass('document').new | |
outliner.documents << document | |
document.get.statusVisible = false | |
document.get.columnTitleStyle.attributes[29].value = 'center' |
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 ruby | |
# hubic.rb Get credentials to Webdav server of Hubic account | |
require 'httpclient' | |
require 'json' | |
require 'optparse' | |
require 'highline/import' | |
module Hubic | |
extend self | |
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 ruby | |
FSCRIPT_PATH = "/Library/Frameworks/FScript.framework" | |
if ARGV.empty? | |
puts "Usage: #{$0} process_name" | |
exit | |
end | |
GDB = IO.popen("gdb", 'w') |
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 python | |
# encoding: utf-8 | |
""" | |
pdfoutlinedump.py | |
""" | |
from optparse import OptionParser | |
from pyPdf import PdfFileReader |
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 strict; use warnings; | |
use PDF::API2; | |
my $filename = shift =~ /\.pdf$/i | |
or die "Be kind enough to provide a PDF file to split as argument\n"; | |
my $oldpdf = PDF::API2->open($filename); | |
my $newpdf = PDF::API2->new; | |
for my $page_nb (1..$oldpdf->pages) { |
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
CmdUtils.makeSearchCommand({ | |
names: ["perldoc"], | |
url: "http://perldoc.perl.org/search.html?q={QUERY}", | |
description: "Search the Perl 5.10.1 documentation.", | |
author: { name: "i-blis", email: "[email protected]" }, | |
}) | |
CmdUtils.makeSearchCommand({ | |
names: ["cpan"], |
NewerOlder