Skip to content

Instantly share code, notes, and snippets.

View falldowngoboone's full-sized avatar

Ryan Boone falldowngoboone

  • fall down go boone
  • Fort Worth, TX
View GitHub Profile
@falldowngoboone
falldowngoboone / json.scss
Created March 15, 2021 16:38
Turn Sass values into a JSON string
@function json($arg) {
$type: type-of($arg);
@if $type == string or $type == color {
@return '"#{$arg}"';
} @else if $type == list {
$result: '[';
@if (length($arg) < 1) {
@return $result + ']';
@falldowngoboone
falldowngoboone / MyComponentParent.js
Last active April 4, 2018 01:32
Flexible Render Props API
<PropProvider>
{({PrivilegedComponent, ...props}) => (
<MyComponent {...props}>
<PrivilegedComponent />
</MyComponent>
)}
</PropProvider>
/*
* fish-for-lint.css
* based on the article [Linting HTML using CSS](https://bitsofco.de/linting-html-using-css/)
*
* Add to a page at your own risk.
* You may decide to incorporate this into your dev flow (attach dynamically
* if your env !== production)
*/
/* includes inline styles */
@falldowngoboone
falldowngoboone / docker-compose.yml
Created March 23, 2017 14:23
Docker compose file for WordPress theme development
version: '2'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
@falldowngoboone
falldowngoboone / user-settings.json
Last active July 9, 2017 17:08
Personal Sublime Text 3 User Settings
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme",
"detect_indentation": true,
"fade_fold_buttons": true,
"folder_exclude_patterns":