Skip to content

Instantly share code, notes, and snippets.

View masfj's full-sized avatar

m13o masfj

View GitHub Profile
#include <type_traits>
#include <initializer_list>
#include <iostream>
class enable_class
{
public:
template <typename ... Types, typename std::enable_if_t<sizeof...(Types) == 2, std::nullptr_t> = nullptr>
enable_class(Types... args)
{
#include <string>
#include <functional>
#include <vector>
#include <queue>
#include <algorithm>
#include <memory>
#include <iostream>
namespace
{
## /etc/nsswitch.conf
# db_home: cygwin desc
db_home: windows
(* 20.0 (log10 255)) ;; 8bit
(* 20.0 (log10 65535)) ;; 16bit
(* 20.0 (log10 16777216)) ;; 24bit
(* 20.0 (log10 4294967296)) ;; 32bit
(* 20.0 (log10 18446744073709551616)) ;; 64bit
@masfj
masfj / emacs-build.sh
Created May 28, 2018 16:45
Emacs26.1 build
#!/bin/bash
EMACS_VERSION=26.1
RC_VERSION=-rc1
PATCH_VERSION=6.90
curl -O http://ftp.gnu.org/pub/gnu/emacs/emacs-${EMACS_VERSION}.tar.gz
curl -O ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-${EMACS_VERSION}${RC_VERSION}-mac-${PATCH_VERSION}.tar.gz
tar zxvf emacs-${EMACS_VERSION}.tar.gz
;; to cent
(* 1200.0 (log value 2)) ;; value 0.5 2.0 4.0
;; from cent
(expt 2 (/ cent 1200.0)) ;; cent -1200 0 1200 2400