Skip to content

Instantly share code, notes, and snippets.

View stackpoet's full-sized avatar
💭
I may be slow to respond.

Kenya Sullivan stackpoet

💭
I may be slow to respond.
View GitHub Profile
/*Transparent pattern placed over an image, like we see on the bootstrap homepage: http://twitter.github.com/bootstrap/index.html*/
div {
width: 200px;
height: 200px;
display: block;
position: relative;
background: url(images/background-image.png);
}
$lightgray : #819090;
$gray : #708284;
$mediumgray : #536870;
$darkgray : #475B62;
$darkblue : #0A2933;
$darkerblue : #042029;
$paleryellow : #FCF4DC;
$paleyellow : #EAE3CB;
$yellow : #A57706;
$orange : #BD3613;
@stackpoet
stackpoet / Sass Mixin - Headings
Created March 30, 2014 14:08
SASS MIXIN FOR HEADINGS
@mixin headings($from: 1, $to: 6){
@for $i from $from through $to{
h#{$i}{
@content
}
}
}
------USAGE-----------
@include headings(){
font-family:sans-serif;
@stackpoet
stackpoet / Gruntfile.JS - Compass
Created March 30, 2014 21:09
GruntFile.JS -Sass-Compass-Ugilfy-MatchDep-Susy-LiveReload
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.initConfig({
uglify: {
my_target: {
files: {
'_/js/script.js': ['_/components/js/*.js']
} //files
@function em($target, $context: $base-font-size) {
@if $target == 0 { @return 0 }
@return $target / $context + 0em;
}
$base-font-size: 15px;
h1 {
font-size: em(21px, 15px); // Outputs 1.4em
}
%icon {
font-family: $icon-font; //set as a variable - it's whatever your icon font name is
speak: none;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
@stackpoet
stackpoet / uninstall-nodejs
Created October 3, 2016 19:08
Uninstall Node.JS binary installation.
sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}
@stackpoet
stackpoet / .gitignore
Created October 6, 2016 01:57 — 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 20160309
#
# 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.
@stackpoet
stackpoet / iterm2-solarized.md
Created November 10, 2016 05:02 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font (OS X / macOS)

Solarized

@stackpoet
stackpoet / .hyper.js
Created January 13, 2017 14:42 — forked from nolanlawson/.hyper.js
.hyper.js
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',