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
#include <iostream> | |
#include <cmath> | |
#include <cfloat> | |
static float sigmoid1(float x) { | |
return 1.0 / (1.0 + exp(-x)); | |
} | |
static float sigmoid2(float x) { | |
return exp(x) / (1.0 + exp(x)); | |
} |
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
#include <iostream> | |
#include <cmath> | |
static float sigmoid(float x) { | |
if (x > 0) { | |
return 1.0 / (1.0 + exp(-x)); | |
} else { | |
return exp(x) / (1.0 + exp(x)); | |
} | |
} |
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
<?php | |
function usage() { | |
echo "Usage: php webarchive.php <target_url> # http:// https:// only ".PHP_EOL; | |
echo "ex) php webarchive.php http://app.awm.jp".PHP_EOL; | |
} | |
if ($argc != 2) { | |
usage(); | |
exit (1); |
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
Version Information | |
Data exported 2018-12-20T14:03:16.679Z | |
Chrome version Chrome/73.0.3645.0 | |
Operating system Windows NT 10.0.17134 | |
Software rendering list URL https://chromium.googlesource.com/chromium/src/+/b2e486f0d5a83d34bd6bdd72ebbe2005063a8133/gpu/config/software_rendering_list.json | |
Driver bug list URL https://chromium.googlesource.com/chromium/src/+/b2e486f0d5a83d34bd6bdd72ebbe2005063a8133/gpu/config/gpu_driver_bug_list.json | |
ANGLE commit id 4638dc9def81 | |
2D graphics backend Skia/73 6f27489c650284c9488d0a82ab03b31dc48656cc- | |
Command Line chrome.exe --enable-webgl2-compute-context --use-angle=gl --flag-switches-begin --flag-switches-end | |
Driver Information |
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
#!/usr/bin/env python | |
''' | |
Author: Igor Maculan - [email protected] | |
Modifier: Yoshihiro Yamazaki - [email protected] | |
A Simple mjpg stream http server | |
''' | |
import cv2 | |
from PIL import Image | |
import threading | |
from http.server import BaseHTTPRequestHandler,HTTPServer |
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
// g++ -std=c++11 iterator_test.cpp | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
class my_vector { | |
public: | |
std::vector<int> m_vec; | |
my_vector(int len, int value): m_vec(len, value) { ; } |
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
// g++ -std=c++11 iterator_test.cpp | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
class my_vector { | |
public: | |
std::vector<int> m_vec; | |
my_vector(int len, int value) { |
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
// g++ -std=c++11 iterator_test.cpp | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
class my_vector { | |
public: | |
std::vector<int> m_vec; | |
my_vector(int len, int value) { |
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
% # Nearest Neighbor | |
% convert xc: -define filter:verbose=1 -filter box -resize 8 null: | awk '$1==0{s+=$2} $1>0{s+=$2*2} END {print s/100}' | |
1.01 | |
% # Bi-Linear | |
% convert xc: -define filter:verbose=1 -filter triangle -resize 8 null: | awk '$1==0{s+=$2} $1>0{s+=$2*2} END {print s/100}' | |
1 | |
% # Mitchell-Netravali (Bi-Cubic B:1/3, C:1/3) | |
% convert xc: -define filter:verbose=1 -filter mitchell -resize 8 null: | awk '$1==0{s+=$2/2} $1>0{s+=$2*2} END {print s/100}' |