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
<html> | |
<body> | |
<script src="/dist.js"></script> | |
</body> | |
<html> |
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
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 |
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
<html> | |
<body> | |
<script src="/base.js"></script> | |
<script src="/util.js"></script> | |
<script src="/register.js"></script> | |
</body> | |
<html> |
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
<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> |
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
<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> |
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
$('#jav > .inner').text('Do not watch JAV') |
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
document.getElementById('jav') | |
.getElementByClass('inner')[0].innerText = 'Do not watch JAV'; |
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
<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> |
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
# sample importing from your own library | |
#from samplelib.lib1 import print_something | |
from zipline.api import order_target, record, symbol, symbols, history | |
from zipline import run_algorithm | |
from time import time | |
import datetime | |
import pytz | |
import matplotlib.pyplot as plt |
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
{ | |
"extends": "airbnb-base" | |
} |