Skip to content

Instantly share code, notes, and snippets.

View deiga's full-sized avatar

Timo Sand deiga

View GitHub Profile
@deiga
deiga / Kaminari ajax pager
Created January 26, 2013 17:00 — forked from rguggemos/Kaminari ajax pager
Kaminari ajax pager
If you switch to kaminari,
http://railscasts.com/episodes/254-pagination-with-kaminari
...the lines added to application.js become redundant when you implement the pager like in this demo project:
https://github.com/amatsuda/kaminari_example/tree/ajax
in index.html:
@deiga
deiga / pseudo.js
Last active August 29, 2015 13:57
SteamService.getGroupMembers = function(steam_id, callback) {
callback = callback || noop;
var url = 'http://steamcommunity.com';
if (/\d{3,10}/.test(steam_id)) {
steam_id = calculateSteamGroupId64(steam_id);
url += '/gid/';
} else {
url += '/groups/';
}
url += steam_id + '/memberslistxml/?xml=1';
@deiga
deiga / 0_reuse_code.js
Created November 6, 2015 15:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console