Skip to content

Instantly share code, notes, and snippets.

View dkrutsko's full-sized avatar

David Krutsko dkrutsko

View GitHub Profile
@dkrutsko
dkrutsko / babel_preset_summary.md
Last active June 25, 2018 13:22
Summarizes Babel presets stages zero to three [7.0.0-beta.51]

Stage 3

@babel/plugin-proposal-async-generator-functions

Proposal | Babel

async function* func()
{
    await 1;

Keybase proof

I hereby claim:

  • I am dkrutsko on github.
  • I am dkrutsko (https://keybase.io/dkrutsko) on keybase.
  • I have a public key ASBNrsTzx2CiVNZb72TrzX8NxibTWWSxEoq6UlwcCJuS_wo

To claim this, I am signing this object:

template<typename type>
static bool IsStrEq
(const type* a, const type* b)
{
// Handle potential null cases
if (!a || !b) return !a && !b;
// Perform standard comparison
while (*a != '\0' && *a == *b)
{
@dkrutsko
dkrutsko / Antiscan
Created January 24, 2017 03:42
Detects whether the memory of your process has been scanned
// Link with psapi.lib
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <Psapi.h>
int main (void)
{
; (function ($, window, document, undefined)
{
"use strict";
////////////////////////////////////////////////////////////////////////////////
var PLUGIN_NAME = "passwordMeter";
////////////////////////////////////////////////////////////////////////////////
@dkrutsko
dkrutsko / Mystery
Created July 19, 2015 11:11
Another way to hello world
void Mystery (PRINTF p)
{
const char text[] =
{
'H', 'e', 'l', 'l', 'o', ' ',
'W', 'o', 'r', 'l', 'd', '!',
'\n', '\0',
};
p (text);
////////////////////////////////////////////////////////////////////////////////
// -------------------------------------------------------------------------- //
// //
// Copyright (C) 2013 David Krutsko //
// //
// -------------------------------------------------------------------------- //
////////////////////////////////////////////////////////////////////////////////
//----------------------------------------------------------------------------//
// Prefaces //