-
#!/usr/bin/env ruby print "hello world"
- This is normal text

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 bash | |
set -e | |
set -x | |
VERSION=$1 | |
if [[ $VERSION == "" ]]; then | |
echo "Usage: update-gh version" | |
exit 1 | |
fi |
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 ( | |
"debug/pe" | |
"fmt" | |
"os" | |
) | |
func main() { | |
if len(os.Args) < 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 <crypto++/files.h> | |
#include <crypto++/hex.h> | |
#include <crypto++/md5.h> | |
#include <filesystem> | |
#include <string> | |
namespace { | |
std::string md5(const std::filesystem::path &file) { | |
std::string ret; |
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> | |
struct Foo { | |
Foo() = default; | |
Foo(const Foo &f) : s(f.s) { | |
std::cout << "Copy constructor" << std::endl; | |
} | |
Foo(Foo &&f) : s(std::move(f.s)) { |
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 bash | |
set -e | |
TIMES=10 | |
EVENTS="task-clock,cycles,instructions,faults,cache-references,cache-misses,L1-dcache-loads,L1-dcache-load-misses,L1-dcache-stores,LLC-loads,LLC-load-misses,LLC-stores" | |
rm -f *.log | |
for i in $(seq 1 $TIMES) | |
do |
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 <chrono> | |
#include <iostream> | |
int main() { | |
struct timespec n; | |
for (int i = 0; i < 20; ++i) { | |
auto now = std::chrono::system_clock::now(); | |
auto now_ns = std::chrono::time_point_cast<std::chrono::nanoseconds>(now); | |
std::cout << "current nano: " << now_ns.time_since_epoch().count() << std::endl; | |
} |
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 <chrono> | |
#include <cstdio> | |
#include <cinttypes> | |
#include <mach/mach_time.h> | |
namespace { | |
void mach_ver() { | |
mach_timebase_info_data_t timebase_info; | |
mach_timebase_info(&timebase_info); |
Error in user YAML: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
---
aa: [link](https://example.com)
bb: hoge
---
[aa] [bb]
NewerOlder