Skip to content

Instantly share code, notes, and snippets.

@Maximus5
Maximus5 / gist:502b6feb95cf29e431d046ac5fdd05f4
Created June 21, 2016 14:53 — forked from xyzzy-17-638/gist:2354412
Windows2000 で xyzzyのマルチフレーム版を動かすための修正案

Windows2000 で xyzzyのマルチフレーム版を動かすための修正案

サポートしない、というのが一番楽だとは思いますが…

OS の環境を Windows 2000 SP4 update Rollup 1 にする

/subsystem のバージョンを 5.0 にする

Microsoft Windows [Version 10.0.10586] 
 
zkr32@ZKRWS C:\Users\zkr32 
> cd E:\Programming\Android\ReactNative\ZKRTestSharedProject 
 
zkr32@ZKRWS C:\Users\zkr32 
> e: 

@Maximus5
Maximus5 / BiDiSupport.md
Created July 31, 2018 07:16 — forked from XVilka/BiDiSupport.md
BiDirectional Text

This gist will show the support of BiDirectional text in the terminal emulators and console programs.

How to test

Logical Order ◀ ◀ ◀ RTL LTR ▶ ▶ ▶
WHAT IS UNICODE؟ in arabic in arabic ؟EDOCINU SI TAHW ؟EDOCINU SI TAHW in arabic
ما هو الترميز الموحد يونيكود؟ in Arabic ما هو الترميز الموحد يونيكود؟ in Arabic
@Maximus5
Maximus5 / latency.markdown
Created August 31, 2018 20:08 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@Maximus5
Maximus5 / pr.md
Created March 11, 2019 13:46 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@Maximus5
Maximus5 / test.cpp
Created August 13, 2020 13:08 — forked from qpfiffer/test.cpp
C++ Memory Leak Detection in VS2010
#ifdef _DEBUG
#include <ostream>
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#endif
// ...