def initialize
puts "Hello, World!"
end
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
$ [sudo] gem install gollum |
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
.======. | |
| INRI | | |
| | | |
| | | |
.========' '========. | |
| _ xxxx _ | | |
| /_;-.__ / _\ _.-;_\ | | |
| `-._`'`_/'`.-' | | |
'========.`\ /`========' |
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
require 'digest/md5' | |
def gfm(text) | |
# Extract pre blocks | |
extractions = {} | |
text.gsub!(%r{<pre>.*?</pre>}m) do |match| | |
md5 = Digest::MD5.hexdigest(match) | |
extractions[md5] = match | |
"{gfm-extraction-#{md5}}" | |
end |
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
#!/bin/sh | |
# You might want to modify the first line to specify your own install location. | |
# In theory the rest should not need tweaking... | |
export GCC_PREFIX="$HOME/gcc4.7" | |
# Hopefully, you can tweak these as they get out of date, but the download URL's | |
# may not be stable to text substitution. | |
GMP_DOWNLOAD_VERSION=gmp-5.0.5 | |
MPFR_DOWNLOAD_VERSION=mpfr-3.1.0 | |
MPC_DOWNLOAD_VERSION=mpc-0.8.2 |
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
# See project page: https://github.com/technoweenie/faraday | |
# | |
# This patch applies to: | |
# | |
# faraday (0.8.4) | |
# faraday_middleware (0.8.8) | |
require 'faraday' | |
module Faraday | |
class Adapter |
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
#!/bin/bash -e | |
#------------------------------------------------------------------------------- | |
# Default values | |
#------------------------------------------------------------------------------- | |
: ${GCC_VERSION:=$1} | |
: ${LANGUAGES:=c,c++,fortran} | |
: ${MPFR_HOME:=} | |
: ${GMP_HOME:=} | |
: ${MPC_HOME:=} |
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
#! /bin/bash | |
# | |
# Copied from http://code.google.com/p/autotools-bootstrap/source/browse/autotools-bootstrap-basic.sh | |
# | |
# This is the basic script for project setup with the GNU autotools. | |
# Visit: | |
# http://seth-g-kriticos.blogspot.com/2008/06/how-to-set-up-open-source-c-development.html | |
# to find out, what it does. | |
echo "Please enter the project name: " |
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
#!/bin/sh | |
# Execute a command with a timeout | |
# Author: | |
# http://www.pixelbeat.org/ | |
# Notes: | |
# Note there is a timeout command packaged with coreutils since v7.0 | |
# If the timeout occurs the exit status is 124. | |
# There is an asynchronous (and buggy) equivalent of this |
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
#!/bin/bash | |
# | |
# Usage: [HPCTOOLKIT_HOME=/path/for/hpctoolkit/home] ./install-hpctoolkit.sh | |
# | |
# Environment Variables | |
# | |
# HPCTOOLKIT_HOME (Optional) To specify a location to build and | |
# install the HPCToolkit software. | |
# Default: $HOME/opt/hpctoolkit |
OlderNewer