Skip to content

Instantly share code, notes, and snippets.

View sheriffderek's full-sized avatar

sheriffderek sheriffderek

View GitHub Profile
@sheriffderek
sheriffderek / application.controller.js
Last active October 2, 2015 17:31 — forked from phkavitha/application.controller.js
StackOverFlow-32855039
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);
@sheriffderek
sheriffderek / .gitignore
Created November 4, 2015 02:15 — forked from salcode/.gitignore
WordPress .gitignore - this is my preferred gitignore file when working with WordPress. It ignores almost all files by default.
# -----------------------------------------------------------------
# .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.
@sheriffderek
sheriffderek / dock-spaces
Last active December 15, 2015 07:29
Put some spaces in your dock with terminal.
// 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.
@sheriffderek
sheriffderek / SASS break point mixin
Last active December 18, 2015 05:39
SASS media query setup
@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; }
}
@sheriffderek
sheriffderek / Basic-SASS-color-setup.markdown
Created November 5, 2013 18:49
A Pen by sheriffderek.

Basic SASS color setup

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.

License.

@sheriffderek
sheriffderek / Basic:-setup.markdown
Created November 23, 2013 03:50
A Pen by sheriffderek.
@sheriffderek
sheriffderek / Basic:-reset.markdown
Created November 23, 2013 03:55
A Pen by sheriffderek.
@sheriffderek
sheriffderek / dabblet.css
Created December 4, 2013 05:58
Scrolling shadows by @kizmarh and @LeaVerou
/**
* 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;
}
@sheriffderek
sheriffderek / Un-associate featured images
Created December 12, 2013 22:09
Remove all featured images
@sheriffderek
sheriffderek / jQuery no conflict
Created January 15, 2014 19:29
setup for jQuery / no conflict
(function($){
// ================================================
// print something to the console // easter egg style
console.log("Hello there... ");
$( document ).ready(function() {
// ================================================