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 <cstdint> | |
#include <cassert> | |
namespace riff{ | |
inline uint32_t fourcc( char a = '\0', char b = '\0', char c = '\0', char d = '\0'); | |
template<size_t I> | |
inline uint32_t fourcc( char (&a)[I] ); | |
inline uint32_t fourcc( char a , char b , char c , char d ) |
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
this file is obsolute SEE https://github.com/maildrop/GNUEmacsBug11732 | |
Index: src/w32fns.c | |
=================================================================== | |
--- src.orig/w32fns.c | |
+++ src/w32fns.c | |
@@ -351,6 +351,10 @@ static void unwind_create_tip_frame (Lis | |
static void my_create_window (struct frame *); | |
static void my_create_tip_window (struct frame *); | |
+static void |
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> | |
template<size_t i> struct int2type{ enum{ value = i }; }; | |
struct fizz{}; | |
struct buzz{}; | |
struct fizzbuzz{}; | |
template<size_t fizz, size_t buzz, size_t i>struct fizz_buzz{ typedef int2type<i> type;}; | |
template<size_t fizz, size_t i> struct fizz_buzz<fizz,0,i>{ typedef buzz type;}; | |
template<size_t buzz, size_t i> struct fizz_buzz<0, buzz,i>{ typedef fizz type;}; | |
template<size_t i> struct fizz_buzz<0,0,i>{ typedef fizzbuzz type;}; | |
template<size_t value> struct fizzbuzz_t{ typedef fizz_buzz<value % 3 , value % 5,value> type;}; |
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
/* テストが不十分なので取り扱い注意 */ | |
/* | |
思うに logAssertion_templateの中で、createFileWithoutCheckingPath | |
するのは、意味が無いんじゃ無いかな | |
なぜならば、これはカレントワーキングディレクトリからの相対パスで表 | |
示されるので、実行時のディレクトリがソースコードツリー上に無いと、 | |
正しくパスがとれない。 | |
これが呼ばれる時はエラーが起きるときだからあんまり複雑なことをするのはいけてない原因になる。 |
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 <pthread.h> | |
#include <iostream> | |
int main(int,char*[]) | |
{ | |
pthread_t pthread = {0}; | |
struct argument_t{ | |
const int parameter; |
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
問題は二段階ある。 | |
一つは、表示用のテキストバッファ | |
ImGui::InputText() の第三引数 がバッファサイズ | |
imgui_demo.cpp の struct ExampleAppConsole :: InputBuf | |
つまり、バッファのメモリアローケーションに ImGui::InputText() は、関知しない。 | |
メモリの割り当ては、呼び出し側の責任。サイズはInputBuf の第三引数にあってこれを超えないように処置がされる。 | |
長さの制限はコレ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<textarea id="urn:uuid:9fd7d865-a945-49ec-9d48-8b96513a7e77"> | |
onmessage = function(e){ | |
postMessage( e.data[0] ); | |
}; | |
</textarea> |
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
package com.example; | |
import java.lang.*; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.nio.ByteBuffer; | |
public class App | |
{ | |
public static final void main( String[] args ){ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.exeample</groupId> | |
<artifactId>enc</artifactId> | |
<version>1.0-SNAPSHOT</version> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<packaging>jar</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<groupId>com.example</groupId> | |
<artifactId>test</artifactId> |