Skip to content

Instantly share code, notes, and snippets.

View christophengelmayer's full-sized avatar

Christoph Engelmayer christophengelmayer

View GitHub Profile
@christophengelmayer
christophengelmayer / gulpfile.js
Last active December 15, 2016 09:00
Bootstrap Gulp Workflow
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
browserSync = require('browser-sync').create(),
concat = require("gulp-concat"),
imagemin = require('gulp-imagemin'),
sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps'),
browserify = require('browserify'),
babelify = require('babelify'),
source = require('vinyl-source-stream'),
@christophengelmayer
christophengelmayer / ajax.js
Created November 3, 2015 10:32
Vanilla JavaScript AJAX Function
var ajax = (function () {
var ajax = {};
ajax.get = function (url, callbackFunc) {
var req = prepareRequest('GET', url, callbackFunc);
req.send();
}
ajax.post = function (url, params, callbackFunc) {
var req = prepareRequest('POST', url, callbackFunc);
@christophengelmayer
christophengelmayer / style.scss
Last active November 5, 2015 16:05
InuitCSS - All modules imported in single scss file with bower install commands
// bower install --S inuit-starter-kit
/**
* #SETTINGS
*/
@import "bower_components/inuit-defaults/settings.defaults";
// @import "settings.project";
// @import "bower_components/inuit-responsive-settings/settings.responsive"; // bower install -S inuit-responsive-settings
// Define a class like this
function Person(name, gender){
// Add object properties like this
this.name = name;
this.gender = gender;
}
// Add methods like this. All Person objects will be able to invoke this
Person.prototype.speak = function(){
# Apache configuration file
# http://httpd.apache.org/docs/2.2/mod/quickreference.html
# Note: ".htaccess" files are an overhead for each request. This logic should
# be placed in your Apache config whenever possible.
# http://httpd.apache.org/docs/2.2/howto/htaccess.html
# Turning on the rewrite engine is necessary for the following rules and
# features. "+FollowSymLinks" must be enabled for this to work symbolically.
@christophengelmayer
christophengelmayer / responsive.scss
Created March 18, 2013 15:24
SASS port of Contao responsive Grid
/**
* Contao Open Source CMS
*
* Copyright (C) 2005-2013 Leo Feyer
*
* Sass port by Christoph Engelmayer
*
* @package Core
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
<?php
/********************************************************
* Usage:
* - include this file in any document
* - use the following PHP tags to show / hide content:
*
* <?php if( LIKED ): ?>
* Welcome my friend
* <?php else: ?>
@christophengelmayer
christophengelmayer / form.php
Created March 12, 2013 19:55
Simple PHP Form with validation
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>PHP Normform</title>
</head>
<body>
<?php
@christophengelmayer
christophengelmayer / Contract Killer 3.md
Last active November 25, 2023 10:24 — forked from malarkey/Contract Killer 3.md
Contract Killer 3 - German Translation / Deutsche Übersetzung von Contract Killer 3, einer Vertragsvorlage für Webdesign und -development Tätigkeiten.

Contract Killer 3 deutsch

Letzte Änderung: 21.01.2013

Zwischen uns [Unser Firmenname] und Ihnen [Name des Kunden]

Zusammenfassung:

Wir tun immer unser Bestes um Ihre Bedürfnisse und Erwartungen zu erfüllen, jedoch ist es wichtig Dinge niederzuschreiben damit jeder weiß, was was ist, wer was und wann tuen soll und was passiert wenn etwas schief läuft. In diesem Vertrage werden Sie keine komplizierten, in Juristensprache verfassten Geschäftsbedingungen oder lange Passagen von unleserlichem Text finden.