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
{ | |
"_hoge": "piyo" | |
} |
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
:version | |
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Mar 25 2018 03:02:16) | |
macOS version | |
適用済パッチ: 1-1633 | |
Compiled by [email protected] | |
Huge 版 with MacVim GUI. 機能の一覧 有効(+)/無効(-) | |
+acl +cmdline_info +extra_search +jumplist +mouse +odbeditor +signs +timers -X11 | |
+arabic +comments +farsi +kaoriya +mouseshape +packages +smartindent +title -xfontset | |
+autocmd +conceal +file_in_path +keymap +mouse_dec +path_extra +startuptime +toolbar +xim | |
-autoservername +cryptv +find_in_path +lambda -mouse_gpm +perl/dyn +statusline +transparency -xpm |
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
alias pgco='git branch -a --sort=-authordate | cut -b 3- | perl -pe '\''s#^remotes/origin/###'\'' | perl -nlE '\''say if !$c{$_}++'\'' | grep -v -- "->" | peco | xargs git checkout' |
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
body { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, serif; | |
background-color: white; | |
color: #24292e; | |
} | |
table { | |
width: auto; | |
border-collapse: collapse; | |
border-spacing: 0; | |
border-width: 1px; |
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
@echo off | |
set ROOT_DIR=. | |
if "%1" neq "" ( | |
set ROOT_DIR=%1 | |
if "%1" equ "~" ( | |
set ROOT_DIR=%USERPROFILE% | |
) | |
) |
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
{ | |
"version": "0.1.0", | |
"command": "dotnet", | |
"isShellCommand": true, | |
"args": [], | |
"windows": { // Windows固有の設定 | |
"command": "cmd", // cmd.exeを実行 | |
"args": [ "/C", "chcp 65001 && dotnet"] // /Cオプションで第二引数のコマンドを実行 | |
}, // chcp 65001 の後に && で続けてdotnetを実行するよう指定 | |
"tasks": [ |
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
<Query Kind="Statements" /> | |
File.ReadAllLines(@"path\to\ppap.txt") | |
.Select(line => line.Length) | |
.ToList() | |
.ForEach(Console.WriteLine); |
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
int a = ...; | |
switch (a) | |
{ | |
case int _ when a < 10: return "low"; | |
case int _ when 90 < a: return "high"; | |
default: return "middle"; | |
} |
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
<Query Kind="Expression" /> | |
"I have a pen. I have a apple. oh!! Apple pen! I have a pen. I have a pineapple. oh!! Pineapple pen! Apple pen. Pineapplepen. Pen pineapple apple pen." | |
.Split(' ') | |
.Select(s => Regex.Replace(s, "[\\.!]", "")) | |
.Select(s => s.ToLower()) | |
.ToLookup(w => w) | |
.Select(g => new { Word = g.Key, Count = g.Count()}) | |
// Word | Count |
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
class Program | |
{ | |
static void Main() | |
{ | |
var source = new [] { | |
new { Category = "A", Amount = 1000m }, | |
new { Category = "B", Amount = 1000m }, | |
new { Category = "B", Amount = 1000m }, | |
new { Category = "C", Amount = 1000m }, | |
new { Category = "C", Amount = 1000m }, |
NewerOlder