Skip to content

Instantly share code, notes, and snippets.

View amphineko's full-sized avatar
🍊
Have a job but do open-source when not busy

amphineko amphineko

🍊
Have a job but do open-source when not busy
  • 18:04 (UTC)
View GitHub Profile
/*
打开个人首页, 翻到最后一页, 在开发者工具的控制台里运行即可
适用于v5
*/
var _counter = 0;
var iV = setInterval(function () {
var oB = $('[action-type="feed_list_delete"]');
window.scrollTo(0, 1024000);
/*
Luna Capsule / vijos-1046
Problem: https://vijos.org/p/1046
Record: https://vijos.org/records/53e9a3f748c5fc6f3c8b457f
*/
#include <cstdio>
#include <cstdlib>
#include <iostream>
/*
Luna Capsule / vijos-1046
Problem: https://vijos.org/p/1391
Record: https://vijos.org/records/53f226d948c5fc5e2f8b4570
- Use Dijkstra algorithm for calculating the maximum from the source to any points.
*/
#include <cstdio>
/*
Luna Capsule / vijos-1022
Problem: https://vijos.org/p/1022
Record: https://vijos.org/records/53f36e2c48c5fc437d8b4574
- Create adjacency list (double-way) with the input,
BFS nodes and mark them, skip visited node when selecting the next node for BFSing.
*/
/*
Luna Capsule / vijos-1057
Problem: https://vijos.org/p/1057
Record: https://vijos.org/records/53ff29a048c5fc314f8b4571
- 一道很水的DP题, 方程f[i][j] = min(f[i - 1][j - 1], f[i][j - 1], f[i - 1][j])
自行设计复杂一点的数据手工模拟一下DP过程就可以得到方程
*/
/*
Luna Capsule / vijos-1045
Problem: https://vijos.org/p/1045
Record: https://vijos.org/records/54413c5817f3ca0e15b0a872
- 一道裸MST(最小生成樹)的題目
Kruskal+路徑壓縮的並查集即可被Accepted, #8與#9測試點需要特別注意 (见代码注释)
*/

Keybase proof

I hereby claim:

  • I am amphineko on github.
  • I am amphineko (https://keybase.io/amphineko) on keybase.
  • I have a public key whose fingerprint is F116 5EFE 07DD DC22 65D8 EA70 401F 9696 2B93 8D6D

To claim this, I am signing this object:

@amphineko
amphineko / keybase.md
Last active September 29, 2017 10:30

Keybase proof

I hereby claim:

  • I am amphineko on github.
  • I am amphineko (https://keybase.io/amphineko) on keybase.
  • I have a public key whose fingerprint is AC59 C058 BDE0 C8BE 617B D953 5544 3BA3 09CB 6D53

To claim this, I am signing this object:

@amphineko
amphineko / node-sass install.md
Last active September 26, 2016 05:26
yet another memo of installing node-sass

Retrieve node.js version and convert to release number at Previous releases page. v6.6.0 is 48.

> node -v
v6.6.0

Retrieve the binding binary at node-sass-binaries.

win32-x64-48_binding.node

Set a environment variable to define binding file to be used by node-sass.

ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS';
ssl_dhparam /etc/nginx/dhparam.pem;
ssl_ecdh_curve secp384r1;
ssl_prefer_server_ciphers on;
# SSL Session Cache
ssl_session_cache shared:SSL:60m;
ssl_session_timeout 1d;