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] | |
ls-binary = !"func() { git ls-files --eol \"$@\" | grep -v \"attr/-text\" | grep \"[iw]/-text\"; }; func" |
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
Param([String] $file) | |
$lfs = git lfs ls-files | |
Get-ChildItem -Recurse -Filter $file | | |
?{ ![regex]::IsMatch((Get-Content -Encoding Ascii -TotalCount 1 -ReadCount 1 $_.Target), '^%YAML') } | | |
%{ Resolve-Path -Relative $_.FullName } | | |
%{ $_ -replace '^\.\\', '' -replace '\\', '/' } | | |
?{ ($lfs -match $_).Count -eq 0 } | | |
?{ (git status --ignored -s -- $_).Count -eq 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
[core] | |
sshCommand = C:/Windows/System32/OpenSSH/ssh.exe |
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 <fstream> | |
using namespace std; | |
#include "monster_generated.h" | |
using namespace MyGame::Sample; | |
int main() { | |
// ファイル読み込み |
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
func ==<Element: Equatable>(lhs: [Element]?, rhs: [Element]?) -> Bool { | |
return lhs.map { l in rhs.map { l == $0 } ?? false } | |
?? rhs.map { r in lhs.map { $0 == r } ?? false } | |
?? true | |
} |
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 SyncFIFO<T> { | |
var buf = Array<T>() | |
let lock = DispatchSemaphore(value: 1) | |
let sem = DispatchSemaphore(value: 0) | |
func push(_ val: T) { | |
self.lock.wait() | |
defer { self.lock.signal() } | |
self.buf.append(val) | |
self.sem.signal() |
NewerOlder