Skip to content

Instantly share code, notes, and snippets.

View alexbaumgertner's full-sized avatar
💻
Digital Nomad

Alex Baumgertner alexbaumgertner

💻
Digital Nomad
View GitHub Profile
const Cell = ('<div></div>');
// => Here will be Griggle state?
const mapStateToProps = state => ({
someData: state.someData
});
const mapDispatchToProps = dispatch => (
bindActionCreators(Cell, dispatch)
)
CellComponent = connect(mapStateToProps, mapDispatchToProps)(Cell)
@alexbaumgertner
alexbaumgertner / stylish_input_mono_font_force_enable.css
Last active October 14, 2024 08:33
Enable Input Mono font for all monospaced fonts
@font-face {
font-family: 'Consolas';
src: local(input mono);
}
@font-face {
font-family: 'Liberation Mono';
src: local(input mono);
}
@font-face {
font-family: 'Menlo';
@alexbaumgertner
alexbaumgertner / placeholders.md
Created March 26, 2016 10:15
github background placeholders

github background placeholders

@alexbaumgertner
alexbaumgertner / js-courses.md
Last active July 18, 2024 08:31
JavaScript courses as on March 2016
// match `menu` block
block('menu')(
// match `list` element of `menu` block (`menu__list`)
elem('list')(
tag()('ul')
),
// match `item` element of `menu` block (`menu__item`)
elem('item')(
// match `logo` block
block('logo')(
// define `content`
content()(function() {
return [
{
block: 'icon',
tag: 'i',
url: '/logo.png',
mix: [{ block: 'logo', elem: 'logo' }]
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: "symbols-nerds";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
// What is `callback`?
/**
* Async working method with callback
*
* @param {*} data
* @param {function} callback
*
* @returns {string}
*/