This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://hawttrends.appspot.com/api/terms/ | jq '.["42"]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rates | |
rate "128000" | |
cl_cmdrate "128" | |
cl_updaterate "128" | |
cl_interp "0.0" | |
cl_interp_ratio "1" | |
cl_lagcompensation "1" | |
// Mouse | |
sensitivity "2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<h1>Tågtider API - Exempel</h1> | |
<pre><?php | |
// Setup | |
$url = 'http://api.tagtider.net/v1/stations.json'; | |
$key = 'tagtider'; | |
$secret = 'codemocracy'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Basic call method for setting and removing object properties | |
* | |
* @param String $method | |
* @param Array $args | |
* | |
* @return Mixed | |
* | |
* @access public | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* YN string to dates | |
* | |
* @param string $from | |
* @param string $to | |
* @param string $yn | |
* | |
* @return array $dates | |
*/ | |
function ynToDates($from, $to, $yn) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Seconds since midnight to date | |
* | |
* @param string $date | |
* @param int $seconds | |
* | |
* @return string | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Convert coordinates with projection | |
* | |
* @param string $easting X coordinate | |
* @param string $northing Y coordinate | |
* @param string $projection | |
* | |
* @return array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin respond-to($media) { | |
@if $media == landscape { | |
@media screen and (min-width: 321px) { @content; } | |
} | |
@else if $media == tablet { | |
@media only screen and (min-width: 768px) { @content; } | |
} | |
@else if $media == desktop { | |
@media only screen and (min-width: 992px) { @content; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See http://alexmarandon.com/articles/web_widget_jquery/ | |
(function() { | |
// Localize jQuery variable | |
var jQuery; | |
var remoteJquery = 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'; | |
var localJquery = 'static/js/jquery-1.6.4.min.js'; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$apiKey = 'foo123bar'; | |
$username = 'you@domain.com'; | |
$password = 'yourpassword'; | |
$check = 123; | |
// Init cURL | |
$curl = curl_init(); | |
// Set target URL | |
curl_setopt($curl, CURLOPT_URL, 'https://api.pingdom.com/api/2.0/checks/'.$check); |
OlderNewer