Skip to content

Instantly share code, notes, and snippets.

View coding46's full-sized avatar
🏳️

G. Bodenschatz coding46

🏳️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am coding46 on github.
  • I am gbod (https://keybase.io/gbod) on keybase.
  • I have a public key ASD1wOdefNse3pC7WjNCqio-_y5Nf6aoykAWykCgXHqrRAo

To claim this, I am signing this object:

@coding46
coding46 / .editorconfig
Last active August 29, 2015 14:08
CfD .editorconfig
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
charset = utf-8
# Get rid of whitespace to avoid diffs with a bunch of EOL changes
trim_trailing_whitespace = true
[*]
@coding46
coding46 / Partials-MenuRecursion.html
Created September 20, 2014 21:58
Recursive Menu Generator using Vhs Page Menu
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<f:section name="MenuRecursionStep">
<f:if condition="{currentPage.hasSubPages}">
<v:page.menu pageUid="{currentPage.uid}">
<f:if condition="{menu}">
<ul>
<f:for each="{menu}" as="currentSubPage">
@coding46
coding46 / getElementsByAttribute
Created August 23, 2014 22:14
getElementsByAttribute
/**
* code:
* var elementsWithDataFoo = getElementsByAttribute( 'data-foo' );
* @param attribute
* @returns {Array}
*/
var getElementsByAttribute = function( attribute ) {
var resultSet = [],
allElements = document.getElementsByTagName( '*' );
for ( var i = 0, element; element = allElements[ i ]; i++ ) {