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
$parallelcount = 4 | |
$tasks = @() | |
foreach ($angle in @(1, 3, -3)) { | |
foreach ($ubyfb in @(1, 2)) { | |
$tasks += @{ | |
dir = "v"; | |
velAmpl = "0.02"; | |
rotAmpl = "0.0"; | |
angle = $angle; | |
ubyfb = $ubyfb; |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
table { | |
border-collapse: collapse; | |
width: 100%; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash | |
set -e | |
if [ $1 == "ln" ]; then | |
tgtdir=$( dirname "$3" ) | |
tgtbase=$( basename "$3" ) | |
windir=$( wslpath -w "$tgtdir" ) | |
cmd.exe /c mklink /J "$windir\\$tgtbase" "$( wslpath -w "$2" )" | |
else | |
# https://github.com/microsoft/WSL/issues/6420 |
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 P = "BC"; | |
const B = "AAABBBBCCCCBBB"; | |
console.log(`P=${P}\nB=${B}`); | |
function testB(b) { | |
if (!b) return 0; | |
if (b.length < 3) return -1; | |
let min = -2; | |
let s = 0; |
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
<!-- | |
* @Description: image clip | |
* @Author: ekibun | |
* @Date: 2020-07-31 22:39:41 | |
* @LastEditors: ekibun | |
* @LastEditTime: 2020-08-01 22:51:51 | |
--> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<div style="user-select: none;"> |
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
/* | |
* @Description: async pool | |
* @Author: ekibun | |
* @Date: 2019-11-21 15:30:04 | |
* @LastEditors: ekibun | |
* @LastEditTime: 2019-11-21 19:33:27 | |
*/ | |
async function queue(fetchs, run, num = 2) { | |
await Promise.all(new Array(num).fill(0).map(async () => { | |
while (fetchs.length) await run(fetchs.shift()) |
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
/* | |
* @Description: url query extract | |
* @Author: ekibun | |
* @Date: 2019-07-09 18:02:36 | |
* @LastEditors: ekibun | |
* @LastEditTime: 2019-07-09 18:55:49 | |
*/ | |
const asPath = 'http://localhost:3000/products?page=1&category=5d079b&power=2' | |
console.log(Object.assign({}, ...(asPath.split('?')[1] || "") | |
.split('&').filter(item => item).map(item => item.split('=')) |
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
/* | |
* @Description: auth demo for bgm.tv | |
* @Author: ekibun | |
* @Date: 2019-06-30 16:42:16 | |
* @LastEditors: ekibun | |
* @LastEditTime: 2019-07-08 01:41:10 | |
*/ | |
const axios = require('axios') | |
const cheerio = require('cheerio') | |
const qs = require('qs') |
NewerOlder