Skip to content

Instantly share code, notes, and snippets.

Avatar

Jordan Brauer jordanbrauer

View GitHub Profile
View SassMeister-input.scss
// Buttons
// ".btn-{modifiername}", background-color, border, color
$buttons: (
("primary", #2F9ED8, #2886B7, #FFFFFF),
("secondary", #FFFFFF, #DDDDDD, #101010)
);
// Generate Button Modifiers
@each $b in $buttons {
.btn.btn-#{nth($b,1)} {
@jordanbrauer
jordanbrauer / package.json
Created Sep 30, 2016
Just my current list of commonly used node package dev dependencies.
View package.json
"devDependencies": {
"del": "^2.2.1",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.0",
"gulp-cache": "^0.4.5",
"gulp-compass": "^2.1.0",
"gulp-concat": "^2.6.0",
"gulp-cssnano": "^2.1.2",
"gulp-imagemin": "^3.0.2",
"gulp-livereload": "^3.8.1",
@jordanbrauer
jordanbrauer / .gitignore
Created Sep 30, 2016
My base .gitignore file.
View .gitignore
### Custom ###
cache
dist
test
### macOS ###
*.DS_Store
.AppleDouble
.LSOverride
@jordanbrauer
jordanbrauer / print_md.php
Created Jan 3, 2017
Get the raw text content from a markdown file to use elsewhere in your code. Made for use in conjunction with the erusev/parsedown composer package.
View print_md.php
<?php
/** Print Markdown
* Author: Jordan Brauer <jbrauer.inc@gmail.com>
* Function: print_md()
* Description: get the raw text content from a markdown file
* to use elsewhere in your code.
*
* Note: Made for use in conjunction with the erusev/parsedown composer package.
*/
View C3\Utility\DuplicateDatabase.php
<?php
namespace C3\Utility;
use Monolog\Logger;
/**
* Class DuplicateDatabase
*
* @package C3\Utility
@jordanbrauer
jordanbrauer / customers.sql
Created Jun 30, 2017 — forked from leek/README.md
Magento - Delete All Test Data
View customers.sql
SET FOREIGN_KEY_CHECKS=0;
-- Customers
TRUNCATE `customer_address_entity`;
TRUNCATE `customer_address_entity_datetime`;
TRUNCATE `customer_address_entity_decimal`;
TRUNCATE `customer_address_entity_int`;
TRUNCATE `customer_address_entity_text`;
TRUNCATE `customer_address_entity_varchar`;
TRUNCATE `customer_entity`;
View gist:50adf19ebfb612fa753e88e22ae1f5d5
{%- comment -%}
--------------------------- WARNING ---------------------------
This file is auto-generated by BOLD and should not be modified.
It may be overwritten and any customizations would be lost.
--------------------------- WARNING ---------------------------
{%- endcomment -%}
<script>
@jordanbrauer
jordanbrauer / prealoadImages.js
Created Jul 24, 2017
Preload images on page
View prealoadImages.js
preloadImages() {
let i = 0;
const arr = [...Backgrounds, ...Images];
return new Promise(resolve => {
arr.map(filename => {
const img = new Image();
img.src = filename;
img.onload = () => (++i == arr.length) ? resolve() : 1;
});
});
@jordanbrauer
jordanbrauer / megamenu.bulma.html
Last active Oct 19, 2017
Bulma 0.6 implementation of the megamenu extension https://github.com/hunzaboy/bulma-megamenu
View megamenu.bulma.html
<nav class="navbar">
<div class="navbar-brand">
<div class="navbar-burger burger" data-target="navMenubd-example">
<span></span>
<span></span>
<span></span>
</div>
</div>
You can’t perform that action at this time.