Skip to content

Instantly share code, notes, and snippets.

View iugo's full-sized avatar

iugo iugo

View GitHub Profile
@iugo
iugo / test.md
Created August 25, 2023 02:02
test

无答案版本

题目:

1, 如何循环 (书写) (20分钟) (分值 20)

data = [{name: "Joe", age: 12}, {name: "Irving", age: 42}, {name: "Olive", age: 31}]

@iugo
iugo / main.ts
Created August 4, 2023 03:56
import and global await
// deno run tools/test/main.ts
import { mod1 } from './mod1.ts';
import { mod2 } from './mod2.ts';
console.log('begin main');
mod1();
mod2();
@iugo
iugo / install.sh
Created March 7, 2023 03:55
ossutil
#!/usr/bin/env bash
# error codes
# 0 - exited without problems
# 1 - parameters not supported were used or some unexpected error occurred
# 2 - OS not supported by this script
# 3 - installed version of ossutil is up to date
# 4 - supported unzip tools are not availabale
set -e
{
"compilerOptions": {
"strict": true
},
"importMap": "./import_map.json"
}
@iugo
iugo / test-denotest.ts
Last active September 11, 2022 01:53
deno 1.25.1 NotFound: No such file or directory (os error 2)
import { test } from './test-main.ts';
Deno.test('test', async () => {
await test();
})
无答案版本
题目:
============
1, 如何循环 (书写) (20分钟) (分值 20)
-------------------
`data = [{name: "Joe", age: 12}, {name: "Irving", age: 42}, {name: "Olive", age: 31}]`
@iugo
iugo / how-to-install-openssl-1.1.1-on-centos-7.md
Last active July 15, 2022 09:20
How to install openssl 1.1.1 on CentOS 7

How To Install OpenSSL 1.1.1 on CentOS 7

This tutorial goes through how to install openssl 1.1.1 on CentOS 7, since the yum repo only installs up to openssl 1.0.

Requirements

Upgrade the system

yum -y update
@iugo
iugo / data.ts
Created June 2, 2021 10:33
deno bundle (1.10.3) bug
import { dbPool } from "./webserver.ts";
export function d() {
dbPool;
}
@iugo
iugo / deno-test-import.ts
Last active May 5, 2021 10:17
deno-test-import
import { TestType } from './types';
const a: TestType = 'A';
export { a };
@iugo
iugo / pac.js
Last active June 23, 2020 13:22
base-pac
var wall_proxy = "SOCKS5 127.0.0.1:1081; SOCKS 127.0.0.1:1081;";
var nowall_proxy = "DIRECT;";
var direct = "DIRECT;";
var ip_proxy = "DIRECT;";
var block_it = "SOCKS5 127.0.0.1:9999;";
// https://www.websense.com/content/support/library/web/v76/pac_file_best_practices/PAC_best_pract.aspx#606431
/*
* Copyright (C) 2014 breakwa11