This file contains 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
/* Primality test. | |
* | |
* Copyright (C) 2013 Chen-Pang He <jdh8@ms63.hinet.net> | |
* Don’t copy-paste the email. It won’t work. | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
This file contains 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
/* Generate the first n prime numbers. | |
* | |
* Copyright (C) 2013 Chen-Pang He <jdh8@ms63.hinet.net> | |
* Don’t copy-paste the email. It won’t work. | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
This file contains 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
load("fft"); | |
g(x):= exp(-x^2 /2) / sqrt(2 * %pi); | |
plot(n, k):= plot2d(['discrete, realpart(fft(makelist(g(i-k+n) + g(i-k) + g(i-k-n), i, 0, n-1))) * n], ['x, 1, n]); |
This file contains 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
// This file is part of Eigen, a lightweight C++ template library | |
// for linear algebra. | |
// | |
// Copyright (C) 2016 Chen-Pang He <chen.pang.he@jdh8.org> | |
// | |
// This Source Code Form is subject to the terms of the Mozilla | |
// Public License v. 2.0. If a copy of the MPL was not distributed | |
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
#ifndef EIGEN_MATRIX_SIGN_ITERATION |
This file contains 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 <ios> | |
#include <string> | |
#include <unistd.h> | |
template<bool> | |
class FileDescriptor | |
{ | |
private: | |
int _fd; |
This file contains 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
// This gist is no longer maintained. | |
// Please move to [jdh8/chic][chic]. | |
// | |
// [chic]: https://github.com/jdh8/chic | |
#include <map> | |
#include <vector> | |
#include <iostream> | |
#include <sstream> | |
#include <cstdint> |
This file contains 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
template<int> | |
struct image_filter_vector; | |
template<> | |
struct image_filter_vector<ColMajor, DirectAccessBit> | |
{ | |
template<typename Lhs, typename Rhs, typename Destination> | |
static void run(const Lhs&, const Rhs&, Destination&); | |
}; |
This file contains 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
template<typename T> | |
class Comparable | |
{ | |
friend bool operator!=(const T& x, const T& y) { return !(x == y); } | |
friend bool operator>(const T& x, const T& y) { return y < x; } | |
friend bool operator<=(const T& x, const T& y) { return !(y < x); } | |
friend bool operator>=(const T& x, const T& y) { return !(x < y); } | |
}; | |
template<typename T> |
This file contains 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="zh-TW" class="no-js"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="profile" href="http://gmpg.org/xfn/11"> | |
<title>我方開叫一線花色</title> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Merriweather:,i,b,bi%7CMontserrat:,b"> | |
<link rel='stylesheet' href='https://jdh8.org/wp-content/themes/twentysixteen/style.css?ver=4.6.1'> | |
<link rel="stylesheet" href="https://jdh8.github.io/css/wordpress.css"> |
This file contains 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
diff --git a/_layouts/default.liquid b/_layouts/default.liquid | |
index 2aab8d0..998ad36 100644 | |
--- a/_layouts/default.liquid | |
+++ b/_layouts/default.liquid | |
@@ -1,5 +1,5 @@ | |
<!DOCTYPE html> | |
-<html lang="en"> | |
+<html lang="zh-Hant"> | |
<head> | |
<meta charset="UTF-8"> |
OlderNewer