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
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="nodejs" version="16.13.1"/> | |
<package id="vscode" version="1.62.3"/> | |
<package id="yarn" version="1.22.15"/> | |
<package id="openjdk12" version="12.0.2.1"/> | |
<package id="maven" version="3.6.3"/> | |
<package id="git" version="2.34.1"/> | |
<package id="discord" version="1.0.9003"/> | |
<package id="cmder" version="1.3.18"/> |
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
// sourceFile should be *.txt file with strings like `MAC: F0989D000000` or `S/N: ############`, each on new line | |
const JsBarcode = require("jsbarcode"); | |
const { DOMImplementation, XMLSerializer } = require("xmldom"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const [, , sourceFile = 'payload.txt', targetPath = '', limit = 5] = process.argv; | |
const xmlSerializer = new XMLSerializer(); |
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
import { | |
eachWeekOfInterval, | |
startOfYear, | |
endOfYear, | |
endOfWeek, | |
format, | |
isWithinInterval | |
} from "date-fns"; | |
const members = [ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<SimBase.Document Type="AceXML" version="1,0"> | |
<Descr>AceXML Document</Descr> | |
<FlightPlan.FlightPlan> | |
<Title>UWWW to UUWW</Title> | |
<FPType>IFR</FPType> | |
<RouteType>HighAlt</RouteType> | |
<CruisingAlt>33000</CruisingAlt> | |
<DepartureID>UWWW</DepartureID> | |
<DepartureLLA>N53° 30' 04.00",E050° 09' 14.00",+000477.00</DepartureLLA> |
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
var blacklistTurnipCodes = ["40c4f327","c43c1e1a","74764c4f","56eca733","19b10f08"]; | |
var stopWords = ["nmt","nugget","star","nook mile","diy","furniture","gold","rocket","flower"]; | |
var includesStopWord = (str) => { | |
return stopWords.some(word => str.toLowerCase().includes(word)); | |
}; | |
var fetchIslands = () => { | |
fetch("https://api.turnip.exchange/islands/", { | |
method: 'POST', |
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
// Link to security's history example: https://iss.moex.com/iss/history/engines/stock/markets/bonds/securities/SU29012RMFS0?till=2020-02-14&from=2020-02-07&sort_column=TRADEDATE&sort_order=desc&limit=1 | |
// Manual: http://iss.moex.com/iss/reference/63 | |
// Moex market types: | |
// - bonds | |
// - index | |
// - shares | |
const moexMarketTypesMap = { | |
"облигации": "bonds", | |
"акции": "shares", |
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
{ | |
queue: { | |
up: [], | |
down: [] | |
}, | |
jobs: { | |
elevators: [] | |
}, | |
init: function(elevators, floors) { | |
// Queues |
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
var fnProfileCatalog = function(req, res, next) { | |
var regionId = getUserRegionId(req); | |
// Filter params | |
var type = req.query.type; | |
var userLimit = parseInt(req.query.perPage); | |
var limit = (!isNaN(userLimit) && userLimit <= perPageMax) ? userLimit : perPageDefault; | |
var page = (!isNaN(parseInt(req.query.page)) ? parseInt(req.query.page) : 1); | |
var offset = (page - 1) * limit; |
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
function customPrint() { | |
var prtContent; | |
var WinPrint = window.open('', '', 'left=50,top=50,width=800,height=640,toolbar=0,scrollbars=1,status=0'); | |
WinPrint.document.write('<div id="print" class="contentpane">'); | |
for (var _len = arguments.length, elemID = Array(_len), _key = 0; _key < _len; _key++) { | |
elemID[_key] = arguments[_key]; | |
} |
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
function getCookie2(e) { | |
var t, a, i, o = document.cookie.split(";"); | |
for (t = 0; t < o.length; t++) | |
if (a = o[t].substr(0, o[t].indexOf("=")), | |
i = o[t].substr(o[t].indexOf("=") + 1), | |
a = a.replace(/^\s+|\s+$/g, ""), | |
a == e) | |
return unescape(i) | |
} | |
function initRadioCookie() { |
NewerOlder