2019-11-01 Wikiに変更を適応
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
| //! ```toml | |
| //! [package] | |
| //! edition = "2018" | |
| //! name = "cargo-touch-workspace" | |
| //! version = "0.0.0" | |
| //! authors = ["Ryo Yamashita <[email protected]>"] | |
| //! description = "Touch the source files in the workspace." | |
| //! publish = false | |
| //! license = "CC0-1.0" | |
| //! |
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
| //! The following code is licenused under [`CC0-1.0`](https://creativecommons.org/publicdomain/zero/1.0/). | |
| //! | |
| //! ```toml | |
| //! [package] | |
| //! name = "parse_cfg" | |
| //! version = "0.0.0" | |
| //! authors = ["Ryo Yamashita <[email protected]>"] | |
| //! edition = "2018" | |
| //! license = "CC0-1.0" | |
| //! publish = false |
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
| //! ```cargo | |
| //! [package] | |
| //! name = "atcoder" | |
| //! version = "0.0.0" | |
| //! authors = ["Ryo Yamashita <[email protected]>"] | |
| //! edition = "2015" | |
| //! license = "MIT" | |
| //! ``` | |
| #![allow(unused_imports)] |
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
| \documentclass[uplatex, a4j, 10pt, fleqn]{jsarticle} | |
| \RequirePackage[l2tabu, orthodox]{nag} | |
| \usepackage[dvipdfmx]{graphicx} | |
| \usepackage{algorithm, algorithmic, amsmath, minted, newtxmath, url} | |
| \usepackage{newtxtext, inconsolata} | |
| \title{Title} | |
| \date{\today} |
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 run-cargo-script | |
| //! ```cargo | |
| //! [package] | |
| //! name = "forge" | |
| //! | |
| //! [dependencies] | |
| //! error-chain = "0.11.0" | |
| //! futures = "0.1.21" # Not 0.2 | |
| //! hyper = "0.11.25" | |
| //! reqwest = "0.8.5" |
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
| //! ```cargo | |
| //! [dependencies] | |
| //! error-chain = "0.11.0" | |
| //! lazy_static = "1.0.0" | |
| //! regex = "0.2.10" | |
| //! reqwest = "0.8.5" | |
| //! select = "0.4.2" | |
| //! ``` | |
| #[macro_use] // `error_chain!`, `ensure!`, `quick_main!` |
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
| //! <https://qiita.com/tatsuya6502/items/cd448486f7ef7b5b8c7e> | |
| #![cfg_attr(feature = "cargo-clippy", allow(redundant_field_names, float_cmp))] | |
| use std::fmt; | |
| use std::io::{self, BufRead}; | |
| use std::str::{self, FromStr}; | |
| fn main() { | |
| let stdin = io::stdin(); |
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 python3 | |
| # coding: utf-8 | |
| import os | |
| import subprocess | |
| import sys | |
| import urllib.parse | |
| import warnings | |
| import click |
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 run-cargo-script | |
| use std::io::{self, BufRead, BufReader}; | |
| use std::process::{ChildStdout, Command, Stdio}; | |
| fn main() { | |
| use std::io::ErrorKind::NotFound; | |
| match cmus_status() { | |
| Err(ref e) if e.kind() == NotFound => println!(" \"cmus-remote\" not found"), |