Skip to content

Instantly share code, notes, and snippets.

View bluelovers's full-sized avatar

bluelovers bluelovers

View GitHub Profile
@xpansive
xpansive / LICENSE.txt
Created September 25, 2011 22:08 — forked from 140bytes/LICENSE.txt
HSV to RGB in 107 bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@falsefalse
falsefalse / .git-ignoreoncommit.sh
Created September 23, 2011 21:11
Git ignore changed files on commit
# do whatever the fuck you want with it license
# set 'assume unchanged' for files in list, replicates tortoise svn 'ignore on commit' feature
# source ~/.git-ignoreoncommit.sh in your profile
# https://github.com/falsefalse
function git-ioc {
VER="0.2"
ignorefile=".gitignore-oncommit"
@Acorn-zz
Acorn-zz / GM_XHR.js
Created July 2, 2011 13:32 — forked from monperrus/GM_XHR.js
allows using all Jquery AJAX methods in Greasemonkey
// allows using all Jquery AJAX methods in Greasemonkey
// inspired from http://ryangreenberg.com/archives/2010/03/greasemonkey_jquery.php
// works with JQuery 1.5
// (c) 2011 Martin Monperrus
// (c) 2010 Ryan Greenberg
//
// Usage:
// $.ajax({
// url: '/p/',
// xhr: function(){return new GM_XHR();},
@steren
steren / index.html
Created November 18, 2010 02:24
call Wikipedia API using jQuery and parse result
<div id="insertTest"></div>
<script>
var wikipediaHTMLResult = function(data) {
var readData = $('<div>' + data.parse.text.* + '</div>');
// handle redirects
var redirect = readData.find('li:contains("REDIRECT") a').text();
if(redirect != '') {
callWikipediaAPI(redirect);