This is just a simple base-line SASS color setup I use in my projects. I find that early style tiles and color choices help focus.
A Pen by sheriffderek on CodePen.
| // paste the following line into terminal and hit return. repeat for as many spaces you think you'll want. | |
| defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' | |
| // restart the finder by pasting the following line into terminal and hitting return. | |
| killall Dock | |
| // finder will restart and your spaces will appear. |
| @mixin bp($point) { | |
| @if $point == m { | |
| @media (min-width: 30em) { @content; } | |
| } | |
| @else if $point == l { | |
| @media (min-width: 45em) { @content; } | |
| } | |
| @else if $point == xl { | |
| @media (min-width: 60em) { @content; } | |
| } |
This is just a simple base-line SASS color setup I use in my projects. I find that early style tiles and color choices help focus.
A Pen by sheriffderek on CodePen.
A Pen by sheriffderek on CodePen.
This is the user-reset I use on top of normalize.
A Pen by sheriffderek on CodePen.
| /** | |
| * Scrolling shadows by @kizmarh and @leaverou | |
| * Only works in browsers supporting background-attachment: local; & CSS gradients | |
| * Degrades gracefully | |
| */ | |
| html { | |
| background: white; | |
| font: 120% sans-serif; | |
| } |
| global $wpdb; | |
| $attachments = $wpdb->get_results( " | |
| SELECT * | |
| FROM $wpdb->postmeta | |
| WHERE meta_key = '_thumbnail_id' | |
| " ); | |
| foreach ( $attachments as $attachment ) { | |
| wp_delete_attachment( $attachment->meta_value, true ); |
| (function($){ | |
| // ================================================ | |
| // print something to the console // easter egg style | |
| console.log("Hello there... "); | |
| $( document ).ready(function() { | |
| // ================================================ |
| import Ember from 'ember'; | |
| // model is in the route | |
| export default Ember.Controller.extend( { | |
| actions: { | |
| showCover(book) { | |
| book.set('coverVisible', true); | |
| console.log(book.coverVisible); |
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress @salcode | |
| # ver 20150227 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
| # to download this file | |
| # | |
| # By default all files are ignored. You'll need to whitelist | |
| # any mu-plugins, plugins, or themes you want to include in the repo. |