Skip to content

Instantly share code, notes, and snippets.

View mikhailian's full-sized avatar

Alexander Mikhailian mikhailian

View GitHub Profile
1 INTRO
2
3 The salary calculation in Belgium has 5 steps that I will call by their
4 respective french/dutch names:
5
6 'brut ONSS/RZW brutto'
7
8 The calculation of the brutto salary that will be submitted to 'ONSS/RZW'.
9 This is not the same as the brutto salary, as some payments, e.g. the 8th and
10 the following days of sickness leave are excluded from this sum, as well as
/dts-v1/;
/memreserve/ 0x00000000fc86d000 0x00000000006b5e0e;
/ {
serial-number = "4aec28a5f023ee6b";
compatible = "pine64,rock64\0rockchip,rk3328";
interrupt-parent = <0x01>;
#address-cells = <0x02>;
#size-cells = <0x02>;
model = "Pine64 Rock64";
@mikhailian
mikhailian / Test.java
Created April 24, 2018 21:19
comparemyass
import java.util.Random;
public class LongCompare {
static Random r = new Random();
static int compareLikeLong(long x, long y) {
return (x < y) ? -1 : ((x == y) ? 0 : 1);
}
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<label t="translate(0,346)">
@mikhailian
mikhailian / gist:6179589
Created August 7, 2013 22:43
Here's another way to add random signatures to Gmail using Google Apps Script. It will update signatures that you store in a Google Sheet at regular intervals. The only problem is… You have to be a Google Apps for Business administrator to run this thing, because the only way to update a Gmail signature programmatically is via the Google Apps fo…
function onOpen() {
var ss = SpreadsheetApp.getActive();
ss.addMenu("FortunKa", [{name: "Configure", functionName: "doGet"}]);
}
function doGet() {
var app = UiApp.createApplication();
var handler = app.createServerHandler("onSave");
var panel = app.createVerticalPanel();