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
<% | |
out.print("Hell JSP"); | |
%> |
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
import java.io.BufferedReader; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.util.*; | |
import java.util.ArrayList; | |
import java.util.List; |
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 imgs = document.images; | |
var len = document.images.length; | |
for(i = 0; i < len; i++) | |
document.writeln(imgs[0].src); | |
// GET IMG of TAG | |
var style = "<head><style>a:visited { color: red; }</style></head>"; | |
var body = "background-color: #F7F7F7;"; | |
var css = "/*position: absolute;*/"; |
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
import java.util.Scanner; | |
public class CountCharacter{ | |
public static void main(String[] args){ | |
Scanner scn = new Scanner(System.in); | |
System.out.print("Enter Name : "); | |
String name = scn.nextLine(); | |
int len = name.length(); | |
int[][] ascii = new int[len][2]; |
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 div = document.getElementsByClassName("fwb fcg");//("_5pax"); | |
var mbs = document.getElementsByClassName("mbs _5pbx userContent"); | |
var siz_mbs = mbs.length; | |
var siz_5pax = div.length; | |
var facebook = ""; var detail = ""; | |
var facedetail = "<table border='1'>"; | |
for(var i = 0; i < siz_5pax; i++){ | |
facebook = "<tr><td>" + mbs[i].innerHTML+"</td>"; | |
detail = "<td>" + div[i].innerHTML+"</td></tr>"; | |
facedetail += detail + facebook; |
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
ตั้งค่า proxy firefox ให้เปิดเว็บที่ block ได้ | |
Tool -> Option.. -> Network -> Setting... | |
-> ค่าพรอกซี่ที่ตั้งด้วยตนเอง | |
-> proxy HTTP: proxy.trueinternet.co.th Port: 8080 | |
port: ที่ยังใช้ใน TH | |
- 203.154.224.16:3128 | |
- 61.19.219.133:8080 | |
- 202.29.60.207:3128 |
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
1.Install Xampp (port : 80,ssl : 443) **port จะชนกันถ้าในเครื่องมี VMWare | |
2.Download & Install Composer : https://getcomposer.org/download/ | |
-2.1.(*)Install Shell Menus | |
-2.2.Required PHP 5.4+ | |
3.Copy composer.phar to ./htdocs folder | |
4.Install Laravel Framework | |
-4.1.Open Command line "cd c:\xampp\htdocs" | |
-4.2.C:\xampp\htdocs> php composer.phar create-project laravel/laravel c:\xampp\htdocs\app-name | |
5.Test Inastall Laravel Framework | |
-5.1.Open : localhost/app-name/public |
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
drive:\app-name\app\config | |
app.php :: กำหนดภาษาหลัก, สร้างชื่อย่อ (aliases) ให้กับ namespace และกำหนด URL หลัก เช่น http://localhost | |
auth.php :: กำหนดการรับรองความถูกต้อง ชื่อ Model, Database Table เป็นต้น | |
cache.php :: กำหนดรูปแบบการ Cache สนับสนุน Memcached และ Redis | |
database.php :: การหนดการเชื่อมต่อฐานข้อมูล ประเภทต่าง ๆ เช่น sqlite, mysql, pgsql, sqlsrv เป็นต้น | |
mail.php :: กำหนดค่า SMTP, HOST, PORT, USERNAME, PASSWORD และอื่น ๆ ให้กับ Email | |
session.php :: กำหนดค่า SESSION ต่าง ๆ อาทิเช่น ตั้งเวลาการเก็บค่า Session รูปแบบการจัดเก็บค่า Session เป็นต้น | |
view.php :: กำหนด Path ให้กับไฟล์ View ของเว็บแอพฯ ของเรา | |
workbench.php :: กำหนดค่าอื่น ๆ เช่น ชื่อของเรา, อีเมล์ของเรา เป็นต้น |
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
Preferences-> Key-Binding-User -> paste -> | |
1.auto-format :: ctrl+alt+t | |
-{ "keys": ["ctrl+alt+t"], "command": "reindent" , "args": {"single_line": false}} | |
2.python-auto-format :: | |
- GNU/Linux: ctrl+shift+r | |
- OSX: ctrl+shift+r | |
- Windows: ctrl+shift+r | |
- { "caption": "User: Python PEP8 Autoformat", "command": "pep8_autoformat" } | |
:: Result |
OlderNewer