CLICK ME
yes, even hidden code blocks!
print("hello world!")| import { readFileSync } from 'fs'; | |
| import path from 'path'; | |
| type Config = { | |
| envPath: string; | |
| encoding: BufferEncoding; | |
| debug: boolean; | |
| }; | |
| export default ({ envPath = path.resolve(process.cwd(), '.env.json'), encoding = 'utf8', debug = false }: Config) => { |
| #!/bin/bash | |
| unset GIT_DIR | |
| cd /path/to/project | |
| # Get our info.... | |
| LATEST_TAG=$(git describe --tags --abbrev=0) | |
| CURRENT_REVISION=$(git describe) | |
| NUMBER_FILES_CHANGED=$(git diff --name-only HEAD $LATEST_TAG | wc -l) | |
| #FILES_CHANGED=$(git diff --name-only HEAD $LATEST_TAG) |
| // import | |
| import { Dispatch } from 'redux'; | |
| import { connect } from 'react-redux'; | |
| // On Export | |
| export default connect<IState, IAction>( | |
| (state: any) => ({ | |
| // code | |
| }), |
| /* | |
| # file: Auth.tsx | |
| name query: <File>Query|Mutation | |
| */ | |
| /* Query */ | |
| const queryIsAvaliable = graphql` | |
| query AuthQuery($slug: String!) { | |
| isRegistered(slug: $slug) |
| const AWS = require("aws-sdk"); | |
| AWS.config.update({ | |
| region: process.env.AWS_REGION || 'sa-east-1' | |
| }); | |
| const DynamoDB = new AWS.DynamoDB(); | |
| const getListTables = () => { | |
| return new Promise((resolve, reject) => { | |
| try { | |
| DynamoDB.listTables((err, data) => { |