This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img { | |
max-width: 100%; | |
height: auto; | |
display: block; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UMD-Inspired JS Module from https://gist.github.com/wilmoore/3880415 | |
!function(name, context, definition) { | |
/* global define,module,require */ | |
'use strict'; | |
if (typeof exports === 'object') { | |
module.exports = definition(require); | |
} else if (typeof define === 'function' && define.amd) { | |
define(definition); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.obfuscate { | |
color: transparent; | |
text-shadow: 0 0 5px rgba(0,0,0,.5); | |
cursor: default; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="style.css"> | |
<script src="script.js"></script> | |
<style> | |
#parent { | |
width: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.element(document.body).injector().get('serviceName'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . |grep \.pyc$ | xargs rm -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const id = 42; | |
const myArray = [ | |
{ | |
id: 1, | |
name: 'foobar', | |
}, | |
{ | |
id: 7, | |
name: 'lucky', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ================== FIXED GRID OVERLAY ================== // | |
// Some calculated settings from the Foundation settings file | |
$base_image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8DgAwAEUgFNvg2eQgAAAABJRU5ErkJggg=='); | |
$width: $global-width - rem-calc(map-get($grid-column-gutter, medium)); | |
$offset: rem-calc(map-get($grid-column-gutter, medium)); | |
$gutter: rem-calc(map-get($grid-column-gutter, medium)); | |
$columns: $grid-column-count; | |
@mixin fixedGridOverlay($width, $columns, $gutter) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var breakfast = { | |
"cereal" : "fruit loops", | |
"pastry" : undefined | |
}; | |
console.log(breakfast); | |
// -> { cereal: 'fruit loops', pastry: undefined } | |
console.log(JSON.stringify(breakfast)); | |
// -> {"cereal":"fruit loops"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Deconstruction array items | |
const myArray = ['apple', 'nut', 'mies']; | |
const [apple] = myArray; | |
console.log(apple); | |
'apple' |
OlderNewer