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 request = require('request'); | |
var cheerio = require('cheerio'); | |
request.post( | |
'http://klogic.kmutnb.ac.th:8080/kris/tess/dataQuerySelector.jsp?query=examTab', | |
{ | |
form: { | |
facCode: '06', | |
currCode: '56060214' | |
} |
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 request = require('request'); | |
var cheerio = require('cheerio'); | |
request.get( | |
'http://en.wikipedia.org/wiki/Stack_(abstract_data_type)', | |
function (error, response, body) { | |
if (!error && response.statusCode == 200) { | |
extractData(body); | |
} | |
} | |
); |
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 https = require('https'); | |
var fs = require('fs'); | |
var url = "https://graph.facebook.com/204379732996457/photos"; | |
getGraphData(url); | |
function getGraphData(url) { | |
https.get(url, function(response) { | |
var result = ''; | |
response.on('data', function(chunk) { |
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 myJSON = { | |
firstName: 'Nati', | |
lastName: 'Namvong', | |
stdCode: '4466260181', | |
enroll: [{ | |
subjectName: 'Mobile', | |
subjectId: '665313', | |
creadit: 3 | |
}, { | |
subjectName: 'C++', |
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 https = require('https'); | |
var fs = require('fs'); | |
https.get("https://graph.facebook.com/204379732996457/photos", function(response) { | |
var result = ''; | |
response.on('data', function (chunk) { | |
result += chunk; | |
}); | |
response.on('end', function (chunk) { | |
var photos = JSON.parse(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
#!/usr/bin/env node | |
// | |
// This hook copies various resource files | |
// from our version control system directories | |
// into the appropriate platform specific location | |
// | |
// configure all the files to copy. |
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
<main> | |
<div class="one"><span></span></div> | |
<div class="two"><span></span></div> | |
<div class="three"><span></span></div> | |
</main> |
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
#!/bin/bash | |
PHP_VERSION="5.6" | |
PHALCON_VERSION="1.3.2" | |
PWD=`pwd` | |
cd ~ | |
rm -rf ~/cphalcon | |
phpenv global $PHP_VERSION |
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
setTimeout(function(){ | |
alert("Hello"); | |
}, 3000); |
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
console.log('Step 1'); | |
funcSync(); | |
console.log('Step 3'); | |
function funcSync () { | |
console.log('Step 2'); | |
} | |
// ผลลัพท์ | |
// Step 1 |
OlderNewer