Open ~/.zshrc
in your favorite editor and add the following content to the bottom.
function parse_git_branch() {
name: Node CI | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
upload-release: |
import argparse | |
import os | |
import pefile | |
class DllCharacteristics(): | |
def __init__(self, flags): | |
# collecting IMAGE_DLLCHARACTERISTICS | |
self.TERMINAL_SERVER_AWARE = bool(flags & 0x8000) | |
self.GUARD_CF = bool(flags & 0x4000) |
#Optimization killers (from https://github.com/petkaantonov/bluebird/wiki/Optimization-killers)
##Introduction
This document will contain advice to avoid writing code that will perform significantly worse than expected. Specifically those patterns that cause V8 (relevant to Node.JS, Opera, Chromium...) to refuse to optimize the affected function.
vhf is also working on a similar project that tries to list every killers in V8 Crankshaft Engine: V8 Bailout Reasons.
###Some V8 background
bool flipСoin() | |
{ | |
bool side = false; | |
auto ms = std::chrono::high_resolution_clock::now() + std::chrono::microseconds(10); | |
while (std::chrono::high_resolution_clock::now() <= ms) side = !side; | |
return side; | |
} | |
unsigned char getRandomBit() | |
{ |
Func<double, double>[] F = { Math.Cos, Math.Sqrt, Math.Ceiling, Math.Round }; | |
Func<int, Func<double, double>> foo = bar => F[-~(int)F[bar](bar - .5)]; | |
Console.WriteLine(foo(~-F.Length)(.5 + F[sizeof(float) ^ F.Length](byte.MinValue))); |
/*************************************************************************** | |
* Do What THe Fuck You Want To Public Licence 2 * | |
* * | |
* JavaScript implementation by Piotr Rochala (http://rocha.la/) * | |
* Based on C# work of Serge Meunier (http://www.smokycogs.com/) * | |
* * | |
* Check this code in action on http://rocha.la/javascript-plasma-fractal * | |
* * | |
**************************************************************************/ |
// just a wrapper around double value, indexed | |
class DV | |
{ | |
public DV(int i, double value) | |
{ | |
Id = i; | |
T = value; | |
} | |
public double Id { get; set; } |