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
#Assumption xampp path is C:\xampp | |
#configuration for virtual host on local machine for development and staging. | |
#locate http-vhosts.conf, and paste the configuration below. ( Edit path, port, server name as necessary). In my case is C:\xampp\apache\conf\extra\httpd-vhosts.conf | |
#make sure the path for the error,and access logs exists; error log and access log are not mandatory. | |
#add a domain name in your hosts file, in my case is "dev", located under C:\Windows\System32\drivers\etc (Windows 7) | |
#restart and have fun | |
<VirtualHost dev:80> | |
ServerAdmin postmaster@stage |
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 | |
register_shutdown_error('shutdown_notify'); | |
function shutdown_notify(){ | |
$error = error_get_last(); | |
if(!empty($error) && in_array($error['type'], array(E_ERROR, E_USER_ERROR))){ | |
echo '<h1>An error has occured. Team has been notified of the error</h1>'; | |
$to = 'example@email.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
[XDebug] | |
zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll" | |
xdebug.profiler_append = 0 | |
xdebug.profiler_enable = 0 | |
xdebug.profiler_enable_trigger = 0 | |
xdebug.profiler_output_dir = "C:\xampp\tmp" | |
xdebug.profiler_output_name = "cachegrind.out.%t-%s" | |
xdebug.remote_enable = 1 | |
xdebug.remote_handler = "dbgp" |
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
{ | |
"scope": "text.html - source - meta.tag, punctuation.definition.tag.begin", | |
"completions": | |
[ | |
{ "trigger": "a", "contents": "<a href=\"$1\">$0</a>" }, | |
{ "trigger": "abbr", "contents": "<abbr>$0</abbr>" }, | |
{ "trigger": "acronym", "contents": "<acronym>$0</acronym>" } | |
] |
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
{ | |
"symbols": { | |
"x0" : "\u2070", | |
"x1" : "\u00B9", | |
"x2" : "\u00B2", | |
"x3" : "\u00B3", | |
"x4" : "\u2074", | |
"x5" : "\u2075", | |
"x6" : "\u2076", | |
"x7" : "\u2077", |
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
vagrant up => wake up, rise my child | |
vagrant halt => shut the f up, and stand down | |
vagrant suspend => freeze u motherfucker | |
vagrant destroy => die! die! | |
vagrant add box "url of box" => collecting the carbon for the offspring | |
vagrant init => dna blueprint for offspring | |
vagrant ssh => soul link | |
vagrant resume => unfreeze u motherfucker | |
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"> | |
<meta charset="utf-8"> | |
<title>Demo</title> | |
<! -- javascript allow wizards to manipulate the world of DOM, DOM is a world that can display all sorts of knowledge | |
and we shall use the power of javascript --> | |
<!-- javascript has a lot of power, but there a dimensional issue involving browser universe . Each universe has different behaviour to javascript. To resolve this issue, jQuery is an advance universal magic that is founded on javascript used for cross dimensional DOM manipulation. We shall learn jQuery in this bin --> | |
<head> | |
<!-- loading jquery from cdn source --> | |
<script type="text/javscript" src="http://codeorigin.jquery.com/jquery-2.0.3.min.js"> </script> |
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 | |
//This is a s comment | |
/** | |
This is a block comment | |
**/ | |
print("Outputing some strings"); | |
echo "Echoing some strings and string formatter\n"; |
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>Jquery Welcome</title> | |
<script type="text/javscript" src="http://codeorigin.jquery.com/jquery-2.0.3.min.js"></script> | |
<script type="text/javscript"> | |
//before we go further, jquery has certain types of material it can manipulate. | |
//this materials are virtual types, enhanced pseudo-types, function types |
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
asymptotic analysis(mathematical formalization) | |
- Basic vocabulary to discuss design and analysis of algorithms | |
- focuses on the "sweet spot" to suppress architecture/language/compiler dependent details. | |
- sharp enough to make useful comparisons between different alogrithms, especially on large inputs. | |
- suppress constant factors and lower-order terms. | |
- lower order terms are irrelevant for large inputs, constant factors are too system dependent. | |
Example: One loop | |
Problem: Does array A contain the integer t? | |
given A (array of length n) |
OlderNewer