Skip to content

Instantly share code, notes, and snippets.

View criscom's full-sized avatar

Christoph Potzinger criscom

View GitHub Profile
@criscom
criscom / line-through
Created October 20, 2020 12:37
Asciidoctor Text durchstreichen
+++<del>+++Line through+++</del>+++
@criscom
criscom / innovation.md
Last active October 30, 2016 11:05
#sunlime web innovations gmbh: innovation - a definition

#Innovation

heißt für mich:

###an den Besten orientieren

###von den Besten lernen

###mit den Besten arbeiten

@criscom
criscom / Webinar: Building Drupal 8 Sites with Composer and Configuration Management.md
Last active May 14, 2018 20:42
drupal8 summary of the webcast on September 7, 2016

Building Drupal 8 Sites with Composer and Configuration Management [September 7, 2016]

YouTube link

Composer: tool for dependency management in PHP.
Configuration Management: system to store configuration data in a consistent manner

Requirements:
Composer
Git
Drush

@criscom
criscom / menu.html.twig
Last active May 14, 2018 20:41
drupal8 Adjusted version of bootstrap menu.html.twig
{#
/**
* @file
* Default theme implementation to display a menu.
*
* Available variables:
* - menu_name: The machine name of the menu.
* - items: A nested list of menu items. Each menu item contains:
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
@criscom
criscom / gulpfile.js
Created April 26, 2016 19:24 — forked from joelpittet/gulpfile.js
Drupal Theme Gulp'd
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var jshint = require('gulp-jshint');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var compass = require('gulp-compass');
@criscom
criscom / custom_example.info
Created November 15, 2015 19:44
#module info file for custom_example.module
name = Custom Example
description = Just a simple example module
version = 0.1
core = 7.x
package = Alpha Custom Modules
@criscom
criscom / custom_example.module
Created November 15, 2015 19:44
#module implementation of hook_form_alter
<?php
/*
* Implementatiion of hook_form_alter()
*/
function custom_example_form_alter(&$form, &$form_state, $form_id) {
// dsm($form_id);
// target a single form
/* print the variables if needed to allow for
@criscom
criscom / hook_form_user_login_block.php
Last active November 15, 2015 19:23
#template.php: change elements for the user login block
<?php
// add below code into a template php file where "master2015" is the name of the theme
// change elements on the user_login_block
// https://www.drupal.org/node/1167712#comment-6168328
// https://www.evernote.com/l/ARBwFvpMr5RNc6P-0Qmf1XcqIb5dpb3MySM
// See also: http://websmiths.co/blog/very-introduction-drupals-hookformalter
function master2015_form_user_login_block_alter(&$form, &$form_state, $form_id) {
$form['name']['#title'] = t('Username'); // change the name of the first input element
@criscom
criscom / _user_login_block.scss
Last active May 14, 2018 20:42
css inline form elements (user_login_block)
// inline input fields and action button for the user login block
.block-user form > div > {
.form-item,
.form-actions {
display: inline-block;
}
}
@criscom
criscom / git-real.md
Last active November 7, 2018 08:09
#tutorial: transcript from Git real on code school

Git

Git History

Die Entstehung von GIT steht in direkter Verbindung mit der Entwicklung und Instandhaltung des Linux Kernels (1991 - 2002). In dieser Zeit wurden Änderungen in der Software als Patches und archivierte Dokumente unter den Entwicklern ausgetauscht. 2002 begann das Linux Kernel Projekt ein DVCS (Distributed Version Control System) namens BitKeeper zu verwenden.

Als BitKeeper 2005 begann, das Tool zu kommerziell zu vermarkten, 2005 stellte BitKeeper die open source Lizenz des Tools ein und vermarktete es ab sofort kommerziell. Aus diesem Anlass begann Linus Torvalds, Initiator und treibende Kraft bei der Entwicklung des Linux-Kernels, mit der Entwicklung eines eigenen Tools, in die er die Erfahrungen einfließen ließ, die man aus der Anwendung von BitKeeper gewonnen hatte.