Skip to content

Instantly share code, notes, and snippets.

View thomasmery's full-sized avatar

Thomas Mery thomasmery

  • Aaltomeri
  • Paris
View GitHub Profile
@thomasmery
thomasmery / dabblet.css
Created September 23, 2022 10:53
Untitled
#root {
position: relative;
height: 200px;
background: blue;
}
#root::before {
content: "";
position: absolute;
left: 20px;
@thomasmery
thomasmery / machine.js
Last active July 8, 2020 06:31
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@thomasmery
thomasmery / custom_row_renderer.jsx
Last active June 14, 2021 14:36
Adding props to a React Virtualized custom row renderer
/**
* External dependencies
*/
import React, { PureComponent, PropTypes } from 'react';
import { AutoSizer, Table } from 'react-virtualized';
/**
* Internal dependencies
**/
import getDefaultColumns from './columns'; // some columns for RV Table
.container {
height: 200px;
background: yellow;
display: flex;
flex-direction: column;
align-items: stretch;
}
.scroll {
@thomasmery
thomasmery / dabblet.css
Created February 10, 2016 17:51
Untitled
.outer {
position: relative;
background: red;
height: 100%;
display: flex;
flex-direction: column;
align-items: stretch;
overflow: hidden;
@thomasmery
thomasmery / dabblet.css
Created February 10, 2016 08:35
Untitled
.outer {
position: relative;
background: red;
height: 100%;
display: flex;
flex-direction: column;
align-items: stretch;
overflow: hidden;
@thomasmery
thomasmery / dabblet.css
Last active February 10, 2016 08:34
Untitled
.outer {
position: relative;
background: red;
height: 100%;
display: flex;
flex-direction: column;
align-items: stretch;
overflow: hidden;
@thomasmery
thomasmery / wp_twig.php
Last active January 26, 2016 08:25
Twig template engine setup for Wordpress and ACF -
<?php
/**
* Setup Twig Templating : http://twig.sensiolabs.org/
* expects a /templates directory to exist in theme directory
*
* usage with _twig_render wrapper function
* _twig_render($template_path, $data_array);
*
*
**/
<?php
function media_category_init() {
register_taxonomy( 'media-category', array( 'attachment' ), array(
'hierarchical' => true,
'public' => true,
'show_in_nav_menus' => true,
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
<?php
/*
Extends Visual Composer
More information can be found here: http://kb.wpbakery.com/index.php?title=Category:Visual_Composer
*/
// don't load directly