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
// #![feature(const_fn)] | |
extern crate winapi; | |
extern crate kernel32; | |
extern crate user32; | |
extern crate libc; | |
extern crate encoding; | |
use winapi::windef::HWND; | |
use winapi::windef::HDC; | |
use winapi::windef::HMENU; |
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
#ifdef WX_PRECOMP | |
#include "wx_pch.h" | |
#endif | |
#ifdef __BORLANDC__ | |
#pragma hdrstop | |
#endif //__BORLANDC__ | |
#include "booksApp.h" | |
#include "booksMain.h" |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace run2d | |
{ | |
public class ComplexComparer : IComparer<Coord> | |
{ |
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 <stdio.h> | |
#include <Windows.h> | |
#include <Psapi.h> | |
#include <TlHelp32.h> | |
BOOL ListProcessModules(DWORD dwPID) | |
{ | |
HANDLE hModuleSnap = INVALID_HANDLE_VALUE; | |
MODULEENTRY32 me32; |
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
/* | |
using: http://zeromq.org/ | |
see https://github.com/bitcoin/bitcoin/blob/master/contrib/zmq/zmq_sub.py | |
first call: bitcoind -zmqpubhashtx=tcp://127.0.0.1:28332 -zmqpubrawtx=tcp://127.0.0.1:28332 & | |
*/ | |
#include <stdexcept> | |
#include <iostream> | |
#include <cstdlib> | |
#include <cstring> | |
#include <vector> |
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
/* | |
using: http://zeromq.org/ | |
see https://github.com/bitcoin/bitcoin/blob/master/contrib/zmq/zmq_sub.py | |
first call: bitcoind -zmqpubhashtx=tcp://127.0.0.1:28332 -zmqpubrawtx=tcp://127.0.0.1:28332 & | |
*/ | |
#include <stdexcept> | |
#include <iostream> | |
#include <cstdlib> | |
#include <cstring> | |
#include <vector> |
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
/* | |
using: http://zeromq.org/ | |
see https://github.com/bitcoin/bitcoin/blob/master/contrib/zmq/zmq_sub.py | |
first call: bitcoind -zmqpubhashtx=tcp://127.0.0.1:28332 -zmqpubrawtx=tcp://127.0.0.1:28332 & | |
*/ | |
#include <stdexcept> | |
#include <iostream> | |
#include <cstdlib> | |
#include <cstring> |
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
#define _USE_MATH_DEFINES | |
#include <float.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <assert.h> | |
double f(double x) | |
{ | |
return sin(x); | |
} |
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
//from Algol procedure http://www.jasoncantarella.com/downloads/brent_excerpt.pdf | |
#include <float.h> | |
#include <cmath> | |
#include <stdio.h> | |
double f(double x) | |
{ | |
return sin(x); | |
} |
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 <boost/multiprecision/cpp_int.hpp> | |
#include <chrono> | |
using namespace boost::multiprecision; | |
using namespace std; | |
class stoper | |
{ | |
public: |