Skip to content

Instantly share code, notes, and snippets.

View smikhalevski's full-sized avatar

Savva Mikhalevski smikhalevski

View GitHub Profile
@kupietools
kupietools / Docker Desktop v 4.0.0 thru 4.22.1 direct download links
Last active April 11, 2025 10:54
List of Direct Download links for Docker Desktop from version 4.0.0 released 2021-08-31 thru 4.22.1 released 2023-08-24, as archived on archive.org
/* @flow */
// The following three lines are from https://gist.github.com/nmn/b20a92e848c68d88f7fdb8353c71b1ca
type $Object<V> = { +[ key : string] : V }
type $ObjectValues<V, O : $Object<V>> = V
type $Values<O: Object> = $ObjectValues<*, O>
type Enumerables = { [ key : string ] : any }
const UserRoles : Enumerables = {
@bellbind
bellbind / .profile
Last active December 18, 2019 10:17
[nodejs][nvm] bash function of node with full `Intl` locales support by automatic installing the prebuilt "icu4c-data" package
[ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh # This loads NVM
function node {
rawnode=$(which node)
icu4cdata=$(dirname $(dirname $rawnode))/lib/node_modules/icu4c-data
[[ -d $icu4cdata ]] || npm install -g icu4c-data@$($rawnode -e '
console.log((v => v.icu_ver_major + v.icu_endianness)(
process.config.variables));')
NODE_ICU_DATA=$icu4cdata $rawnode "$@"
}
@Mariovc
Mariovc / ImagePicker.java
Last active November 29, 2024 16:28
Utility for picking an image from Gallery/Camera with Android Intents
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;
@leodutra
leodutra / bitwise-hacks.js
Last active February 27, 2025 01:45
Fast Int Math + Bitwise Hacks For JavaScript
// http://michalbe.blogspot.com.br/2013/03/javascript-less-known-parts-bitwise.html
// http://jsperf.com/bitwise-vs-math-object
// http://united-coders.com/christian-harms/results-for-game-for-forfeits-and-the-winner-is/
// https://mudcu.be/journal/2011/11/bitwise-gems-and-other-optimizations/
// https://dreaminginjavascript.wordpress.com/2009/02/09/bitwise-byte-foolish/
// http://jsperf.com/math-min-max-vs-ternary-vs-if/24
"use strict";
var PI = Math.PI;
@p3t3r67x0
p3t3r67x0 / prefixed-office-properties.md
Last active April 28, 2025 13:41
MS Office prefixed style properties can be used for older versions of MS Excel, MS PowerPoint or MS Word when you want to save a document, presentation, workbook, or worksheet as a web document, or even in older versions for MS Outlook.

MS Office prefixed style properties

mso-ansi-font-size

Note: Office only

mso-ansi-font-size: large | larger | <length> | medium | <percentage> | small | smaller | x-large | x-small | xx-large | xx-small