Skip to content

Instantly share code, notes, and snippets.

View honzabilek4's full-sized avatar
🌱

Jan Bílek honzabilek4

🌱
View GitHub Profile
@honzabilek4
honzabilek4 / check-component.js
Created February 3, 2018 15:41
Vue check if component exist
checkIfComponentExists() {
const keys = Object.keys(this.$options.components);
const names = keys.map(key => {
const component = this.$options.components[key];
let name = '';
if (component) {
name = component.name;
}
return name;
});
@honzabilek4
honzabilek4 / git diff sqlite3 .gitattributes
Created February 1, 2018 20:51 — forked from peteristhegreat/git diff sqlite3 .gitattributes
Sqlite git diff - Get git to use an sql dump of sqlite3 for showing differences ( .gitconfig config attributes sqlite3 )
*.db diff=sqlite3
@honzabilek4
honzabilek4 / vertical-center.css
Created August 29, 2017 09:27
Vertical centering hack using transform.
.vertical-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
; Autor: Miroslav Balik
; Source code: EXE 16b DOS
; Directs for assembling and linking:
; nasm odeslani.asm -fobj
; alink odeslani.obj
;********************************Macros***********************************
%macro dosint 1
mov ah,%1