Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
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
/* | |
author: jbenet | |
os x, compile with: gcc -o testo test.c | |
linux, compile with: gcc -o testo test.c -lrt | |
*/ | |
#include <time.h> | |
#include <sys/time.h> | |
#include <stdio.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
/* | |
* p2p.c | |
*/ | |
#include <stdarg.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <enet/enet.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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Graphics, Games, Programming, and Physics Blogs</title> | |
</head> | |
<body> | |
<outline text="Tech News" title="Tech News"> | |
<outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com"/> | |
<outline type="rss" text="Polygon - Full" title="Polygon - Full" xmlUrl="http://www.polygon.com/rss/index.xml" htmlUrl="https://www.polygon.com/"/> | |
<outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="http://www.roadtovr.com/feed" htmlUrl="https://www.roadtovr.com"/> |
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
import macros | |
# Macro to build a lambda using JavaScript's `this` | |
# from a proc, `this` being the first argument. | |
macro bindMethod*(procedure: typed): auto = | |
var | |
rawProc = getImpl(procedure.symbol) | |
args = rawProc[3] | |
thisType = args[1][1] | |
params = newNimNode(nnkFormalParams).add(args[0]) |
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
import asyncdispatch | |
import asynctools | |
import docopt | |
import json | |
import nre | |
import os | |
import ospaths | |
import sequtils | |
import sha256/sha256sum | |
import strutils |
Specific purpose of this build is for running X-Plane flight simulator. The machine is extremely capable, and after building it and using it for two days, it's likely to be used for much more.
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
import | |
dom, jsffi, jsconsole, macros, strutils, | |
nes | |
class Ticker: | |
tickerTempl = html_templ: | |
d(data={"key1": "value1", "key2": "value2"}): | |
h1: "Hello, World!" | |
h2: "It is ${new Date().toLocaleTimeString()}." |
This was done using the amplify cli v0.2.2-multienv.1.
The goal was to:
- Create an auth setup for my React AWS Amplify project
- Use email as the sign up/sign in id and make sure it's unique
- Offer social sign in with Facebook and Google (and have those users also end up in the Cognito user pool—this appeared to only be possible using the hosted UI)
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
/* clang-format off */ | |
/* | |
ijss : IncredibleJunior SparseSet | |
sparse set [1] for bookkeeping of dense<->sparse index mapping or | |
a building block for a simple LIFO index/handle allocator | |
[1] https://research.swtch.com/sparse | |
*/ |
OlderNewer