This file contains hidden or 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() { | |
}); |
This file contains hidden or 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"> | |
<head> | |
<meta charset="utf-8"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"></script> | |
<script type="text/javascript"> | |
</script> | |
<style text="text/css"> |
This file contains hidden or 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
/* For modern browsers */ | |
.clearfix:before, | |
.clearfix:after { | |
content:""; | |
display:table; | |
} | |
.clearfix:after { clear:both; } | |
/* For IE 6/7 (trigger hasLayout) */ | |
.clearfix { zoom:1; } |
This file contains hidden or 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
SELECT * FROM purchases WHERE company_id = 17 AND DATE_SUB(CURDATE(),INTERVAL 1 MONTH) <= created_at; |
This file contains hidden or 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
.shadow { | |
-moz-box-shadow: 3px 3px 5px 6px #ccc; | |
-webkit-box-shadow: 3px 3px 5px 6px #ccc; | |
box-shadow: 3px 3px 5px 6px #ccc; | |
} |
This file contains hidden or 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
.shadow { | |
-moz-box-shadow: inset 0 0 10px #000000; | |
-webkit-box-shadow: inset 0 0 10px #000000; | |
box-shadow: inset 0 0 10px #000000; | |
} |
This file contains hidden or 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
// NewIfNull | |
public T NewIfNull<T>(T obj) where T:new() | |
{ | |
if (obj == null) { obj = new T(); } | |
return obj; | |
} |
This file contains hidden or 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
/** | |
* Array.prototype.[method name] allows you to define/overwrite an objects method | |
* needle is the item you are searching for | |
* this is a special variable that refers to "this" instance of an Array. | |
* returns true if needle is in the array, and false otherwise | |
*/ | |
Array.prototype.contains = function ( needle ) { | |
for (i in this) { | |
if (this[i] == needle) return true; | |
} |
This file contains hidden or 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
// Remove last four characters | |
var myString = "abcdefg"; | |
var newString = myString.substr(0, myString.length-4); | |
// Remove first two characters | |
var myString = "abcdefg"; | |
var newString = myString_2.substr(2); |
This file contains hidden or 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
/* Times New Roman-based stack */ | |
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; | |
/* Modern Georgia-based serif stack */ | |
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; | |
/* Traditional Garamond-based serif stack */ | |
font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif; | |
/* Helvetica/Arial-based sans serif stack */ |
OlderNewer