- auto complite
Delete
&BackSapce
SupportArrowLeft
&ArrowRight
Support- IP Support
- Subnet Support
- Paste Support
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
MIT License | |
Copyright (c) [2021] [hxsf] | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
function check_item(rule, url, params) { | |
var pos_s = rule.indexOf('{') | |
var pos_e = rule.indexOf('}') | |
if (pos_s >= 0 && pos_e) { | |
var r_after = rule.slice(0, pos_s) | |
var key = rule.slice(pos_s + 1, pos_e) | |
var r_be = rule.slice(pos_e + 1, rule.length) | |
var pos_2 = url.lastIndexOf(r_be) | |
var u_after = url.slice(0, pos_s) | |
var value = url.slice(pos_s, pos_2) |
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
import * as cp from 'child_process' | |
import { EventEmitter } from 'events' | |
import * as fs from 'fs' | |
import * as iconv from 'iconv-lite' | |
import * as os from 'os' | |
import * as path from 'path' | |
import { assign, debug, denodeify, dispose, groupBy, IDisposable, mkdirp, toDisposable, uniqBy } from './utils'; | |
// tslint:disable:member-ordering |
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
#!/usr/bin/env node --harmony | |
var program = require('commander'); | |
program | |
.version('0.1.0') | |
.description('list packages installed') | |
.parse(process.argv); | |
console.log('[demo-list]', process.execArgv) |
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
function* gen(min, max) { | |
var arr = new Array(min).fill(0) | |
arr[arr.length - 1] = 1 | |
while (arr.length <= max) { | |
yield arr.map(x => String.fromCharCode(96 + x)).join('') | |
arr[arr.length - 1]++ | |
for (var i = arr.length - 1; i >= 0; i--) { | |
if (arr[i] > 26) { | |
arr[i] -= 26 | |
if (i == 0) { |