All of the following information is based on go version go1.8.3 darwin/amd64
.
(Bold = supported by go
out of the box, ie. without the help of a C compiler, etc.)
android
darwin
/* | |
Template literals for-loop example | |
Using `Array(5).join(0).split(0)`, we create an empty array | |
with 5 items which we can iterate through using `.map()` | |
*/ | |
var element = document.createElement('div') | |
element.innerHTML = ` | |
<h1>This element is looping</h1> | |
${Array(5).join(0).split(0).map((item, i) => ` |
package main | |
import ( | |
"log" | |
"net/http" | |
) | |
func redirect(w http.ResponseWriter, r *http.Request) { | |
http.Redirect(w, r, "http://www.google.com", 301) |
http://laptrinhvien.bachkhoa-aptech.edu.vn/?utm_source=GA&utm_team=OP&utm_term=&utm_medium=Search&utm_campaign=HDSE&utm_content=aptech&&gclid=Cj0KCQjwyoHlBRCNARIsAFjKJ6AZ7k0kL9LyAghqqodB0J8rUues_WHFKe_IRnKJvtAGnRjmJkBDQAMaAiW1EALw_wcB&fbclid=IwAR3_GmEQ7MKTuoyVpEchAwkSTHgtbUhE9m-NJGCrKVXQRrEETnSbKgjyOKA | |
http://www.tranngocsinh.com/dutdiemdaday?fbclid=IwAR3E7eTBboHAZdjyUKEpj6NoQ-UK2nZPudY6rzBkqWGhOkBnlCD4sWuX5FY |
Hàm Callback - Hàm nâng cao trong Javascript
Trong javascript, các hàm là một first-class objects (hay gọi là các đối tượng định nghĩa sẵn), vì thế nên hàm là một instance của Object, và được sử dụng như các object khác như String,Array,Number,...Và vì chính nó là một đối tượng, Function có thể:
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.conf
to /usr/local/etc/nginx/
default.conf
and default-ssl.conf
to /usr/local/etc/nginx/sites-available
homebrew.mxcl.nginx.plist
to /Library/LaunchDaemons/
//https://en.wikipedia.org/wiki/Doomsday_rule | |
#include <stdio.h> | |
#include<iostream> | |
#include<math.h> | |
#include<iomanip> | |
using namespace std; | |
main() | |
{ |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"strings" | |
) | |
func main() { |