I hereby claim:
- I am qrealka on github.
- I am qrealka (https://keybase.io/qrealka) on keybase.
- I have a public key whose fingerprint is A6C9 2268 B494 4480 D835 8795 17F5 8BDA EFD8 7467
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
#include "stdafx.h" | |
#include <future> | |
#include <iostream> | |
class NonCopyable | |
{ | |
std::unique_ptr<int> payload; | |
NonCopyable(const NonCopyable&) = delete; | |
NonCopyable& operator=(const NonCopyable&) = delete; |
Memory Optimization (Christer Ericson, GDC 2003)
http://realtimecollisiondetection.net/pubs/GDC03_Ericson_Memory_Optimization.ppt
Cache coherency primer (Fabian Giesen)
https://fgiesen.wordpress.com/2014/07/07/cache-coherency/
Code Clinic 2015: How to Write Code the Compiler Can Actually Optimize (Mike Acton)
http://gdcvault.com/play/1021866/Code-Clinic-2015-How-to
#include <iostream> | |
using namespace std; | |
struct A1 | |
{ | |
virtual void Test() = 0; | |
virtual ~A1() | |
{ | |
std::cout << "~A1\n"; |
#include <type_traits> | |
#include <tuple> | |
#include <iostream> | |
// Link: https://github.com/aeyakovenko/notes | |
//count arguments | |
//COUNT_ARGS :: ... -> Int | |
#define COUNT_ARGS(...) COUNT_ARGS_(,##__VA_ARGS__,6,5,4,3,2,1,0) | |
#define COUNT_ARGS_(z,a,b,c,d,e,f,cnt,...) cnt |
# based on code from http://trendystephen.blogspot.be/2008/01/rich-header.html | |
import sys | |
import struct | |
# I'm trying not to bury the magic number... | |
CHECKSUM_MASK = 0x536e6144 # DanS (actuall SnaD) | |
RICH_TEXT = 'Rich' | |
RICH_TEXT_LENGTH = len(RICH_TEXT) | |
PE_START = 0x3c | |
PE_FIELD_LENGTH = 4 |
/ebook | |
<< | |
/UCRandBGInfo /Remove | |
/DoThumbnails false | |
/ColorImageDownsampleType /Average | |
/PreserveEPSInfo false | |
/ColorConversionStrategy /sRGB | |
/GrayImageDownsampleType /Average | |
/EmbedAllFonts true | |
/CannotEmbedFontPolicy /Warning |
/* SMBLoris attack proof-of-concept | |
* | |
* Copyright 2017 Hector Martin "marcan" <[email protected]> | |
* | |
* Licensed under the terms of the 2-clause BSD license. | |
* | |
* This is a proof of concept of a publicly disclosed vulnerability. | |
* Please do not go around randomly DoSing people with it. | |
* | |
* Tips: do not use your local IP as source, or if you do, use iptables to block |