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
docker build . -t [nametag]:[versiontag] | |
// -t คือ กำหนด tag ถ้าไม่กำหนด tag มันคือ default |
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 express = require("express"); | |
var app = express(); | |
var port = 4000; | |
app.get("/", (req, res) => { | |
res.send({ | |
status: "200" | |
}); | |
}); |
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
from django.shortcuts import render | |
from django.http import HttpResponse | |
# Create your views here. | |
def index(request): | |
return HttpResponse("<h1>Hello World</h1>") |
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
from django.conf.urls import url | |
from django.contrib import admin | |
urlpatterns = [ | |
url(r'^admin/', admin.site.urls), | |
url(r'^personmanagements/', personmanagements.views.index) | |
] |
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 firebaseref = firebase.database().ref(); //อยากจะเดินไปตรงไหนก็เดิน ถ้าจะเดินไปตรง ROOT สุดก็ไม่ต้องใส่อะไรเลย แต่ถ้าจะเดินไปโหนตต่างๆก็ไล่ลำดับไปเช่น (root/chid1/child2) | |
firebaseref.child("1").set("2"); //อยากจะset ให้มี childnode ชื่อเป็นอะไรก็ใส่ตรงช่อง 1 ใส่ค่าให้ childnodes ช่อง 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 firebaseRef = firebase.database().ref("ใส่ Root ลงไป"); | |
firebaseRef.once('value').then(function(dataSnapshot) { | |
console.log(dataSnapshot.key); //เอา Key ของ JSON ออกมาแสดง | |
console.log(dataSnapshot.val()); //เอา Value ของ JSON ออกมาแสดง | |
}) |
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
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> |
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
course(01). | |
course(02). | |
course(03). | |
course(04). | |
teachers(wmk). | |
teachers(spk). | |
teachers(ppk). | |
student(jack). | |
student(noei). | |
student(sai). |
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
eat(fred,meat). | |
eat(wima,meat). | |
eat(wima,vegetables). | |
eat(betty,vegetables). | |
eat(barney,meat). | |
eat(barney,vegetables). | |
food(meat). | |
food(vegetables). | |
carnivore(X):- eat(X,meat). | |
omnivore(X):- eat(X,meat), eat(X,vegetables). |
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 -S 0.0.0.0:port -t c:\xampp\htdocs | |
-S S ตัวใหญ่ | |
-t path webroot |