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 python | |
| from os.path import isfile | |
| from datetime import date | |
| import argparse | |
| parser = argparse.ArgumentParser(description='HPP/CPP generator') | |
| parser.add_argument('module', type=str, help='Module') | |
| parser.add_argument('--author', default='', help='Author') | |
| parser.add_argument('--basename', default='', help='Basename') | |
| parser.add_argument('--define', default=False, help='Define', action='store_true') |
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
| #include <iostream> | |
| #include <array> | |
| #include <list> | |
| #include <algorithm> | |
| #include <exception> | |
| #include <memory> | |
| #include <numeric> | |
| #include <cassert> | |
| #include <cstdint> |
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
| Benchmark Time CPU Iterations | |
| ------------------------------------------------------------ | |
| ConstPipeNull/4 3895 ns 3880 ns 177135 | |
| ConstPipeNull/8 3972 ns 3943 ns 195948 | |
| ConstPipeNull/64 4141 ns 4098 ns 193347 | |
| ConstPipeNull/512 3922 ns 3887 ns 170929 | |
| ConstPipeNull/4k 4041 ns 4016 ns 188315 | |
| ConstPipeNull/32k 3983 ns 3964 ns 182430 | |
| ConstPipeNull/256k 3916 ns 3893 ns 191099 | |
| ConstPipeNull/1024k 4199 ns 4171 ns 181569 |
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
| class Foo { | |
| call() { | |
| console.log('This:', this) | |
| } | |
| } | |
| const foo = new Foo() | |
| const bar = foo.call | |
| foo.call() | |
| bar() |
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
| #include <iostream> | |
| #include <functional> | |
| #include <array> | |
| #include <vector> | |
| template<std::size_t... S> | |
| struct accumulator; | |
| template<std::size_t R, std::size_t... S> | |
| struct accumulator<R, S...> { |
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
| #!/bin/sh | |
| if [ ! -d $HOME/wts16 ]; then | |
| mkdir $HOME/wts16 | |
| fi | |
| touch $HOME/.login | |
| echo "setenv LANG ja_JP.UTF-8" >> $HOME/.login | |
| EMACS_CONF=$HOME/.emacs |
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 python | |
| ################################################################################ | |
| # | |
| # Copyright (c) 2016 Kotone Itaya | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |
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
| /****************************************************************************** | |
| * | |
| * laplus/laplus.hpp | |
| * | |
| * Copyright (C) 2016 Kotone Itaya | |
| * | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file |
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
| { | |
| "description": "The settings in this file are persisted server-side. This file is generated automatically. Editing it is not recommended. Modify SettingsToPersist.json to specify which settings are persisted.", | |
| "files": [ | |
| { | |
| "name": "Game.cfg", | |
| "sections": [ | |
| { | |
| "name": "Chat", | |
| "settings": [ | |
| { |
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
| #include <memory> | |
| struct Human { std::shared_ptr<Human> lover; }; | |
| struct Mika : public Human {}; | |
| struct Miria : public Human {}; | |
| int main() { | |
| auto mika = std::make_shared<Mika>(); |