Skip to content

Instantly share code, notes, and snippets.

View joshuarule's full-sized avatar

Joshua Rule Dobson joshuarule

  • Funko
  • Tacoma, Wa
  • 22:41 (UTC -07:00)
View GitHub Profile
@joshuarule
joshuarule / Mulitple Text Shadow Output CSS
Last active January 2, 2016 12:59
Multiple Text Shadows
.hot-1 {
text-shadow: 0 -52px 0 rgba(255, 213, 0, 0.2);
}
.cold-1 {
text-shadow: 0 52px 0 rgba(0, 153, 153, 0.2);
}
.hot-2 {
text-shadow: 0 -52px 0 rgba(255, 213, 0, 0.2) , 0 -104px 0 rgba(255, 128, 0, 0.4);
@joshuarule
joshuarule / Singularity Grid Reveal
Created December 11, 2013 17:25
Singularity Grid Reveal
(function() {
window.onload = function() {
var body = document.body
body.onkeypress = function(e) {
if (e.keyCode == 103 || e.charCode == 103) {
if( "show" == $("[data-development-grid]").attr("data-development-grid")){
$("[data-development-grid]").attr("data-development-grid", "hide")
}else{
$("[data-development-grid]").attr("data-development-grid", "show")
}
@joshuarule
joshuarule / grid.js
Created December 9, 2013 20:35
Grid Toggle
/* Portions of Code Borrowed From: http://jsfiddle.net/7C76W/ */
(function() {
var gridLocation = '/stylesheets/grid.css';
var CMD = 8,
modifiers = 0,
gKey = 71;
Joshs-MacBook-Pro:tinypulse jrd02$ rails s
/Users/jrd02/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /usr in PATH, mode 040777
/Users/jrd02/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler.rb:284: warning: Insecure world writable dir /usr in PATH, mode 040777
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/jrd02/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/application/configuration.rb:115:in `read': No such file or directory - /Volumes/HDRV/_work/tinypulse/config/database.yml (Errno::ENOENT)
from /Users/jrd02/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/application/configuration.rb:115:in `database_configuration'
@joshuarule
joshuarule / gist:6775461
Created October 1, 2013 08:33
Pie Graph Keyframes
@import "compass";
$circle-bg: blue;
$circle-meter: green;
//$animation helpers
// @private css3-feature-support variables must always include a list of five boolean values
// representing in order: -moz, -webkit, -o, -ms, -khtml.
$animation-support: -moz, -webkit, -o, not -ms, -khtml;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="{{ site.baseurl }}/css/application.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Rationale Creative</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
Joshs-MacBook-Pro:explorefm jrd02$ rails s
=> Booting WEBrick
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 20 column 0 (Psych::SyntaxError)
from /usr/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/psych.rb:148:in `parse_stream'
from /usr/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/psych.rb:119:in `parse'
from /usr/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/psych.rb:106:in `load'
JoshuaRule-Lappy-4:explorefm jrd02$ git add -A --verbose
add 'chef/cookbooks/explorefm/templates/default/pg_hba.conf'
add '.DS_Store'
add 'app/.DS_Store'
add 'app/assets/.DS_Store'
add 'app/assets/stylesheets/.DS_Store'
add 'app/assets/stylesheets/explorefm.eot'
add 'app/assets/stylesheets/explorefm.svg'
add 'app/assets/stylesheets/explorefm.ttf'
add 'app/assets/stylesheets/explorefm.woff'
JoshuaRule-Lappy-4:explorefm jrd02$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: chef/cookbooks/explorefm/templates/default/pg_hba.conf
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)