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 s3 = require('s3'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const distDir = path.join(path.dirname(fs.realpathSync(__filename)), '../DIRETORIO_COM_ARQUIVOS'); | |
const client = s3.createClient({ | |
s3Options: { | |
// accessKeyId: '', | |
// secretAccessKey: '', |
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
#!/bin/bash | |
# ======================================================================== | |
# Distributor ID: Ubuntu | |
# Description: Ubuntu 14.04.5 LTS | |
# Release: 14.04 | |
# Codename: trusty | |
# ======================================================================== | |
# PHP 5.3.29-Ubuntu/14.04-SergeyD/14.4 (cli) (built: Sep 6 2017 15:48:58) | |
# Copyright (c) 1997-2014 The PHP Group | |
# Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies |
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
## All instances | |
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId]' --filters "Name=instance-state-name, Values=running" | awk '/i-*/ {print $1}' | wc -l | |
## ondemand | |
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceLifecycle]' --filters "Name=instance-state-name, Values=running" | awk '/null/ {print $1}' | wc -l | |
## spot instances | |
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceLifecycle]' --filters "Name=instance-state-name, Values=running" | awk '/spot/ {print $1}' | wc -l |
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 dependencies = { | |
Axios: require('axios'), | |
UserRepository: require('./UserRepository'), | |
OtherUseCase: require('./OtherUseCase'), | |
} | |
async function MyUseCase (someParamId, injection) { | |
const { | |
Axios, | |
UserRepository, |
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 Select from 'react-styled-select' | |
class MyComp extends React.Component { | |
render() { | |
const options = [ | |
{ label: "One", value: 1}, | |
{ label: "Two", value: 2}, | |
] | |
return ( |
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
:root { | |
/* root scope variables */ | |
} | |
.dark-theme { | |
/* local scope variables */ | |
--styled-select-placeholder-color: #999; | |
--styled-select-color: white; | |
--styled-select-background-color: #555; | |
--styled-select-border-color: black; |
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
class MyForm extends React.Component { | |
render() { | |
return(){ | |
<Select className="dark-theme" options={[...]} /> | |
} | |
} | |
} |
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
<?php | |
require('ci.base.php'); | |
const MY_CATEGORY_FIELDS = 'my_category_fields_option'; | |
$tag_extra_fields = array( | |
141 => array( | |
'category_custom_fields' => '', | |
'category_custom_fields_type' => '' | |
), |
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 VerificaSeEstaLogado = () => Promise.resolve('sim'); | |
const VerificaTermo = () => Promise.resolve('sim'); | |
const RedirectToDashboard = () => { ... }; | |
VerificaSeEstaLogado() | |
.then(VerificaTermo) | |
.then(RedirectToDashboard); |
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 Speck from 'speck-entity'; | |
import PropTypes from 'prop-types'; | |
export class UserEntity extends Speck { | |
static SCHEMA = { | |
id: PropTypes.string.isRequired, | |
email: PropTypes.string.isRequired, | |
lastName: PropTypes.string.isRequired, | |
firstName: PropTypes.string.isRequired, | |
profileImageUrl: PropTypes.string.isRequired, |