Skip to content

Instantly share code, notes, and snippets.

View duxet's full-sized avatar
💭
👨‍💻

Wojciech duxet

💭
👨‍💻
View GitHub Profile
@duxet
duxet / introrx.md
Created April 15, 2019 07:14 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@duxet
duxet / richhickey.md
Created July 1, 2018 04:57 — forked from prakhar1989/richhickey.md
richhickey.md

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

{"lastUpload":"2020-02-19T09:03:27.813Z","extensionVersion":"v3.4.3"}
{
"version": 0.6,
"generator": "Overpass API",
"osm3s": {
"timestamp_osm_base": "2017-10-17T15:47:02Z",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
},
"bounds": {
"minlat": 47.3705,
"minlon": -1.3048,
{
"rcs": "string",
"pageBeacon": "string",
"status": "string",
"viewGuid": "string",
"placements": [
{
"htmlElementId": "string",
"placementType": "string",
"strategyMessage": "string",
let widget = files_tree.upcast::<Widget>();
widget.connect_button_release_event(|_, event| {
println!("{}", event.get_button());
Inhibit(false)
});

KVM OSX Guest 10.11 (El Capitan) with Clover

  • Some notes about this approach:
    • An OSX Installer USB drive for Install OS X El Capitan is created
    • Clover is then installed on the USB drive
    • Clover Configurator is then run on the USB drive
    • The USB drive contents are copied to the VM host
    • VNC is used to connect to the guest UI
  • The qxl virtual video device is used (part of the standard kvm qemu install)

Keybase proof

I hereby claim:

  • I am duxet on github.
  • I am duxet (https://keybase.io/duxet) on keybase.
  • I have a public key whose fingerprint is AC03 3F92 B0F6 FF22 8B20 1D97 3EAC 3AA0 6DB7 CFC8

To claim this, I am signing this object:

@duxet
duxet / tooltip-hover.js
Created September 13, 2015 22:10
Bootstrap V4 - tooltip, popover - stay open while hovering on content
var originalLeave = $.fn.popover.Constructor.prototype._leave;
$.fn.popover.Constructor.prototype._leave = function(event, context){
var dataKey = this.constructor.DATA_KEY
var self = this
context = context || $(event.currentTarget).data(dataKey)
if (!context) {
context = new this.constructor(
event.currentTarget,
@duxet
duxet / aliases.php
Last active August 29, 2015 14:16
Consistent Function Names implementation for PHP 5.6+
<?php
use function bcadd as bc_add;
use function bccomp as bc_comp;
use function bcdiv as bc_div;
use function bcmod as bc_mod;
use function bcmul as bc_mul;
use function bcpow as bc_pow;
use function bcpowmod as bc_pow_mod;
use function bcscale as bc_scale;