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 <stdio.h> | |
int | |
main(void) { | |
char one = sizeof(char); /* is 1 by definition */ | |
char zero = one >> one; | |
char two = one << one; | |
char four = two << one; | |
char five = four | one; | |
char six = four | two; |
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
<?php | |
/** | |
* どどんとふチャットログ HTML ファイルからチャットログ部分を取り出して返す | |
* @param string $filename ファイル名 | |
* @return string チャットログ部分を含む HTML コード | |
* @return NULL 読み込みに失敗した場合 | |
*/ | |
function read_dodontof_chat_log($filename) { | |
# ファイルポインタを取得する |
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 <stdio.h> | |
#define C_SIZE 3 | |
typedef enum { | |
X, | |
Y, | |
Z | |
} coordinate; |
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 <stdio.h> | |
#define C_SIZE 3 | |
typedef enum { | |
X, | |
Y, | |
Z | |
} coordinate; |
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 <stdio.h> | |
#include <stdlib.h> | |
typedef struct { | |
int time; | |
int length; | |
} pulse; | |
typedef struct { | |
unsigned char negative_edge : 1; |
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 <stdio.h> | |
#include <stdlib.h> | |
typedef struct { | |
int time; | |
int length; | |
} pulse; | |
typedef struct { | |
unsigned int negative_edge : 1; |
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 'strscan' | |
module Converter | |
AVAILABLE_TAGS = { | |
/<bold>/ => { | |
start_tag: '<b>', | |
end_tag: '</b>' | |
}, | |
/<underline>/ => { | |
start_tag: '<u>', |
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
# vim: fileencoding=utf-8 | |
require 'strscan' | |
module Converter | |
AVAILABLE_TAGS = { | |
/\u0002/ => { | |
start_tag: '<b>', | |
end_tag: '</b>' | |
}, |
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
#!/bin/bash | |
# Developing | |
gem install bundler pry yard rspec rubocop | |
rbenv rehash | |
# Nokogiri | |
gem install nokogiri -- \ | |
--with-xml2-include=`brew --prefix libxml2`/include/libxml2 \ | |
--with-xml2-lib=`brew --prefix libxml2`/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
GameType: 'GranCrest' | |
TestData: | |
- Input: ['2d6>=10'] | |
Output: | | |
GranCrest : (2D6>=10) > 9[3,6] > 9 > 失敗 | |
Rands: [6/6, 3/6] | |
- Input: ['2d6>=10'] | |
Output: | |
OlderNewer