An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
/** | |
* @return {Object.<function>} | |
*/ | |
function Deferred() { | |
/*------------------------------------------- | |
INIT | |
-------------------------------------------*/ | |
var queue = []; | |
/*------------------------------------------- |
var ED = ED || {}; | |
// Utility functions | |
ED.util = (function() { | |
// Data structure functions | |
function each(object, callback) { | |
if (object === null) return; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title></title> | |
<style> | |
html, body {height:100%;} | |
body { | |
background-color:#269; | |
background-image: -webkit-linear-gradient(white 2px, transparent 2px), |
// requires jquery.js, tested with reqwest.js with jquery compat mode | |
// uses http://geoplugin.net/json.gp | |
// lowercase arguments are just string placeholder | |
// F = Function placeholder | |
// Z = Cache placeholder | |
;(function(N,g,c,x,y,u,j,F,Z) { | |
F=function(s,e){Z?s(Z):$.ajax({url:'//'+u+'.net/'+j+'.gp',dataType:j+'p',jsonp:j+'callback',error:e,success:function(R){Z={};Z[c]={};Z[c][x]=R[u+'_'+x];Z[c][y]=R[u+'_'+y];s(Z)}})} | |
N[g]=N[g]||{getCurrentPosition:F,watchPosition:F,clearWatch:function(){Z=undefined}} |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 Alexander Prinzhorn (@Prinzhorn) https://github.com/Prinzhorn | |
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 |
/** | |
* @namespace pera1 | |
*/ | |
;(function(win, doc) { | |
"use strict"; | |
///////////////////////////////////////////////// | |
/** |
var MultiGetSet = function(opt){ | |
var getType = function(o) { | |
return ({}).toString.call(o).match(/\s([a-zA-Z]+)/)[1].toLowerCase() | |
}; | |
if(!opt.public || !opt.private) | |
return opt.public; | |
if(opt.handler && opt.handler.init) |
Function.prototype.after = function (action) { | |
var func = this; | |
return function () { | |
var result = func.apply(this, arguments); | |
action.bind(this,arguments,result)(); | |
return result; | |
}; | |
}; | |
Function.prototype.before = function (action) { |
(function(){ | |
var isGridActive = false; | |
var lineHeight = function(){ | |
return parseInt(window.getComputedStyle(document.body).lineHeight, 10); | |
}; | |
var gridDataURL = function(){ | |
var size = lineHeight(); |