Skip to content

Instantly share code, notes, and snippets.

View utroda's full-sized avatar

Jared utroda

View GitHub Profile
function getKey(k) {
return `a key named ${k}`;
}
const obj = {
id: 5,
name: 'San Francisco',
[getKey('enabled')]: true,
};
@utroda
utroda / SassMeister-input-HTML.html
Created October 31, 2014 17:54
Generated by SassMeister.com.
<a href="#">Test Link</a>
<a href="#" class="btn">Test Link Two</a>
<a href="#" class="btn btn--green">Test Link Three</a>
<a href="#" id="link" class="btn">Test Link Four</a>
@utroda
utroda / SassMeister-input.scss
Created July 8, 2014 17:30
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
$inputs: (
'input[type="text"]',
'input[type="password"]',
'input[type="email"]',
'input[type="url"]',
@utroda
utroda / SassMeister-input.scss
Created July 8, 2014 17:24
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
$inputs: (
'input[type="text"]',
'input[type="password"]',
'input[type="email"]',
'input[type="url"]',
@utroda
utroda / Toggle Switches
Last active December 12, 2015 06:08
Toggle Switches
<div class="toggle" data-status="off">
<div class="track off">
<div class="switch">
<b></b>
</div>
</div>
</div>
@utroda
utroda / Flip Cards Markup and LESS
Last active December 12, 2015 04:38
Markup and styles for creating flip cards
//
// Live Tiles
//
.card{
width:300px; height:300px;
margin:20px auto;
position:relative;
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
@utroda
utroda / responsive-facebook-comments.txt
Created September 26, 2012 19:10
Responsive Facebook Comments
.fbcomments,.fb_iframe_widget,.fb_iframe_widget[style],.fb_iframe_widget iframe[style],.fbcomments iframe[style],.fb_iframe_widget span {
width: 100% !important;
}
@utroda
utroda / responsive-iframes.css
Created August 15, 2012 20:20 — forked from aarongustafson/responsive-iframes.css
Responsive iFrames with jQuery
iframe {
max-width: 100%;
}