如果想要在 Docker 在跑 NodeJS 的應用,可以參考 NodeJS 官網上有一篇 「Dockerizing a Node.js web app」介紹,還蠻簡單易懂的,這邊稍微紀錄一下相關步驟。
{
"name": "docker_web_app",
"version": "1.0.0",
{ | |
"snippets": { | |
"variables": { | |
"lang": "zh-Hant-TW", | |
"locale": "zh-TW", | |
"charset": "UTF-8", | |
"indentation": "\t", | |
"newline": "\n" | |
}, | |
(function(file){ | |
var script=document.createElement('script'); | |
script.type='text/javascript'; | |
script.src=file; | |
document.body.appendChild(script); | |
})("https://rawgit.com/stu43005/49ff25325b357053b8e9/raw/pixiv_gif_encoder.js"); | |
/* | |
網址列(或書籤)用: | |
javascript:(function(file){var script=document.createElement('script');script.type='text/javascript';script.src=file;document.body.appendChild(script)})("https://rawgit.com/stu43005/49ff25325b357053b8e9/raw/pixiv_gif_encoder.js") |
function [O, invFG] = GaussianSharpen(M, sigma, lambda) | |
F = fft2(M); | |
G = fgaussian(size(M), sigma); | |
FG = fft2(G); | |
invFG = FG./(lambda + FG.^2); | |
% invFG = invFG/max(max(abs(invFG))); | |
F2 = F.*invFG; | |
O = fftshift(ifft2(F2)); | |
end |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>WebWorker image preloading</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" /> | |
</head> | |
<body> | |
<div id="output"></div> | |
<script id="imgloader" type="javascript/worker"> | |
// Not race proof or robust. Proof of concept. |
如果想要在 Docker 在跑 NodeJS 的應用,可以參考 NodeJS 官網上有一篇 「Dockerizing a Node.js web app」介紹,還蠻簡單易懂的,這邊稍微紀錄一下相關步驟。
{
"name": "docker_web_app",
"version": "1.0.0",
#!/usr/bin/python | |
# This is a simple port-forward / proxy, written using only the default python | |
# library. If you want to make a suggestion or fix something you can contact-me | |
# at voorloop_at_gmail.com | |
# Distributed over IDC(I Don't Care) license | |
import socket | |
import select | |
import time | |
import sys |
// ==UserScript== | |
// @name ExTaglink | |
// @description Add torrent/magnet/pixiv links to tag area | |
// @namespace FlandreDaisuki | |
// @author FlandreDaisuki | |
// @include http://exhentai.org/g/* | |
// @include https://exhentai.org/g/* | |
// @include http://g.e-hentai.org/g/* | |
// @match http://exhentai.org/g/* | |
// @match https://exhentai.org/g/* |
#include <iostream> | |
#include <opencv2\opencv.hpp> | |
using namespace std; | |
using namespace cv; | |
int main() | |
{ | |
Mat imageMe = imread("img/a.jpg"); |
#! /usr/bin/env python3 | |
import subprocess | |
import sys | |
import re | |
cflags = subprocess.getoutput('pkg-config --cflags --libs opencv') | |
# print(cflags) | |
cpp = sys.argv[1] |