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"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Javascript test file</title> | |
<script> | |
var test_var = 5; | |
console.log(test_var); | |
</script> | |
</head> |
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"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Rock - Scissors - Paper</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.js"></script> | |
<script> | |
"use strict" | |
$(function() { | |
// $('button').click(function() { |
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"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Tic Tac Toe</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.js"></script> | |
<script> | |
"use strict" | |
$(function() { | |
var game = { |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.js"></script> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="buttons"> |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<script> | |
Object.prototype.inspect = function () { |
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
title.on('click', function(e){ | |
if( strike.css('display') == 'block' ){ | |
var closing = dd.hasClass('opened'); | |
dd.slideToggle(closing); | |
dd.toggleClass('opened', closing); | |
} | |
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
# PHP OOP Learning Plan | |
## Lecture 1 - Basic Concepts | |
* Classes describe real-world objects or provide useful abstractions. Setup good example without any code -- e.g. `Widget` class | |
* Object are instances of a class. They are actual entities that programmers use to get the job done | |
* PHP syntax -- `class` and `new` keywords. _Live demo._ | |
* `__construct()` special method. It can't return a value since it automatically returns the newly created object. _Live demo._ | |
* Object properties. Describe the `->` syntax. _Live demo._ | |
* Object methods. _Live demo._ |
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 result = 5 / 0; | |
document.write(result); |
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
add - remove | |
begin - end | |
create - destroy | |
first - last | |
get - put | |
get - set | |
increment - decrement | |
insert - delete | |
lock - unlock | |
min - max |
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
0000000000000000 | |
0000-0000-0000-0000 | |
0000 0000 0000 0000 | |
00000000 00000000 | |
00-00-00-00-00-00-00-00 |