Skip to content

Instantly share code, notes, and snippets.

View elijahmanor's full-sized avatar
😀

Elijah Manor elijahmanor

😀
View GitHub Profile
@elijahmanor
elijahmanor / SassMeister-input.scss
Created June 26, 2014 15:16
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// Scut (v0.10.4)
// ----
@import "scut";
// http://hugogiraudel.com/2013/08/08/advanced-sass-list-functions/
@function replace-nth($list, $index, $value) {
@elijahmanor
elijahmanor / SassMeister-input.scss
Created July 8, 2014 03:45
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// Scut (v0.10.4)
// ----
@import "scut";
h1 {
font-size: scut-em(48px);
@elijahmanor
elijahmanor / SassMeister-input.scss
Created July 8, 2014 04:14
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// Scut (v0.10.4)
// ----
@import "scut";
%primary-heading {
font-size: scut-em(48px);
@elijahmanor
elijahmanor / SassMeister-input.scss
Created July 8, 2014 04:21
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// Scut (v0.10.4)
// ----
@import "scut";
@mixin typeset( $level: body-copy ) {
$types: (
@elijahmanor
elijahmanor / SassMeister-input.scss
Created July 9, 2014 02:06
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// Scut (v0.10.4)
// ----
@import "scut";
$color-primary: blue;
$color-success: green;
@elijahmanor
elijahmanor / Button-theme-color.scss
Last active August 29, 2015 14:03
Refactor Colors
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
$color-primary: #006dcc;
$color-success: #5bb75b;
$color-danger: #da4f49;
$color-white: white;
@mixin Button-theme($color, $offset: 10) {
$colorDarker: darken(desaturate($color, $offset), $offset);
@elijahmanor
elijahmanor / bower.json
Created August 13, 2014 21:19
Load Local Bower Package
{
"devDependencies": {
"your-repo-name": "/Users/elijah.manor/your-repo/.git/#your-branch"
}
}
@elijahmanor
elijahmanor / conferences.md
Last active August 29, 2015 14:20
Conferences

Conferences

Larger Events (Single City)

Large (Multiple Cities)

  • Breaking Development (nashville, atlanta, washington dc, orlando, san diego, dallas) http://bdconf.com/
  • An Event Apart (atlanta, seattle, boston, san diego, washington dc, chicago, austin, san francisco) http://aneventapart.com/
@elijahmanor
elijahmanor / ajax-example.js
Last active August 29, 2015 14:24
Front-End Stack for EveryDollar Snippets
reqwest('restful/api/endpoint', function(response) {
// do something here
})
reqwest({
url: 'restful/api/endpoint',
method: 'post',
data: { some: 'thing', here: 'there' },
success: function(response) {
// do something here
@elijahmanor
elijahmanor / SanitizeHTML.js
Last active August 29, 2015 14:27
SanitizeHTML Tagged Template String
function SanitizeHTML(literals, ...values) {
let string = '';
values.forEach((value, i) => {
value = String(value);
string += literals[i];
string += value.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
});