Skip to content

Instantly share code, notes, and snippets.

//
// BBHook.h
// v1.0
// a Buildbox hook layer tested on Buildbox 2.1.x and 2.2.x
//
// Author : Alaa-eddine KADDOURI
//
#import <UIKit/UIKit.h>
//
// src/com/ezelia/utils/BBHook.java
// v1.0
// a Buildbox hook layer tested on Buildbox 2.1.x and 2.2.x
//
// Author : Alaa-eddine KADDOURI
//
package com.ezelia.utils;
@alaa-eddine
alaa-eddine / HashMap.ts
Last active April 23, 2019 07:53
This is an experimental HashMap implementation with some features I needed and didn't found in JS default Arrays and Objects Features : * Direct acces too elements throught .get(key) * fast keys or values iteration using for (;;) instead of for in syntax (http://jsperf.com/array-keys-vs-object-keys-iteration/3 )
/*
This is an experimental HashMap implementation with some features I needed and didn't found in JS default Arrays and Objects
Features :
* Direct acces too elements throught .get(key)
* fast keys or values iteration using for (;;) instead of for in syntax (http://jsperf.com/array-keys-vs-object-keys-iteration/3 )
*/
class HashMap {
public length: number = 0;
@alaa-eddine
alaa-eddine / gist:5305911
Created April 3, 2013 22:12
pure Javascript PNG parser
(function() {
/*
# MIT LICENSE
# Copyright (c) 2011 Devon Govett
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons