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
<ul id="twitter_update_list"></ul> | |
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> | |
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/andreruffert.json?callback=twitterCallback2&count=5"></script> |
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
/** | |
* Max Width | |
* The following CSS will apply if the viewing area is smaller than 600px. | |
* Separate stylesheet: <link rel="stylesheet" media="screen and (max-width: 600px)" href="small.css" /> | |
*/ | |
@media screen and (max-width: 600px) { | |
.class { | |
background: #ccc; | |
} | |
} |
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
Redirect 301 http://www.foo.bar/home http://www.foo.bar/ |
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
function display_filesize($filesize){ | |
if(is_numeric($filesize)){ | |
$decr = 1024; $step = 0; | |
$prefix = array('Byte','KB','MB','GB','TB','PB'); | |
while(($filesize / $decr) > 0.9){ | |
$filesize = $filesize / $decr; | |
$step++; | |
} |
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
public class EloRating | |
{ | |
public double Point1 { get; set; } | |
public double Point2 { get; set; } | |
public double FinalResult1 { get; set; } | |
public double FinalResult2 { get; set; } | |
public EloRating(double CurrentRating1, double CurrentRating2, double Score1, double Score2) | |
{ |
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
console.debug("This is a Debug message"); | |
console.info("This is just info"); | |
console.warn("This is a warning"); | |
console.error("This is an Error"); | |
// Console in Chrome | |
Ctrl+Shift+J | |
// Also works in the console in Firebug + Safari |
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
*:hover | |
{ | |
-moz-transition: all 1s ease; | |
-moz-transition: rotate(180deg); | |
-webkit-transition: all 1s ease; | |
-webkit-transform: rotate(180deg); | |
-o-transition: all 1s ease; | |
-o-transition: rotate(180deg); | |
} |
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> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<ul id="twitter_update_list"> | |
</ul> <!-- end twitter_update_list --> |
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
RewriteEngine On | |
RewriteRule ^styles.min.css$ styles.min.php [L] |
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
$('input').each(function(){ | |
$(this) | |
.data('default', $(this).val()) | |
.focus(function(){ | |
if ($(this).val() == $(this).data('default') || ''){ | |
$(this).val(''); | |
} | |
}) | |
.blur(function(){ | |
if ($(this).val() == '') { |
OlderNewer