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
=($C5*if(CZ25>3, if(CZ25>5,if(CZ25>10,if(CZ25>25,if(CZ25>30,32,16),8),4),2),1) | |
+$C5*if(CZ26>3, if(CZ26>5,if(CZ26>10,if(CZ26>25,if(CZ26>30,32,16),8),4),2),1) | |
+$C5*if(CZ27>3, if(CZ27>5,if(CZ27>10,if(CZ27>25,if(CZ27>30,32,16),8),4),2),1) | |
+$C5*if(CZ28>3, if(CZ28>5,if(CZ28>10,if(CZ28>25,if(CZ28>30,32,16),8),4),2),1) | |
+$C5*if(CZ29>3, if(CZ29>5,if(CZ29>10,if(CZ29>25,if(CZ29>30,32,16),8),4),2),1) | |
+$C5*if(CZ30>3, if(CZ30>5,if(CZ30>10,if(CZ30>25,if(CZ30>30,32,16),8),4),2),1) | |
+$C5*if(CZ31>3, if(CZ31>5,if(CZ31>10,if(CZ31>25,if(CZ31>30,32,16),8),4),2),1) | |
+$C5*if(CZ32>3, if(CZ32>5,if(CZ32>10,if(CZ32>25,if(CZ32>30,32,16),8),4),2),1) | |
+$C5*if(CZ33>3, if(CZ33>5,if(CZ33>10,if(CZ33>25,if(CZ33>30,32,16),8),4),2),1) | |
+$C5*if(CZ34>3, if(CZ34>5,if(CZ34>10,if(CZ34>25,if(CZ34>30,32,16),8),4),2),1) |
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
$('#parent').click(function(e){ | |
var target = $(e.target); // the child that fired the original click | |
// do stuff here | |
}); |
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 autocomplete="off" onpaste="return false"> |
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
-- You should add a FULLTEXT index on each row you are searching | |
ALTER TABLE `user` ADD FULLTEXT INDEX (`first_name`); | |
-- | |
SELECT *, ( | |
(1.2 * (MATCH(title) AGAINST (:query IN BOOLEAN MODE))) + | |
(0.8 * (MATCH(description) AGAINST (:query IN BOOLEAN MODE))) + | |
(1.0 * (MATCH(tags) AGAINST (:query IN BOOLEAN MODE))) |
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
.box { | |
transition: all 0.2s ease; | |
animation: down-bump 0.4s ease; | |
} | |
.box:hover { | |
animation: up-bump 0.4s ease; | |
} | |
@keyframes up-bump { |
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
data:text/html,<title>Hello Data URL</title><p>File-less HTML page!</p> |
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
var t = setInterval(function(){ | |
// Do stuff | |
},1000); |
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
$(document) | |
.scrollTop( (localStorage.scrollPos) ? localStorage.scrollPos : 0 ) | |
.on('scroll', function() { | |
localStorage.scrollPos = $(document).scrollTop(); | |
}); |
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
/**************************************************** | |
* Website | |
****************************************************/ | |
// Page title | |
document.title.substring(0, 200); | |
// Domain (i.e. gist.github.com) | |
document.domain; |
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 | |
public function c($msg, $echo = 0) { | |
if (!isset($_SESSION['console'])) { $_SESSION['console'] = "";} | |
if ($echo) { | |
$buffer = "<pre>".$_SESSION['console']."</pre>"; | |
$_SESSION['console']=""; | |
return $buffer; | |
}else{ | |
$_SESSION['console'] = $_SESSION['console']." |