Skip to content

Instantly share code, notes, and snippets.

View artob's full-sized avatar
⌨️
Coding

Arto Bendiken artob

⌨️
Coding
View GitHub Profile
@gkellogg
gkellogg / Gemfile
Created February 11, 2012 02:17
A Micro Gem for running a simple SPARQL endpoint
source "http://rubygems.org"
gemspec
group :development do
gem 'shotgun'
gem "wirble"
end
@chetan
chetan / yardoc_cheatsheet.md
Last active July 22, 2025 02:26
YARD cheatsheet
@dupuy
dupuy / README.rst
Last active June 4, 2025 14:19
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@lueo
lueo / Stack is guilty!
Created February 19, 2012 08:41
Interesting text from bitcoin blockchain (as of 2012/Feb/18)
EThe Times 03/Jan/2009 Chancellor on brink of second bailout for banks
z+o>z+o>z+o>z+o>z+o>
z+o>z+o>z+o>z+o>z+o>
z+o>z+o>z+o>z+o>z+o>
z+o>z+o>z+o>z+o>z+o>
z+o>z+o>z+o>z+o>z+o>
z+o>z+o>z+o>z+o>z+o>
=ybegin line=128 siz
e=8776 name=bitcoin.
***2*.+D*/***+***h+E
@amejiarosario
amejiarosario / RDF_basic.rb
Created February 22, 2012 01:44
RDF.rb basics
#=== Real life examples ===
graph = RDF::Graph.new
# read from file
graph = RDF::Graph.load("http://datagraph.org/jhacker/foaf.nt")
# -or- from the web
graph = RDF::Graph.load("http://dbpedia.org/resource/Elvis_Presley")
graph << RDF::RDFa::Reader.open("http://www.bestbuy.com/shop/ipad+xoom+-windows")
graph.each_predicate { |s| puts s.inspect }
@fnichol
fnichol / README.md
Created February 26, 2012 01:23
A Common .ruby-version File For Ruby Projects

A Common .ruby-version File For Ruby Projects

Background

I've been using this technique in most of my Ruby projects lately where Ruby versions are required:

  • Create .rbenv-version containing the target Ruby using a definition name defined in ruby-build (example below). These strings are a proper subset of RVM Ruby string names so far...
  • Create .rvmrc (with rvm --create --rvmrc "1.9.3@myapp") and edit the environment_id= line to fetch the Ruby version from .rbenv-version (example below).

Today I learned about another Ruby manager, rbfu, where the author is using a similar technique with .rbfu-version.

@anthonywu
anthonywu / update_ubuntu_old_release.sh
Created March 9, 2012 23:08
Redirecting Ubuntu apt-get to old-releases
# Point end-of-life Ubuntu versions' apt source URLs to old-releases.*
# See: https://help.ubuntu.com/community/EOLUpgrades
sudo sed -i s/us.archive.ubuntu/old-releases.ubuntu/g /etc/apt/sources.list
sudo sed -i s/security.ubuntu/old-releases.ubuntu/g /etc/apt/sources.list
sudo apt-get update
@ramnathv
ramnathv / gh-pages.md
Created March 28, 2012 15:37
Creating a clean gh-pages branch

Creating a clean gh-pages branch

This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]

cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" &gt; index.html
@sufyanm
sufyanm / taglibs.jsp
Created April 19, 2012 00:57
Taglibs
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
@njh
njh / _README.md
Last active October 5, 2019 12:06
Shell script to create a WebID certificate using OpenSSL