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 |
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 | |
/** | |
* Filters/resizes video embed codes. | |
* @param string embed code provided by video embedding service | |
* @param boolean $wmode | |
* @param mixed $width | |
* @param mixed $height | |
* @return string | |
*/ | |
function crb_filter_video($html, $wmode = false, $width = false, $height = 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
set_properties(array( | |
'name' => 'email', | |
'value' => 'emil@2c-studio.com' | |
)) |
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
[ | |
{ "keys": ["ctrl+tab"], "command": "next_view" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }, | |
{ "keys": ["ctrl+k", "k"], "command": "travel_to_pane", "args": {"direction": "up"} }, | |
{ "keys": ["ctrl+k", "l"], "command": "travel_to_pane", "args": {"direction": "right"} }, | |
{ "keys": ["ctrl+k", "j"], "command": "travel_to_pane", "args": {"direction": "down"} }, | |
{ "keys": ["ctrl+k", "h"], "command": "travel_to_pane", "args": {"direction": "left"} }, | |
{ "keys": ["ctrl+k", "shift+k"], "command": "carry_file_to_pane", "args": {"direction": "up"} }, |
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 users = [ | |
'syordanov', | |
'avakulenko', | |
'martingeorgiev', | |
'nnaimov', | |
'pkostadinov', | |
'gvelchev', | |
'deqngeorgiev', | |
'sstoqnov', | |
'kolev', |
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>Regular Expression in Javascript</title> | |
<script> | |
var text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod " + | |
"tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, " + | |
"quis nostrud exercitation ullamco 159 975 9951 nisi ut aliquip ex ea commodo " + | |
"consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse " + |
OlderNewer