40Hex Issue 4 December 1991
Just thought it would be funny to list what I think is the ulitmate virus programmers toolkit. Theroys may vary.
- Turbo Assembler (MASM sucks, and it is slow)
- Turbo Debugger(It rules, what else can I say?)
import flixel.FlxG; | |
class PixelateShader extends flixel.system.FlxAssets.FlxShader | |
{ | |
var debug = false; | |
var enabled = true; | |
@:glFragmentSource(' | |
#pragma header |
import sys.net.Host; | |
import sys.net.Socket; | |
class Client | |
{ | |
public function new() | |
{ | |
var args = Sys.args(); | |
if (args.length==0) { | |
trace('Usage: Client <server ip / hostname>'); |
using UnityEngine; | |
// Thanks to Rory Driscoll | |
// http://www.rorydriscoll.com/2016/03/07/frame-rate-independent-damping-using-lerp/ | |
public static class SmoothDamp | |
{ | |
/// <summary> | |
/// Creates dampened motion between a and b that is framerate independent. | |
/// </summary> | |
/// <param name="from">Initial parameter</param> |
40Hex Issue 4 December 1991
This is how to copy your files from a given git branch to a new empty branch, using a squash merge.
This example will copy files from branch old-branch
to target-branch
# First be sure, that you don't have uncommitted working changes. They will be deleted
# Checkout a new empty branch without history
git checkout --orphan target-branch
package; | |
import openfl.Lib; | |
import openfl.display.Shader; | |
import openfl.filters.BitmapFilter; | |
import openfl._internal.renderer.RenderSession; | |
import openfl.geom.Point; | |
/** | |
* ... |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
package com.blazingmammothgames.util; | |
#if neko | |
import neko.vm.Thread; | |
import neko.vm.Mutex; | |
#elseif cpp | |
import cpp.vm.Thread; | |
import cpp.vm.Mutex; | |
#end |