Skip to content

Instantly share code, notes, and snippets.

View bdbch's full-sized avatar
🔨
cooking smth

bdbch bdbch

🔨
cooking smth
View GitHub Profile
@bdbch
bdbch / Example.html
Last active August 29, 2015 14:20
Example HTML5 Document
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Dokument</title>
</head>
<body>
<!-- Hauptheader -->
<header id="page-header">
<h1>Titel der Seite</h1>
@bdbch
bdbch / jquery.plugin.js
Last active August 29, 2015 14:22
jQuery Plugin Template
/**
*
* pluginName
* Author: Your Name
* Company: Your Company
* Github: Your Github Link
* Version: 1.0
* License: License Title
*
**/
@bdbch
bdbch / jquery.browser.js
Created September 29, 2015 09:44
jquery browser
/*!
* jQuery Browser Plugin 0.0.8
* https://github.com/gabceb/jquery-browser-plugin
*
* Original jquery-browser code Copyright 2005, 2015 jQuery Foundation, Inc. and other contributors
* http://jquery.org/license
*
* Modifications Copyright 2015 Gabriel Cebrian
* https://github.com/gabceb
*
{
"param": {
"room_name": "Room 1024",
"players": [
{
"player_name": "aoikaze",
"player_position": 1,
"player_picture": "http://img.blabla.com/asd.png",
"player_id": 100
},
@bdbch
bdbch / .hyper.js
Last active January 5, 2017 23:27
Hyper configuration
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: '"DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgb(238, 119, 56, .8)',
@bdbch
bdbch / kommentar.css
Last active April 13, 2017 10:54
Maintainable CSS Demo - 1
.kommentar {
}
.kommentar-header {
}
.kommentar-body {
@bdbch
bdbch / kommentar.css
Created April 13, 2017 10:54
Maintaineable CSS - Demo 2
.kommentar {
}
.kommentar .header {
}
.kommentar .body {
@bdbch
bdbch / kommentar.css
Last active April 13, 2017 10:58
Maintainable CSS - Demo 3
/* ----- Maintainable Approach ------- */
.user {
}
.user-avatar {
}
@bdbch
bdbch / kommentar.html
Created April 13, 2017 11:01
Maintainable CSS - Demo 3
<article class="kommentar">
<header class="kommentar-header">
<div class="user">
<img src="#" class="user-avatar" />
<h4 class="user-name">
<a href="#" class="user-link">Max Mustermann</a>
</h4>
</div>
</header>
<section class="kommentar-body">
@bdbch
bdbch / gist:1ba14a96ca77921f3a4db890ed7c4bbb
Created April 19, 2017 14:36
Iframe Regex for src attribute
/<iframe ?.* src="([^"]+)" ?.*>/