This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin windows-tile(image, color) | |
// Windows 8 tile icon | |
meta(name='msapplication-TileImage', content=image) | |
meta(name='msapplication-TileColor', content=color) | |
mixin fallback | |
<!--[if lt IE 7]><html class='no-js lt-ie9 lt-ie8 lt-ie7'> <![endif]--> | |
<!--[if IE 7]><html class='no-js lt-ie9 lt-ie8'> <![endif]--> | |
<!--[if IE 8]><html class='no-js lt-ie9'> <![endif]--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo dislocker -V /dev/sdb1 -u /media/bitlocker/ | |
sudo mount -rw -o loop /media/bitlocker/dislocker-file /media/mount/ | |
sudo chmod +w /media/mount | |
nautilus /media/mount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// libs import | |
#include <Adafruit_NeoPixel.h> | |
#include <Servo.h> | |
#define DEBOUNCE_COUNT 5 | |
#define DURATION 650 | |
#define PAUSE 150 | |
#define SPEAKER_PIN 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yubioath show Evernote | grep -oE "[0-9]{6}" | xclip -selection c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bash_aliases | |
# Kill all running containers. | |
alias dockerkillall='docker kill $(docker ps -q)' | |
# Delete all stopped containers. | |
alias dockercleanc='printf "\n>>> Deleting stopped containers\n\n" && docker rm $(docker ps -a -q)' | |
# Delete all untagged images. | |
alias dockercleani='printf "\n>>> Deleting untagged images\n\n" && docker rmi $(docker images -q -f dangling=true)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# imports the settings from the config files | |
import json | |
""" | |
EXAMPLE: | |
.json | |
postgres { | |
database : .. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
db: | |
image: postgres | |
environment: | |
POSTGRES_PASSWORD: password | |
volumes: | |
- ./dbdata:/var/lib/postgresql/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_updated3 : function (canvas, data) { | |
// JOIN data to canvas and provide selection object | |
const circlesSelection = canvas.selectAll("circle").data(data); | |
// get circles which have to be added and subtracted | |
const circlesToAdd = circlesSelection.enter(); | |
const circlesToRemove = circlesSelection.exit(); | |
// create and delete svg object | |
const newCricles = circlesToAdd.append(d3.creator("circle")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You need to import lodash which allows you to deep copy objects and arrays easily. | |
You can also write your own deep copy code of course. :D | |
JS | |
-------------------------------------------------- | |
_forceUpdate : function(property) | |
// set a deep-copy of product as product | |
this.set(property, _.clone(this.get(property))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ramboldio on github. | |
* I am ramboldio (https://keybase.io/ramboldio) on keybase. | |
* I have a public key whose fingerprint is BEEA EE8C 9D7E 52E1 19B6 E936 D850 90BA 05BF 7AD0 | |
To claim this, I am signing this object: |
OlderNewer