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 part of | |
amnlib - A C++ library for deviantART Message Network | |
Copyright © 2011 Carl Tessier <http://drfrankenstein90.deviantart.com/> | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd" [ | |
<!ENTITY % FauxLatin 'INCLUDE'> | |
<!ENTITY % English 'IGNORE'> | |
<!ENTITY % French 'INCLUDE'> | |
]> | |
<html<head> | |
<title/Hello, World!/ | |
</head<body<div> | |
<p/This is a paragraph./ |
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
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.40219.01 | |
TITLE C:\Users\Carl Tessier\Documents\Visual Studio 2008\Projects\ctest\ctest\main.c | |
.686P | |
.XMM | |
include listing.inc | |
.model flat | |
INCLUDELIB OLDNAMES |
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
function JsonFetcher(url) { | |
this.url = url; | |
this.request = new XMLHttpRequest(); | |
this.request.addEventListener("readystatechange", | |
goog.bind(this._onReadyStateChange, this)); | |
} | |
JsonFetcher.prototype = { | |
url: "", | |
request: null, |
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 <stdlib.h> | |
#include <limits.h> | |
#include <time.h> | |
#include <stdio.h> | |
/* Optimizations enabled EXCEPT for function inlining. */ | |
extern void xchg_swap(int*, int*); | |
extern void xchg_swap_loop(int); | |
void in_place_swap(int* x, int* y) |
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 "csb.h" | |
#include "csb_private.h" | |
#include "csb_elem.h" | |
#include <stdlib.h> | |
#include <string.h> | |
str_builder sb_init(const char* initstr) | |
{ | |
str_builder sb = (str_builder) malloc(sizeof(struct str_builder_impl)); |
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 <stddef.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#include <string.h> | |
#include <time.h> | |
#include <stdio.h> | |
#include <math.h> | |
/* double parentheses don't disable the assignment-in-condition warning in CL */ | |
#pragma warning(disable:4706) |
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
.model flat, stdcall | |
option casemap:none | |
STD_INPUT_HANDLE equ -10 | |
STD_OUTPUT_HANDLE equ -11 | |
GetStdHandle proto stdcall, nStdHandle:dword | |
ReadFile proto stdcall, hFile:dword, lpBuffer:ptr byte, nNumberOfBytesToRead:dword, lpNumberOfBytesRead:ptr dword, lpOverlapped:ptr dword | |
WriteFile proto stdcall, hFile:dword, lpBuffer:ptr byte, nNumberOfBytesToWrite:dword, lpumberOfBytesWritten:ptr dword, lpOverlapped: ptr dword | |
FORMAT_MESSAGE_ALLOCATE_BUFFER equ 100h | |
FORMAT_MESSAGE_FROM_STRING equ 400h |
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 <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
#undef min /* dammit, Visual C++! */ | |
struct box | |
{ | |
unsigned l, w, h; | |
}; |
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 <unordered_map> | |
#include <utility> | |
#include <iostream> | |
#include <boost/functional/hash.hpp> | |
using std::unordered_map; | |
using std::pair; | |
using std::make_pair; | |
using std::cin; |
OlderNewer