This file contains hidden or 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 loadMoreBtn = document.getElementById('load_more_button'); | |
const loader = document.getElementById('inventory_history_loading'); | |
const exportData = () => { | |
const teamSize = 5; | |
const rows = [...document.querySelectorAll('#personaldata_elements_container > table > tbody > tr')]; | |
rows.shift(); // Remove header row. | |
const matches = rows.map((match) => { | |
const meta = [...match.querySelectorAll('.csgo_scoreboard_inner_left td')].map(node => node.innerText); |
This file contains hidden or 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
Get-ChildItem | ForEach-Object -Parallel { git -C $_ fetch; git -C $_ pull; } -ThrottleLimit 2 |
This file contains hidden or 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. Create new empty NetCore Web project using dotnet cli or Visual Studio 2017. | |
2. Run following nuget cmds + update existing nuget-packages to latest and greatest: | |
Install-Package Nancy -Pre | |
Install-Package Microsoft.AspNetCore.Owin | |
Install-Package Microsoft.AspNetCore.StaticFiles | |
3. Append the Configure method in Startup.cs with: | |
app.UseDefaultFiles(); | |
app.UseStaticFiles(); |
This file contains hidden or 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
<template> | |
<h1>${message}</h1> | |
</template> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Aurelia</title> | |
</head> | |
<body aurelia-app="main"> | |
<script src="scripts/vendor-bundle.js" data-main="aurelia-bootstrapper"></script> | |
</body> | |
</html> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Aurelia</title> | |
</head> | |
<body aurelia-app="main"> | |
<script src="scripts/vendor-bundle.js" data-main="aurelia-bootstrapper"></script> | |
</body> | |
</html> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Aurelia</title> | |
</head> | |
<body aurelia-app="main"> | |
<script defer src="https://cdn.jsdelivr.net/bluebird/latest/bluebird.js"></script> | |
<script defer src="scripts/vendor-bundle.js" data-main="aurelia-bootstrapper"></script> | |
</body> |
This file contains hidden or 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
<template> | |
<div repeat.for="item of items"> | |
<label> | |
${item.value}: | |
<input type="number" | |
value.one-way="item.index" | |
change.delegate="updateIndex(item, $event.target.value)"> | |
</label> | |
</div> | |
</template> |