# This will require about 30GB of space, still in experimental phase right now
sudo gem install iesd
cd /Applications # Or wherever you hve the "Install 10.12 Developer" available
iesd -i Install\ 10.12\ Developer\ -o macos.dmg -t BaseSystem
hdiutil convert macos.dmg -format UDSP -o macos.sparseimage
# You can cloase any popup finder windows
hdiutil mount Install\ 10.12\ Developer\

JavaScript Best Practices

Code conventions

Closing/opening brackets

Although this isn't a problem in other languages, because of semicolon insertion, there could be problems if you don't place the bracket on the opening line:

// no:
View tampermonkey.partyparrot.js
// ==UserScript==
// @name party parrot - PARTY OR DIE
// @namespace
// @version 0.1
// @description There's no parrot like party parrot!
// @author cuidas
// @match http://*/*
// @match https://*/*
// @grant none
// @require
View controllers.application.js
import Ember from 'ember';
const { computed } = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
bigNumberTest: computed(function() {
const a = (new BigNumber(2043150)).dividedBy(Math.pow(100, 2));
return a;

Calling alert from WebAssembly (WASM)

This very simple and minimal tutorial documents in a few easy steps how to play with WebAssembly (WASM) and get first results within minutes.

While the code below is mostly useless, it will show, how to call the alert function from within a WASM file and thus demonstrate how to import and export DOM objects.

Of course, this exercise has no real use. It is just meant to show, that getting started with WASM isn't hard. And there is no need for a complex build-chain, tons of tools or a dedicated VMs. Just use a browser, one online tool and that's it.

And Now?

View ATS Disable

The Scriptless Scriptlet

Or how to execute JavaScript from CSS in MSIE11 without using Scripts

Stop! This text is only interesting for you if you...

  • Like popping alerts in weird situations
  • Miss CSS expressions as much as we do
  • Have an unhealthy obsession for markup porn


View perfectelementary.bash
#Download Elementary OS from here:
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - | sudo apt-key add -
sudo sh -c 'echo "deb stable main" >> /etc/apt/sources.list.d/google-chrome.list'
View gist:1262561
function declOfNum(number, titles) {
cases = [2, 0, 1, 1, 1, 2];
return titles[ (number%100>4 && number%100<20)? 2 : cases[(number%10<5)?number%10:5] ];
declOfNum(count, ['найдена', 'найдено', 'найдены']);