- コミット前に
clang-format
+ BOMつきUTF-8に変換 - .gitattributes にautocrlfオプションをつける
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
/// | |
/// F#からGurobiを使用するサンプル | |
/// | |
/// 参考: http://www.gurobi.com/documentation/6.0/quickstart_windows/cs_example_mip1_cs_cs.html | |
/// | |
open System | |
open Gurobi | |
[<EntryPoint>] |
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
1.21111 | |
121.111 | |
1.21111 | |
12 | |
12000 | |
0 |
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 <iostream> | |
#include <string> | |
#include <vector> | |
#include "time_series.hpp" | |
template <typename T = double, typename Duration = std::chrono::seconds> | |
my::time_series<T, Duration> load_series(std::string const& file_path) | |
{ | |
// load datasets. |
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
perl -MEncode -pe 'BEGIN{print "\xEF\xBB\xBF"} s/\r\n/\n/g;Encode::from_to($_,"shiftjis","utf-8");' $1 > $2 |
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 "Collector.hpp" | |
class GraphCollector : private Collector | |
{ | |
private: | |
void push_impl(object && data) override | |
{ | |
// send to graph | |
} | |
}; |
$ # カレントディレクトリ以下のPythonファイルのうちPEP8に準拠していないものを自動的に修正する
$ pep8 . | cut -d: f1 | sort | uniq | sed 's!\\!/!g' | xargs autopep8 -i
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
r'''TeX系コマンドのPythonインタフェース | |
Functions: | |
- make_pdf : TeX文書を PDF に変換 | |
- read_bounding_box : 画像の Bounding Box を取得 | |
Memo: |
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
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{handout}[2015/06/12 support for handout] | |
\newif\ifhandout@landscape | |
\handout@landscapefalse | |
\DeclareOption{landscape}{\handout@landscapetrue} | |
\newif\ifhandout@draft | |
\handout@draftfalse | |
\DeclareOption{draft}{\handout@drafttrue} |