Skip to content

Instantly share code, notes, and snippets.

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

Wojciech duxet

💭
👨‍💻
View GitHub Profile
/*
"dependencies": {
"gulp": "^3.8.8",
"gulp-bower-files": "^0.2.7",
"gulp-concat": "^2.4.1",
"gulp-load-plugins": "^0.7.0",
"gulp-sourcemaps": "^1.2.4",
"gulp-uglify": "^1.0.1",
"main-bower-files": "^2.1.0"
}
/*!
* Bootstrap v2.3.1
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;ver
@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;
@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,

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:

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)
let widget = files_tree.upcast::<Widget>();
widget.connect_button_release_event(|_, event| {
println!("{}", event.get_button());
Inhibit(false)
});
{
"rcs": "string",
"pageBeacon": "string",
"status": "string",
"viewGuid": "string",
"placements": [
{
"htmlElementId": "string",
"placementType": "string",
"strategyMessage": "string",
{
"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,
{"lastUpload":"2020-02-19T09:03:27.813Z","extensionVersion":"v3.4.3"}