Skip to content

Instantly share code, notes, and snippets.

View sebholstein's full-sized avatar

Sebastian Holstein sebholstein

View GitHub Profile
#header {
width: 900px;
/* wird zu #header .logo */
.logo {
width: 100px;
background: ...
}
/* regel bezieht sich durch das & auf den #header, also #header.wide */
#header
width: 900px
...
/* wird zu #header .logo */
.logo
width: 100px
background: ...
/* wird zu #header .logo .subtitle */
$default_link_color: #000
$dark_blue: #123456
$light_green: #132312
$default_box_padding: 10px
.xy_box
padding: $default_box_padding
background: yellow
color: $dark_blue
/* mixin namens border-radius */
=border-radius($radius: 5px)
-webkit-border-radius: $radius
-moz-border-radius: $radius
-khtml-border-radius: $radius
border-radius: $radius
.box-xy
/* würde in diesem beispiel einen radius von 5px nehmen */
@sebholstein
sebholstein / karma.conf.js
Created October 16, 2014 19:26
Karma Demo Konfigurationsdatei - erstellt mit "karma init"
// Karma configuration
// Generated on Thu Oct 16 2014 20:54:32 GMT+0200 (CEST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
@sebholstein
sebholstein / designer.html
Created February 13, 2015 12:45
designer
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../speech-mic/speech-mic.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
@sebholstein
sebholstein / bootstrap-consul.sh
Created June 29, 2016 07:52 — forked from bluk/bootstrap-consul.sh
Consul Bootstrap on CoreOS
#!/bin/bash
# From https://gist.github.com/philips/56fa3f5dae9060fbd100
source /etc/environment
name=$(cat /etc/machine-id)
if [ ! -f /opt/consul ]; then
mkdir /opt
mkdir /var/lib/consul
@sebholstein
sebholstein / bootstrap-consul.sh
Created June 29, 2016 07:52 — forked from yaronr/bootstrap-consul.sh
Bootstrap Consul on CoreOS
#!/bin/bash
source /etc/environment
hostname=$(cat /etc/machine-id)
machines=$(etcdctl ls /consul.io/bootstrap/machines)
#If there are 'machines' then the cluster has been initialised.
if [ -z "$machines" ]
then
flags="${flags} -bootstrap"
if ('Notification' in window) {
Notification.requestPermission().then(status => {
// status can be 'granted' or 'denied'
// code to handle the result here...
});
}
if ('Notification' in window && Notification.permission === 'granted') {
// it's save to send notifications here if you want to...
)