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
-- This file is translated by "headmaster" version 0.30-18d0286 (devel). | |
-- The original C header's license should be applied to this file. | |
-- All conditional-directives are expanded for the exclusive use of your | |
-- environment, it is not recommended to commit this file to any repository. | |
------------------------------------------------------------------------------- | |
with C.stddef; | |
package C.alloca is | |
pragma Preelaborate; | |
function alloca (a1 : stddef.size_t) return void_ptr; | |
pragma Import (C, alloca, "alloca"); |
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
<!doctype html> | |
<html lang='en'> | |
<head> | |
<meta charset='UTF-8'> | |
<title>ANSI/新JIS 配列 (私家版)</title> | |
<style> | |
body { | |
margin: 4px; | |
font-family: sans-serif; | |
font-size: 14px; |
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
with Ada.Strings.Wide_Wide_Unbounded.Wide_Wide_Text_IO; | |
procedure MBD is | |
use Ada.Strings.Wide_Wide_Unbounded; | |
use Ada.Strings.Wide_Wide_Unbounded.Wide_Wide_Text_IO; | |
function "+" (Right : Wide_Wide_String) return Unbounded_Wide_Wide_String | |
renames To_Unbounded_Wide_Wide_String; | |
x : constant array (Positive range <>) of Unbounded_Wide_Wide_String := ( | |
+"剣士", +"侍", +"弓師", +"重装兵", +"戦士", +"聖職者", +"暗殺者", | |
+"魔法師"); | |
begin |
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
# from pprint import pprint | |
import codecs | |
import unicodedata | |
def get_typename(val): | |
t = gdb.types.get_basic_type(val.type).tag | |
if not t: t = val.type.name | |
return t | |
def is_graphic(c): |
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 | |
set -e | |
FAILURE=0 | |
for I in *.ad[sb] ; do | |
echo "==== " $I " ====" | |
case $I in | |
calendar_inline.adb) |
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
let rotate_left (left: int32) (right: int): int32 = | |
Int32.logor | |
(Int32.shift_left left right) | |
(Int32.shift_right_logical left (32 - right));; | |
let fmix32 (h: int32): int32 = | |
let h = Int32.logxor h (Int32.shift_right_logical h 16) in | |
let h = Int32.mul h 0x85ebca6bl in | |
let h = Int32.logxor h (Int32.shift_right_logical h 13) in | |
let h = Int32.mul h 0xc2b2ae35l in |
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
program bad_enumwindows; | |
{$APPTYPE CONSOLE} | |
uses | |
Types, Windows, SysUtils; | |
{ EnumWindows with the magic context } | |
type |
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
import subprocess | |
edit = "/usr/local/bin/edit" | |
last_filename = None | |
def stop_handler(event): | |
global last_filename | |
line_info = gdb.decode_line()[1][0] | |
window = "--new-window" | |
if last_filename != None: |
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
type Cell[T] = ref object | |
car: T | |
cdr: Cell[T] | |
type List[T, N] = distinct Cell[T] | |
proc makeNil[T]: List[T, range[0..0]] = nil | |
proc makeCons[T, N](car: T; cdr: List[T, N]): auto = | |
type N1 = range[0..high(N)+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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>BBEditDocumentType</key> | |
<string>CodelessLanguageModule</string> | |
<key>BBLMLanguageCode</key> | |
<string>Nim</string> | |
<key>BBLMLanguageDisplayName</key> | |
<string>Nim</string> |