Skip to content

Instantly share code, notes, and snippets.

View samusgray's full-sized avatar
🇲🇽

Samus Gray samusgray

🇲🇽
  • Mexico City, Mexico
  • 06:55 (UTC -12:00)
View GitHub Profile
@samusgray
samusgray / gist:6195cc615d93e4bec3f3ebd150f3d6ca
Created November 28, 2017 21:20
I Found My Results: Now What?:
1. Bundling actions
- Resource Sites Card
- My List
2. Save to Client (aka CarePlan)
OKR
https://healthify.latticehq.com/goals/18cf2b21-6126-46df-aaf0-f63d7f4b3831
app/assets/stylesheets/base/_buttons.scss:15 [W] SingleLinePerSelector: Each selector in a comma sequence should be on its own single line
app/assets/stylesheets/base/_buttons.scss:15 [W] SingleLinePerSelector: Each selector in a comma sequence should be on its own single line
app/assets/stylesheets/base/_buttons.scss:15 [W] QualifyingElement: Avoid qualifying attribute selectors with an element.
app/assets/stylesheets/base/_buttons.scss:18 [W] PropertySortOrder: Properties should be ordered appearance, border-radius, cursor, display, font-size, line-height, margin-bottom, padding, text-decoration, user-select, vertical-align, white-space, width
app/assets/stylesheets/base/_buttons.scss:21 [W] LeadingZero: `0.5` should be written without a leading zero as `.5`
app/assets/stylesheets/base/_buttons.scss:49 [W] LeadingZero: `0.2` should be written without a leading zero as `.2`
app/assets/stylesheets/base/_forms.scss:1 [W] SelectorFormat: Selector `field_with_errors` should be written in lowercase with hyphens
a
var http = require('http'),
fs = require('fs'),
mime = require('mime'),
colors = require('colors');
// This server is compliant with the demands of HTML5 pushstate URLs.
// See "The Reload Problem" http://www.angularonrails.com/get-html5-pushstate-working-angular-rails/
// The above article is for rails apps, but the same problem / solution apply here.
var rev = function( string){
var reversedString = '';
for(var i = string.length -1; i >= 0; i--) {
reversedString += string[i]
}
return reversedString
}
string = 'Foo';
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Nesting</title>
</head>
<body>
<section>
<article>
<h1>Title</h1>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Bad HTML Page</title>
</head>
<body>
<section>
Something is missing...
</section>
@samusgray
samusgray / gist:1c71323c782664efda78
Last active June 7, 2016 22:15
reveal.js subliminal messages
var images = [
'<img src="img/starbucks.png">',
'<img src="img/google.png">'
];
var flash = function(id, image) {
var target = document.getElementById(id);
var goodHTML = target.innerHTML;
target.innerHTML = image;
1) First commit to include Susy:
https://github.com/mragray/Hero-Wordpress-Theme/commit/d20afca42cd0ed9320225c04e3e4a4688fa3d94d
2) Main Sass File to import all partials: '
https://github.com/mragray/Hero-Wordpress-Theme/blob/master/scss/style.scss
3) Grunt File
https://github.com/mragray/Hero-Wordpress-Theme/blob/master/Gruntfile.js
Grunt Error:
@samusgray
samusgray / SassMeister-input.scss
Created March 18, 2014 22:52
Generated by SassMeister.com.
// ----
// Sass (v3.3.3)
// Compass (v1.0.0.alpha.18)
// ----
// Theme Colors
$yellow: rgb(255, 204, 153);
$orange: #f60;
$dark-blue: #2358b8;
$mid-blue: rgb(102, 153, 204);
@samusgray
samusgray / SassMeister-input.scss
Created February 19, 2014 01:38
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.4)
// Compass (v1.0.0.alpha.18)
// ----
$total-columns: 24;
$column-width: 4em;
$gutter-width: 1em;
@function columns-width(