- Git Initialization
git init
- Git commit
git commit -m "Intial commit"
- Add Remote repository
(function(){ | |
console.log(document.getElementById('mainHeading')); | |
console.log(document.getElementsByClassName('heading')); | |
console.log(document.getElementsByTagName('p')); | |
console.log(document.getElementsByName('txtName')); | |
//get first <p> element | |
console.log(document.getElementsByTagName('p')[0]); | |
Open httpd.conf and replace line | |
Require local | |
by | |
Require all granted | |
That's all. After you restart Wamp server, you will be able to access your machine frm any machine in network using URL like http://aquasmit (assuming that aquasmit is your machine name) |
file_uploads on (or true or 1) | |
upload_tmp_dir NULL | |
post_max_size 8M | |
upload_max_filesize 2M | |
max_execution_time 30 (in seconds) | |
max_input_time -1 (no limit) | |
memory_limit 128M |
$_GET | |
$_POST | |
$_SERVER | |
$_COOKIE | |
$_SESSION | |
$_FILES |
//Resource: http://www.pontikis.net/blog/how-to-use-php-improved-mysqli-extension-and-why-you-should | |
/*MySQLi supports two tpe of APIs | |
1. Procedural (NOT RECOMMENDED) | |
2. Object Oriented API | |
*/ | |
/********************connecting to database******************************/ | |
//Procedural | |
$conn = mysqli_connect($dbServer,$database, $username, $password); | |
if(mysqli_connect_errno()){ |
git init
git commit -m "Intial commit"
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
var Xray = require('x-ray'); | |
var x = Xray(); | |
x('https://www.tripadvisor.com/Hotel_Review-g60763-d93545-Reviews-The_Manhattan_at_Times_Square_Hotel-New_York_City_New_York.html', '#REVIEWS .reviewSelector', [{ | |
reviewer: '.username.mo span', | |
//ajax_link:'div#most_recent_pager div .pam.uiBoxWhite.noborder.uiMorePagerPrimary@href' | |
reviewer_location: '.location', | |
//review_rating: '.rating-very-large meta[content]@content', | |
//review_date: '.rating-qualifier [content]@content', |
var Xray = require('x-ray'); | |
var x = Xray(); | |
x('https://www.yelp.com/biz/bottega-louie-los-angeles', 'ul.ylist li .review--with-sidebar', [{ | |
reviewer: '.user-name .user-display-name', | |
reviewer_location: '.user-location b', | |
review_rating: '.rating-very-large meta[content]@content', | |
review_date: '.rating-qualifier [content]@content', | |
review_content:'.review-content p' | |
}]) |
###Using node.js as a simple web server that will serve static files
You can use Connect and ServeStatic with Node.js for this:
Step 1: Install connect & serve-static packages
npm install connect serve-static
Step 2: Create server.js file with content
var connect = require('connect');