Skip to content

Instantly share code, notes, and snippets.

Phạm Huy Hoàng conanak99

Block or report user

Report or block conanak99

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View server.js
const http = require('http')
const port = 3000
const server = http.createServer((request, response) => {
console.log(request.url)
response.end('Hello from ToiDiCodeDao')
})
server.listen(port, (err) => {
if (err) {
View harry.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 90s-marvel-proxy.js
'use latest';
import { fromExpress } from 'webtask-tools';
import express from 'express';
import logger from 'morgan';
import cors from 'cors';
import bodyParser from 'body-parser';
import url from 'url';
import axios from 'axios';
View new_js.html
<html>
<body>
<script src="/dist.js"></script>
</body>
<html>
View register.js
const appName = require('./base'); // Dùng module base.js
const { ajax, show } = require('./util'); // Dùng module util.js
async function register(username) {
// Sử dụng hàm ajax và show của module util
await ajax.post('/register', { username });
show(`Welcome ${username} to ${appName}`);
}
// Các module khác có thể dùng hàm register của module này
View old_js.html
<html>
<body>
<script src="/base.js"></script>
<script src="/util.js"></script>
<script src="/register.js"></script>
</body>
<html>
View index-2010.html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tài liệu học tập</title>
</head>
<body ng-app="javApp" ng-controller="javController">
<ul>
<!-- Template trong view -->
<li ng-repeat="video in learningVideos">
<a href="{{video.link}}">{{video.name}}</a>
</li>
View index-2006.html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tài liệu học tập</title>
</head>
<body>
<ul>
<li><a href="http://jav.av">Tài liệu Nhật</a></li>
<li><a href="http://kav.av">Tài liệu Hàn</a></li>
<li><a href="http://vav.av">Tài liệu Việt</a></li>
</ul>
View jquery.js
$('#jav > .inner').text('Do not watch JAV')
View vanilla.js
document.getElementById('jav')
.getElementByClass('inner')[0].innerText = 'Do not watch JAV';
You can’t perform that action at this time.