Skip to content

Instantly share code, notes, and snippets.

View andruschka's full-sized avatar

Andrej Fritz andruschka

View GitHub Profile
@andruschka
andruschka / .eslintrc.json
Last active June 14, 2018 09:26
parcelLab eslint rules (es2017+)
{
"extends": "eslint:recommended",
"env": {},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"semi": [
"error",
@andruschka
andruschka / .eslintrc.json
Last active June 6, 2018 11:15
parcelLab eslint rules (legacy project)
{
"extends": "eslint:recommended",
"rules": {
"prefer-arrow-callback": "off",
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "error",
"no-unreachable": "error",
"no-unused-vars": "warn",
"constructor-super": "warn",
// Materialize your Bootstrap 3.* project simply by addding .material to the body tag!
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700);
body.material {
font-family: 'Roboto', sans-serif;
h1, h2, h3, h4, h5, h6{
font-family: 'Roboto', sans-serif;
}
p, div{
font-family: 'Roboto', sans-serif;
@andruschka
andruschka / outlined-red.css
Created February 12, 2015 23:30
Outlined light red css theme. (perfect for use with skeleton)
/*
-inpired by html5up template.-
by andruschka 2015
*/
@import url("http://fonts.googleapis.com/css?family=Roboto:100,300,100italic,300italic");
body{
background-color:#1c1d26;
color:#fff;
color: rgba(255, 255, 255, 0.75);
font-weight: 100;
@andruschka
andruschka / material_buttons.css
Last active July 26, 2016 11:28
Google Material Design buttons in different colors ;-)
button.material {
border: 0;
border-radius: 4px;
color: #fff;
cursor: pointer;
position: relative;
padding: 7px 25px;
border: 0;
text-transform: uppercase;
text-decoration: none;
@andruschka
andruschka / pimp-my-bootstrap.css
Last active August 29, 2015 14:08
PIMP my Bootstrap: Bootstrap 3 helpers & tweaks (nicer navbar button, outlined buttons and labels ...)
/* NICER NAVBAR TOGGLE */
.navbar-toggle {
border:0px;
}
.navbar-toggle:hover, .navbar-toggle:focus {
background-color:transparent!important;
}
.navbar-nav .divider-vertical {
height: 50px;
margin: 0 9px;
@andruschka
andruschka / turn-off-active-bootstrap.css
Created July 7, 2014 10:08
Turns off the blue active shade in bootstrap
textarea:hover,
input:hover,
textarea:active,
input:active,
textarea:focus,
input:focus,
button:focus,
button:active,
button:hover
{
@andruschka
andruschka / outlineButtons.css
Last active August 29, 2015 14:02
NICE OUTLINED BUTTONS FOR BOOTSTRAP
/* OUTLINE BUTTONS */
.btn.btn-outline-red{
color: #d43f3a;
background-color: rgba(224, 122, 119, 0.16);
border-color: #d43f3a;
}
.btn.btn-outline-red:hover{
color: #d43f3a;
background-color: rgba(224, 122, 119, 0.46);
border-color: #d43f3a;
@andruschka
andruschka / Girokonto.cs
Created March 23, 2014 21:14
Girokonto C# Klasse
// Attribute
private static long nNextKontoNummer;
private long nKontoNummer;
private double dKontoStand;
// Konstruktor
public GiroKonto()
{}
// Statische Methoden
public static void setNextKontoNummer(long nr)
{
@andruschka
andruschka / Gruntfile_partial.js
Created March 12, 2014 12:44
Fixes the -> $grunt dist-win -command on mac for generator-node-webkit.
grunt.registerTask('createWindowsApp', 'Create windows distribution.', function () {
var done = this.async();
var childProcess = require('child_process');
var exec = childProcess.exec;
exec('cat tmp/nw.exe tmp/app.nw > tmp/QuickQuestion.exe && rm -rf tmp/app.nw tmp/nw.exe', function (error, stdout, stderr) {
var result = true;
if (stdout) {
grunt.log.write(stdout);
}
if (stderr) {