Skip to content

Instantly share code, notes, and snippets.

View Hunter-Github's full-sized avatar

Space exploration enthusiast Hunter-Github

View GitHub Profile
@Hunter-Github
Hunter-Github / restyling_template.user.js
Created January 31, 2016 18:45
A simple GreaseMonkey script template to implement a user-defined CSS without Stylish
// ==UserScript==
// @name Fix some style in GreaseMonkey
// @match *://example.com/*
// @copyright 2016+, You
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle ( " \
// ADD YOUR CSS HERE
" );
@mhermans
mhermans / neo4R_example.R
Created August 29, 2011 09:50
Neo4j-Cypher-R
# Requirements
#sudo apt-get install libcurl4-gnutls-dev # for RCurl on linux
#install.packages('RCurl')
#install.packages('RJSONIO')
library('RCurl')
library('RJSONIO')
query <- function(querystring) {
h = basicTextGatherer()
@mislav
mislav / pagination.md
Created October 12, 2010 17:20
"Pagination 101" by Faruk Ateş

Pagination 101

Article by Faruk Ateş, [originally on KuraFire.net][original] which is currently down

One of the most commonly overlooked and under-refined elements of a website is its pagination controls. In many cases, these are treated as an afterthought. I rarely come across a website that has decent pagination, and it always makes me wonder why so few manage to get it right. After all, I'd say that pagination is pretty easy to get right. Alas, that doesn't seem the case, so after encouragement from Chris Messina on Flickr I decided to write my Pagination 101, hopefully it'll give you some clues as to what makes good pagination.

Before going into analyzing good and bad pagination, I want to explain just what I consider to be pagination: Pagination is any kind of control system that lets the user browse through pages of search results, archives, or any other kind of continued content. Search results are the o