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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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<functional> | |
namespace make_function{ | |
template<class R = void,class C = void,class... A> | |
struct impl; | |
template<class R,class C,class... A> | |
struct impl<R (C::*)(A...)const>{ | |
using type = R(*)(A...); | |
}; | |
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
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform float time; | |
uniform vec2 mouse; | |
uniform vec2 resolution; | |
//反復回数(constで書く方も多い) | |
#define ITE_MAX 190 |
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
#define PICOJSON_USE_INT64 | |
#include <fstream> | |
#include <iostream> | |
#include <stdexcept> | |
#include <picojson.h> | |
#include <valijson/utils/picojson_utils.hpp> | |
#include <valijson/adapters/picojson_adapter.hpp> | |
#include <valijson/schema.hpp> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ui version="4.0"> | |
<class>child</class> | |
<widget class="QWidget" name="child"> | |
<property name="geometry"> | |
<rect> | |
<x>0</x> | |
<y>0</y> | |
<width>400</width> | |
<height>300</height> |
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
#ifndef BinaryOperatorsCalculatersH | |
#define BinaryOperatorsCalculatersH | |
#include<algorithm> | |
#define ParserOpeq == | |
#define ParserOpnoteq != | |
#define ParserOpand_ && | |
#define ParserOpor_ || | |
#define ParserOprelless < |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include<stdio.h> | |
#include<ctype.h> | |
#include<stdlib.h> | |
#include<string.h> | |
char str[512]; | |
int digit(int*pos) { | |
int ret = 0; | |
while (isdigit(str[*pos])) { | |
ret *= 10; |
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
{ | |
"title": "CNS", | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties":{ | |
"StateNum" : { | |
"type":"number" | |
}, | |
"SttateData":{ |
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<cmath> | |
#include<algorithm> | |
#include<vector> | |
#include<iostream> | |
#include<random> | |
constexpr auto CARDSMAX = 30u; | |
struct IncGenerator { | |
int current_; | |
IncGenerator (int start) : current_(start) {} |
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
{ | |
"title": "CNS", | |
"type": "array", | |
"items": { | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"NAME": { | |
"type": "string" | |
}, |
OlderNewer