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
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |
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
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |
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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
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
#!/usr/bin/env python | |
# released under BSD License | |
# mary <[email protected]> aka meyarivan <[email protected]> | |
# inspired by ICU [ http://oss.software.ibm.com/icu/ ] | |
# code still in alpha stage.. lots of redundant code.. and probably incorrect | |
# if ya find errors, pls submit bug reports at indlinux |
Assuming project is SOME/PROJECT
And you are FOO
You will need to do the following one time only:
- Fork
SOME/PROJECT
repository under your namespace. - Navigate to https://github.com/FOO/PROJECT/wiki
- Hit
Create the first page
. You will get an error (that's ok!)
VICE is the best by such a commanding margin that you really needn't look elsewhere. Open source and has the largest community.
However, other options are:
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
' By David "Cherry" Trapp (2009) | |
' Fork of RegLib by porfirio: http://www.freebasic.net/forum/viewtopic.php?t=7072 | |
Namespace RegObj | |
#Define REG_KEY_NOT_EXIST "REG_KEY_NOT_EXIST" | |
#Define REG_KEY_INVALID "REG_KEY_INVALID" | |
Type RegLib | |
Declare Constructor(root As HKEY,Key As String, create As Boolean=false, acc As Integer = KEY_ALL_ACCESS) |
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
The OptiFine installer requires that MC be installed in the default launcher and has opened the version of MC at least once. Do this first. | |
1. Download OptiFine | |
2. Extract OptiFine | |
a. Double click the download from step 1 | |
b. Click Extract button | |
c. Navigate to MultiMC instance you wish to install OptiFine into (C:\mc\MultiMC\instances\1.13\.minecraft\) | |
3. Move extracted Optifine to instance \ libraries folder (C:\mc\MultiMC\instances\1.13\libraries\) | |
4. In MultiMC edit instance, go to Version screen and select the Minecraft entry in the list. Then click Add to Minecraft.jar | |
5. Select the OptiFine file you extracted and moved in step 3. |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
OlderNewer