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> | |
<head> | |
<title>My Bad</title> | |
<script type="text/javascript" src="/misc/jquery.js?v=1.4.2"></script> | |
<script type="text/javascript" src="/sites/all/modules/custom/t_samsungssa/js/teamie.js?v=1.0"></script> | |
<script type="text/javascript"> | |
// Initialize the client | |
var teamie = Teamie.getClient(); |
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> | |
<head> | |
<title>Simple HTML</title> | |
<script type="text/javascript" src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<style type="text/css"> | |
#navbar { | |
display: block; | |
} | |
#navbar ul { |
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 | |
// Source associative array 1 | |
$source1 = array( | |
2 => 'Hello', | |
3 => 'World' | |
); | |
// Source associative array 2 | |
$source2 = 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
<?php | |
ini_set('memory_limit', '256M'); | |
$maximum = 1000000; // a million if you were wondering.. | |
global $values; | |
function check_if_circular($prime) { | |
global $values; | |
$back2back = $prime . $prime; // 7373 | |
$count = strlen($prime); | |
for($i = 0; $i <= $count - 1; ++$i) { |
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($) { | |
function bindScroll() { | |
$(window).scroll(function(){ | |
var threshold = 0.8 * ($(document).height() - $(window).height()); | |
if ($(window).scrollTop() >= threshold){ | |
$(window).unbind('scroll'); | |
getNextPage(); | |
} | |
}); |
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
/** | |
* Understanding Virtual Functions and Abstract Classes | |
* | |
* @author Amarnath R | |
*/ | |
/** | |
* Output: | |
* Time is 1300458436333 from SimpleDerivedClass | |
* DerivedConcreteClass is smelly |
NewerOlder