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
{ | |
"options": [ | |
{ | |
"description": { | |
"localized_texts": [ | |
{ | |
"language_code": "en", | |
"text": "Atlanta CityPASS" | |
}, | |
{ |
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 Widget: NextPage = () => { | |
const router = useRouter(); | |
const { extensionUid } = router.query; | |
if (!extensionUid) return null; | |
return ( | |
<> | |
<Wrapper uid={extensionUid as string} declaration={declaration}> | |
<Field /> | |
</Wrapper> |
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
{ | |
"activity": { | |
"category": "My Company", | |
"id": 1, | |
"name": "My Company" | |
}, | |
"attachment": { | |
"id": 2, | |
"name": "laugh.flac", | |
"url": "https://aws_cloudfront/find/large.numbers", |
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
"use strict"; | |
// animation utils | |
// =============== | |
const trackTime = id => { | |
const [entry] = performance.getEntriesByName(id); | |
if (!entry) { | |
performance.mark(id); |
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
// set babel in entry file | |
require('babel-core/register')({ presets: ['es2015-node5', 'stage-3']}) | |
require('./app') |
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
# I have a hash `dates` that I get from "DateTime.now - 7, DateTime.now" in my database. | |
# I need to turn it into a full week where if the date doesn't exist put a 0 in as the value of the date key. | |
dates = {"2014-01-15"=>1, "2014-01-17"=>1, "2014-01-18"=>1, "2014-01-19"=>17} | |
week_hash = { | |
"2014-01-13"=>0, | |
"2014-01-14"=>0, | |
"2014-01-15"=>1, | |
"2014-01-16"=>0, |
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
$turquoise: #1ABC9C | |
$green-sea: #16A085 | |
$emerland: #2ECC71 | |
$nephritis: #27AE60 | |
$peter-river: #3498DB |
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
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) */ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, |
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
##Userable | |
module Userable | |
def self.included(base) | |
base.has_one :user, :as => :userable, :dependent => :destroy, :autosave => true | |
base.validate :user_must_be_valid | |
base.alias_method_chain :user, :autobuild | |
base.extend ClassMethods | |
base.define_user_accessors | |
end | |
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
$list: add edit remove details | |
=action-list | |
@each $action in $list | |
.#{$action}-icon | |
background: url('#{$action}-info.png') no-repeat | |
+action-list |
NewerOlder