Skip to content

Instantly share code, notes, and snippets.

View Sixl-Daniel's full-sized avatar

Daniel Sixl Sixl-Daniel

View GitHub Profile
@Sixl-Daniel
Sixl-Daniel / App.vue
Created August 27, 2020 08:59
Vue - Import static data set via options method
<script>
import MY_JSON from './json/data.json';
export default{
// custom option named myJson
myJson: MY_JSON
}
</script>
<template>
<div>
@Sixl-Daniel
Sixl-Daniel / git_cheat_sheet.md
Created August 17, 2020 20:19
Git Cheat Sheet

Global settings

git config --global core.safecrlf false

@Sixl-Daniel
Sixl-Daniel / php.ini.dev
Created August 9, 2020 09:29
php.ini for production/development
;;; php error handling for development servers
display_startup_errors = true
display_errors = true
html_errors = true
log_errors = true
ignore_repeated_errors = false
ignore_repeated_source = false
report_memleaks = true
track_errors = true
docref_root = 0
@Sixl-Daniel
Sixl-Daniel / font-stacks.css
Created July 18, 2020 18:01 — forked from don1138/font-stacks.css
CSS Modern Font Stacks
/* Modern Font Stacks */
/* System */
font-family: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
/* Times New Roman-based serif */
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
/* A modern Georgia-based serif */
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
@Sixl-Daniel
Sixl-Daniel / index.js
Created June 24, 2020 11:50
jQuery Snippets
(function($) {
const
resizeThrottle = 200,
win = $(window),
html = $('html'),
body = $('body'),
btnMenu = $('#btn-main-menu'),
menu = $('#menu');
@Sixl-Daniel
Sixl-Daniel / .htaccess
Created April 12, 2020 01:15
.htaccess for Quasar
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
<?php
class Database {
private $db;
private $statement;
// private $error;
private $optionsPDO = [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
@Sixl-Daniel
Sixl-Daniel / sass-7-1-pattern.scss
Created December 27, 2018 15:30 — forked from rveitch/sass-7-1-pattern.scss
Sass 7-1 Pattern
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
@Sixl-Daniel
Sixl-Daniel / image.html
Created December 19, 2018 11:15
Base64 Encode of 1x1px Transparent GIF
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7">
@Sixl-Daniel
Sixl-Daniel / fran.md
Last active December 19, 2018 09:35
Fran
Mask Slash Subnets and Range Available hosts
.128 /25 2sn à 128 126h
.129 /26 4sn à 64 62h
.224 /27 8sn à 32 30h
.240 /28 16sn à 16 14h
.248 /29 32sn à 8 6h
.252 /30 64sn à 4 2h
.254 /31 128sn à 2