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(){ | |
$("#buttons a").each(function() { | |
var href = $(this).attr("href"); | |
if(href == '') { | |
var imgSRC = $("img", this).attr("src"); | |
var imgSPL = imgSRC.split('.'); | |
var imgCOM = imgSPL[0] +'-g.'+ imgSPL[1]; | |
$("img", this).attr("src", imgCOM); | |
$(this).removeAttr('href'); | |
} |
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
$cursor = $collection->find(); | |
$array = iterator_to_array($cursor); | |
$keys = array(); | |
foreach ($array as $k => $v) { | |
foreach ($v as $a => $b) { | |
$keys[] = $a; | |
} | |
} | |
$keys = array_values(array_unique($keys)); | |
// assuming first key is MongoID so skipping it |
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
// detects ie and serves an ie specific page | |
if (isset($_SERVER['HTTP_USER_AGENT']) && | |
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) { | |
include "ie/index.html"; | |
return; |
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
@media (min--moz-device-pixel-ratio: 1.5), | |
(-o-min-device-pixel-ratio: 3/2), | |
(-webkit-min-device-pixel-ratio: 1.5), | |
(min-device-pixel-ratio: 1.5), | |
(min-resolution: 144dpi), | |
(min-resolution: 1.5dppx) { | |
/* http://mir.aculo.us */ | |
} |
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($){ | |
var convertTableToJson = function() | |
{ | |
var rows = []; | |
$('table tr').each(function(i, n){ | |
var $row = $(n); | |
rows.push({ | |
display_name: $row.find('td:eq(0)').text(), | |
first_name: $row.find('td:eq(1)').text(), | |
last_name: $row.find('td:eq(2)').text(), |
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
{ | |
"caret_style": "phase", | |
"detect_slow_plugins": false, | |
"font_face": "Ubuntu Mono", | |
"font_options": [ | |
"subpixel_antialias" | |
], | |
"font_size": 12, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, |
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
$default_sort_order = '[ | |
"display", | |
"overflow", | |
"-ms-overflow-x", | |
"-ms-overflow-y", | |
"overflow-x", | |
"overflow-y", | |
"visibility", | |
"width", | |
"min-width", |
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
'editor': | |
'fontSize': 14 | |
'fontFamily': 'Ubuntu Mono' | |
'lineHeight': 1.5 | |
'showIndentGuide': true | |
'tabLength': 4 | |
'hideIgnoredNames': true | |
'core': | |
'themes': [ | |
'atom-dark-ui' |
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
/** | |
* A bind polyfill for browsers that don't support the bind method. | |
*/ | |
if (!Function.prototype.bind) { | |
Function.prototype.bind = function (oThis) { | |
if (typeof this !== 'function') { | |
// closest thing possible to the ECMAScript 5 internal IsCallable function | |
throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable'); | |
} | |
var aArgs = Array.prototype.slice.call(arguments, 1), fToBind = this, fNOP = function () { |
OlderNewer