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
interface Academic { | |
firstName: string | |
lastName: string | |
avatar: string | |
university: string | |
} | |
interface Question { | |
content: string | |
createdAt: Date |
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
<section> | |
<a id="ample-widget" href="https://sample.ampleviews.com/yle/index.html">Ample Commentaries</a> | |
<script async src="https://developers.ampleviews.com/scripts/widget.js"></script> | |
</section> |
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
import android.view.ViewGroup | |
import android.widget.Button | |
import androidx.core.view.children | |
import androidx.databinding.BindingAdapter | |
@BindingAdapter("disableButtons") | |
fun ViewGroup.setDisableButtons(disableButtons: Boolean) { | |
children.forEach { | |
(it as? Button)?.isEnabled = !disableButtons | |
} |
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
image: ntr9h/node-awscli2:latest | |
deploy: | |
stage: deploy | |
when: manual | |
script: | |
- npm run upload | |
- npm run upload:post |
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
FROM node:12.13.1 | |
LABEL maintainer="[email protected]" | |
LABEL nodeVersion="12.13.1" | |
LABEL awscliVersion="2.0.0" | |
LABEL version="1.0.0" | |
# https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux-mac.html | |
RUN curl "https://d1vvhvl2y92vvt.cloudfront.net/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
RUN unzip awscliv2.zip | |
RUN ./aws/install |
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
{ | |
"scripts": { | |
"upload": "aws2 s3 sync dist/ s3://yourpackage", | |
"upload:post": "aws2 cloudfront create-invalidation --distribution-id your-distribution-id --paths '/*'", | |
} | |
} |
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
image: node:12 | |
create_jira_version: | |
stage: post-deploy | |
only: | |
- tags | |
- /^(\d+\.)?(\d+\.)?(\*|\d+)$/ | |
variables: | |
VERSION: $CI_BUILD_TAG | |
USER: $JIRA_USER:$JIRA_TOKEN |
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
import React from 'react'; | |
import { storiesOf as storybookStoriesOf } from '@storybook/react'; | |
import { StylesProvider } from '@material-ui/styles'; | |
const generateClassName = (rule, styleSheet) => `${styleSheet.options.classNamePrefix}-${rule.key}`; | |
// Putting material-ui to work with jest snapshot is having a style name issue as described here https://github.com/mui-org/material-ui/issues/9492 | |
// This small gist override the storiesOf default from @storybook/react with wrapper for StylesProvide | |
// Later when the original storiesOf works, we can just replace this with the original version |
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
import React from 'react'; | |
import { storiesOf as storybookStoriesOf } from '@storybook/react'; | |
import { StylesProvider } from '@material-ui/styles'; | |
const generateClassName = (rule, styleSheet) => `${styleSheet.options.classNamePrefix}-${rule.key}`; | |
export default function storiesOf(kind, module) { | |
let stories = storybookStoriesOf(kind, module) | |
let _add = stories.add | |
//add: (storyName: string, storyFn: StoryFn<StoryFnReturnType>, parameters?: Parameters) => StoryApi<StoryFnReturnType>; |
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
import React from 'react'; | |
import { storiesOf as storybookStoriesOf } from '@storybook/react'; | |
import { StylesProvider } from '@material-ui/styles'; | |
const generateClassName = (rule, styleSheet) => `${styleSheet.options.classNamePrefix}-${rule.key}`; | |
export default function storiesOf(kind, module) { | |
let stories = storybookStoriesOf(kind, module) | |
let _add = stories.add | |
//add: (storyName: string, storyFn: StoryFn<StoryFnReturnType>, parameters?: Parameters) => StoryApi<StoryFnReturnType>; |
NewerOlder