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 <array> | |
#include <codecvt> | |
#include <iostream> | |
#include <memory> | |
#include <string> | |
#include <vector> | |
#include <fstream> | |
#include "libusb.h" |
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
# | |
# Download and build googletest/googlemock libraries | |
# | |
find_package(Threads REQUIRED) | |
include(ExternalProject) | |
set(GTEST_PREFIX | |
${PROJECT_BINARY_DIR}/googletest |
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
require 'parslet' | |
require 'pp' | |
class SVNumberParser < Parslet::Parser | |
rule(:x_digit){ match('[xX]') } | |
rule(:z_digit){ match('[zZ?]') } | |
rule(:underscore){ str('_') } | |
rule(:nz_dec_digit){ match('[0-9]') } | |
rule(:dec_digit) { str('0') | nz_dec_digit } |
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<tuple> | |
#include<string> | |
using namespace std; | |
tuple<int, string> test1(){ | |
return forward_as_tuple(20, "hoge"); // compile ok | |
} | |
tuple<int&, string&> test2(){ |
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
cmake_minimum_required(VERSION 3.0) | |
project(Test) | |
### Configure Dependency install path, include path and library path | |
set(DEPEND_LIB_ROOT ${PROJECT_BINARY_DIR}/Depends) | |
set(CMAKE_PREFIX_PATH ${DEPEND_LIB_ROOT}) | |
include_directories(${DEPEND_LIB_ROOT}/include) | |
link_directories(${DEPEND_LIB_ROOT}/lib) |
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
# The following lines were added by compinstall | |
autoload -Uz compinit | |
compinit | |
setopt auto_list | |
setopt auto_menu | |
setopt list_packed | |
setopt list_types | |
# End of lines added by compinstall |
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<boost/spirit/include/qi.hpp> | |
#include<string> | |
#include<iostream> | |
namespace qi = boost::spirit::qi; | |
int main(){ | |
using qi::int_; | |
using qi::parse; | |
{ |
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<boost/spirit/include/qi.hpp> | |
#include<iostream> | |
#include<complex> | |
#include<string> | |
template <typename Iterator> | |
bool parse_complex(Iterator first, Iterator last, std::complex<double>& c){ | |
namespace qi = boost::spirit::qi; | |
namespace ascii = boost::spirit::ascii; | |
using qi::double_; |
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
<html> | |
<head> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("visualization", "1.0", {packages:["corechart"]}); | |
google.setOnLoadCallback(drawChart); | |
function drawChart(){ | |
var data = google.visualization.arrayToDataTable( | |
[ | |
["Type", "ratio"], |
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
<html> | |
<head> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("visualization", "1.0", {packages:["corechart"]}); | |
google.setOnLoadCallback(drawChart); | |
function drawChart(){ | |
var data = google.visualization.arrayToDataTable( | |
[ | |
["CMC", "Land", "Creature", "Instant", "Sourcery", "Planeswalker", "Artifact", "Enchantment", {role: 'annotation'}], |
NewerOlder