Skip to content

Instantly share code, notes, and snippets.

Saul Maddox poeticninja

View GitHub Profile
@poeticninja
poeticninja / link-fancy-underline.css
Created Oct 4, 2018
Fancy Link Underline Animation
View link-fancy-underline.css
View business-planning.md

Vision

Big picture idea of what you want to achieve.

Mission Statement

General statement of how you will achieve your vision. There is a very close relationship between the vision and mission. The mission is an action statement that usually begins with the word “to”. Once again it is a very simple and direct statement that is easy to understand and remember.

Core Values

Core values define the business in terms of the principles and values that the business leaders will follow. They provide the bounds or limits of how the business leaders will conduct their activities while carrying out the vision and mission.

Goals

@poeticninja
poeticninja / promise.serial.waterfall.js
Created May 10, 2017
Example serial promises with error to handle individual cases.
View promise.serial.waterfall.js
const delay = require("delay");
const people = [
{
id: 0,
name: "Stewie",
delay: 200
},
{
id: 1,
@poeticninja
poeticninja / ComponentWidth.js
Last active Mar 21, 2017
React component width decorator.
View ComponentWidth.js
import React from "react";
import elementResizeEvent from "element-resize-event";
export default (Component) => {
class ComponentWidth extends React.Component {
state = {
width: 0,
};
componentDidMount() {
const element = this.targetElement;
@poeticninja
poeticninja / _spacing.scss
Last active Feb 24, 2017
Spacing for styles
View _spacing.scss
@mixin spacing($prop: padding, $dir: top, $value: 1) {
#{$prop}-#{$dir}: $value;
}
@function initial($string) {
@return str-slice($string, 0, 1);
}
$properties: (
margin,
View generate-uuid.js
function generateUUID() {
var d = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (d + Math.random()*16)%16 | 0;
d = Math.floor(d/16);
return (c=='x' ? r : (r&0x3|0x8)).toString(16);
});
return uuid;
};
@poeticninja
poeticninja / .bash_profile
Created Oct 11, 2016
Bash Profile - 10/11/2016
View .bash_profile
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias -- -="cd -"
## Use a long listing format ##
alias ll='ls -la'
@poeticninja
poeticninja / docker-cache-experimental.sh
Created Oct 7, 2016
docker cache experimental semaphore
View docker-cache-experimental.sh
#!/usr/bin/env bash
image_archive="image-archive.tar"
image_metadata="docker-image-metadata.tar.gz"
function cache_images() {
images_to_cache=$(docker images | awk '{print $3}' | grep -v '<none>' | tail -n +2 | while read line; do docker history -q $line | grep -v '<missing>'; done | uniq)
if [ -n "$images_to_cache" ]; then
printf "Saving the following images:\n$images_to_cache\n\n"
@poeticninja
poeticninja / keymap.cson
Created Jul 17, 2016
Atom JSX Emmet Support. Escape if autocomplete shows up and then tab for emmet.
View keymap.cson
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
@poeticninja
poeticninja / .bash_profile
Last active Mar 22, 2016
Bash Profile Base
View .bash_profile
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias -- -="cd -"
## Use a long listing format ##
alias ll='ls -la'
You can’t perform that action at this time.