Skip to content

Instantly share code, notes, and snippets.

View AlBannaTechno's full-sized avatar

Osama Al Banna AlBannaTechno

View GitHub Profile
@AlBannaTechno
AlBannaTechno / dotnet_intrinsics_search.md
Created June 22, 2021 11:46 — forked from BastianBlokland/dotnet_intrinsics_search.md
Playing around with the new hardware intrinsics of .net core 3.0

.Net Core 3.0 (currently in preview) adds support for hardware intrinsics.

So now we can write simd instructions in c# 🎉

Intel has a nice website for browsing through the available instructions: Intel intrinsics guide

Everything from Avx2 down seems supported. (Given that your cpu supports it ofcourse)

For double checking what c# call maps to what instruction you can check the summary of the methods:

@AlBannaTechno
AlBannaTechno / IndexedDB101.js
Created September 23, 2018 15:30 — forked from cauerego/IndexedDB101.js
Very Simple IndexedDB Example
// quite untested, adapted from BigstickCarpet's gist, attempt to make it simpler to use
function openIndexedDB (fileindex) {
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
var openDB = indexedDB.open("MyDatabase", 1);
openDB.onupgradeneeded = function() {
var db = {}
@AlBannaTechno
AlBannaTechno / python-es6-comparison.md
Created August 14, 2018 12:03 — forked from revolunet/python-es6-comparison.md
# Python VS ES6 syntax comparison

Python VS ES6 syntax comparison

Python syntax here : 2.7 - online REPL

Javascript ES6 via Babel transpilation - online REPL

Imports

import math