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 <array> | |
#include <cstddef> | |
template<std::size_t H, std::size_t W> | |
using Matrix = std::array<std::array<int, W>, H>; | |
template<std::size_t H, std::size_t W> | |
std::ostream& operator << (std::ostream& os, const Matrix<H, W>& m) { | |
for(auto& a : m) { |
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
access-log: | |
format: "time:%t\thost:%h\treq:%r\tstatus:%s\turi:%U\tmethod:%m\tsize:%b\treferer:%{Referer}i\tua:%{User-Agent}i\tcache:%{X-Cache}o\truntime:%{X-Runtime}o\tvhost:%{Host}i\treqtime:%{request-total-time}x\truntime:%{process-time}x\tapptime:%{duration}x" | |
# https://lowreal.net/2016/04/06/3 | |
# 微妙にバージョン古くて間違ってる可能性あるので信頼しないでほしいです!!! |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" | |
"strconv" | |
) |
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
package main | |
import ( | |
"fmt" | |
"sort" | |
"strconv" | |
"strings" | |
"sync" | |
"sync/atomic" | |
) |
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
// ==UserScript== | |
// @name KeepHashTagAndAccountInTweetDeck Tampermonkey | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description https://github.com/zenmaibane/KeepHashTagInTweetDeck for Tampermonkey | |
// @author Tsuzu | |
// @match https://tweetdeck.twitter.com | |
// @grant none | |
// ==/UserScript== |
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 notify(title, msg string) error { | |
key := os.Getenv("NOTIFY_KEY") | |
type Payload struct { | |
Value1 string `json:"value1"` | |
Value2 string `json:"value2"` | |
Value3 string `json:"value3"` | |
} | |
data := Payload{ |
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
package main | |
import ( | |
"context" | |
"log" | |
"sync" | |
"github.com/cs3238-tsuzu/go-easyp2p" | |
) |
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
#! /bin/bash | |
set -eu | |
DDCCTL=ddcctl | |
IIYAMA_DISPLAY=1 | |
ASUS_DISPLAY=2 | |
if [ -z "${1-}" ]; then | |
echo "ddc [initial of display] [subcommand(b/i)] arguments..." |
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
package cgroup | |
import "os" | |
import "syscall" | |
import "io/ioutil" | |
import "strconv" | |
import "os/exec" | |
import "strings" | |
import "errors" |
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 <algorithm> | |
#include <vector> | |
#include <functional> | |
#include <queue> | |
#include <cmath> | |
#include <cstring> | |
#include <map> | |
#include <set> |