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 DEBUG_H_ | |
#define DEBUG_H_ | |
#ifdef _MSC_VER | |
#define PrintInfoFormatIntlIntl(p,line) \ | |
stderr, __FILE__ ":" #line ":" __FUNCTION__ ": " p "\n" | |
#else | |
#define PrintInfoFormatIntlIntl(p,line) \ | |
stderr, __FILE__ ":" #line ":%s: " p "\n", __func__ | |
#endif |
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
:10006000000102030405060708090A0B0C0D0E0F18 | |
:10007000101112131415161718191A1B1C1D1E1F08 | |
:10008000202122000000000000000000000000000D | |
:100090000000000000000000000000000000000060 | |
:1000A0000000000000000000000000000000000050 | |
:1000B0000000000000000000000000000000000040 | |
:1000C0000000000000000000000000000000000030 | |
:1000D0000000000000000000000000000000002000 | |
:00000001FF |
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
/* | |
A C-program for MT19937, with initialization improved 2002/1/26. | |
Coded by Takuji Nishimura and Makoto Matsumoto. | |
Before using, initialize the state by using init_genrand(seed) | |
or init_by_array(init_key, key_length). | |
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, | |
All rights reserved. | |
Copyright (C) 2005, Mutsuo Saito, |
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
*.gem | |
*.rbc | |
.bundle | |
.config | |
coverage | |
InstalledFiles | |
lib/bundler/man | |
pkg | |
rdoc | |
spec/reports |
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
@ruby -x "%~f0" %* | |
@exit /b | |
#!ruby | |
def dumpbin(filename) | |
`dumpbin /exports #{filename}` | |
end | |
def extract_function_names(exports) | |
exports[/^\s+ordinal.*^\s+Summary/m].scan(/\s+[A-Z\d+]{8}\s+(\w+)$/) |
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
ER=sfx_ready.exe | |
E=sfx.exe | |
OBJS=sfx.obj | |
TEXT=text.txt | |
all: $(ER) | |
clean: | |
del $(OBJS) $(E) $(ER) |
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
#!/usr/local/bin/ruby | |
require 'webrick/cgi' | |
BookFile = 'book.txt' | |
class Book | |
attr_reader :page | |
def initialize(io, page) |
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
local function print_if_not_nil(...) | |
if ... ~= nil then | |
print("-> ", ...) | |
end | |
end | |
local function try_to_print(line) | |
local compiled, errmes = loadstring("return " .. line) | |
if compiled then | |
print("=> ", compiled()) |
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
// Meeting Cost Clock | |
// 12 Aug 2009 Keijiro Takahashi | |
/* standard definition */ | |
#include <iostream> | |
namespace Arduino | |
{ | |
typedef unsigned char uint8_t; |
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 GC_PTR_HPP_ | |
#define GC_PTR_HPP_ | |
class gc_cleanup; | |
template <typename T> | |
class gc_ptr : public gc_cleanup | |
{ | |
T *ptr; | |
const P<T> &operator =(T *); |