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 <fstream> | |
#include <cstdio> | |
#include <string> | |
#include <memory> | |
#include <complex> | |
#include <vector> | |
#include <cmath> | |
#include <sndfile.h> | |
#include <fftw3.h> | |
#include <portaudio.h> |
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 <fstream> | |
#include <cstdio> | |
#include <string> | |
#include <memory> | |
#include <complex> | |
#include <vector> | |
#include <cmath> | |
#include <sndfile.h> | |
#include <fftw3.h> | |
#include <boost/format.hpp> |
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
" --------------------------------------------------------------------------------------------------- | |
" ____ ____ | |
" | | | | | |
" | |_____| | | |
" | | _ _ _ | |
" | ・ ・ | | |__ ___ ___ ___ _ __ ___ (_) __ __(_) _ __ ___ _ __ ___ | |
" | _________ | | '_ \ / _ \ / __| / _ \ | '_ ` _ \ | | \ \ / /| || '_ ` _ \ | '__| / __| | |
" | |_________| | | | | || __/| (__ | (_) || | | | | || | _ \ V / | || | | | | || | | (__ | |
" |_______________| |_| |_| \___| \___| \___/ |_| |_| |_||_|(_) \_/ |_||_| |_| |_||_| \___| | |
" |
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
if !exists('g:lightline') | |
let g:lightline = { | |
\ 'colorscheme': 'tsubakumi', | |
\ 'active' : { | |
\ 'left' : [ | |
\ [ 'mode' ], | |
\ [ 'paste', 'fugitive', 'filename', 'gitgutter', 'quickrun' ], | |
\ ], | |
\ 'right' : [ | |
\ [ 'percent' ], |
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
" --------------------------------------------------------------------------------------------------- | |
" ____ ____ | |
" | | | | | |
" | |_____| | | |
" | | _ _ _ | |
" | ・ ・ | | |__ ___ ___ ___ _ __ ___ (_) __ __(_) _ __ ___ _ __ ___ | |
" | _________ | | '_ \ / _ \ / __| / _ \ | '_ ` _ \ | | \ \ / /| || '_ ` _ \ | '__| / __| | |
" | |_________| | | | | || __/| (__ | (_) || | | | | || | _ \ V / | || | | | | || | | (__ | |
" |_______________| |_| |_| \___| \___| \___/ |_| |_| |_||_|(_) \_/ |_||_| |_| |_||_| \___| | |
" |
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 <opencv2/opencv.hpp> | |
int main(int argc, char* argv[]) | |
{ | |
// 画像読み込み | |
auto img = cv::imread("dummy_input.png"); | |
if (!img.data) return -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
Error detected while processing function gift#uniq_winnr..gift#window#uniq_nr: | |
line 3: | |
E118: Too many arguments for function: gettabwinvar | |
E15: Invalid expression: gettabwinvar(tabnr, winnr, "gift_uniq_winnr", -1) | |
line 4: | |
E121: Undefined variable: uniq_nr | |
E15: Invalid expression: uniq_nr == -1 | |
line 7: | |
E121: Undefined variable: uniq_nr |
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
\ { | |
\ 'match' : { | |
\ 'filetype' : ['html', 'javascript', 'typescript'], | |
\ }, | |
\ 'NeoBundleSource' : [ | |
\ 'vim-nodejs-complete', | |
\ 'vim-node', | |
\ 'jscomplete-vim', | |
\ 'typescript-vim', | |
\ 'simple-javascript-indenter', |
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
// install mecab by "sudo apt-get install mecab libmecab-dev mecab-naist-jdic" | |
// (this install command is for Ubuntu) | |
// install mecab-async module by "npm install mecab-async" | |
var MeCab = require('mecab-async'); | |
var mecab = new MeCab(); | |
var escape_strings = [ | |
'"', '「', '」', '。', '、', ',', '・', '"' | |
]; |
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 <sprout/math.hpp> | |
#include <cmath> | |
int main(int argc, char* argv[]) | |
{ | |
// auto sin45 = std::sin(); | |
// std::cout << sin45_2 << std::endl; | |
constexpr auto sin45 = sprout::sin(sprout::math::pi<double>()/4); | |
std::cout << sin45 << std::endl; |