This file contains hidden or 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
// Copyright 2017 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
class ExpansionTileSample extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
This file contains hidden or 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 axios = require('axios'); | |
const consumer = async (event) => { | |
for (const record of event.Records) { | |
console.log("record") | |
console.log(record) | |
const response = await axios.post( | |
'http://factory.p3.api.codestates-devops.be:8080/api/manufactures', | |
// '{\n "MessageGroupId": "stock-arrival-group",\n "MessageAttributeProductId": "CP-502101",\n "MessageAttributeProductCnt": 10,\n "MessageAttributeFactoryId": "FF-500293",\n "MessageAttributeRequester": "\uD64D\uAE38\uB3D9",\n "CallbackUrl": "http://factory.p3.api.codestates-devops.be:8080/api/manufactures"\n}', |
This file contains hidden or 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
# 프로젝트 생성 | |
npx create-react-app fe-sprint-cicd-github-action-eg | |
cd fe-sprint-cicd-github-action-eg | |
# Github Repo 생성 | |
# gh cli install (참조 : https://github.com/cli/cli) | |
gh repo create codestates-seb/fe-sprint-cicd-github-action-eg ./ | |
gh repo create <자신githubid>/<만들고싶은repo주소> ./ | |
# Test code 추가 (참조 : https://jestjs.io/docs/tutorial-react) | |
npm install --save-dev react-test-renderer | |
npm run test |
This file contains hidden or 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
chmod 400 new.pem | |
ssh-keygen -y -f new.pem > new.pub | |
cat ./new.pub | ssh -i old.pem USER@HOST "cat >> ~/.ssh/authorized_keys" | |
# Test | |
ssh -i new.pem USER@HOST |
This file contains hidden or 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
# install minikube 1.26.0 | |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | |
sudo install minikube-linux-amd64 /usr/local/bin/minikube | |
# upgrade yum and install git | |
sudo yum upgrade | |
sudo yum install git | |
# install golang for cri-dockered | |
wget https://storage.googleapis.com/golang/getgo/installer_linux |
This file contains hidden or 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 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart' show debugPaintSizeEnabled; | |
void main() { | |
debugPaintSizeEnabled = false; // Set to true for visual layout | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); |
This file contains hidden or 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 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
This file contains hidden or 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
fizzBuzz(turn) { | |
var str = ''; | |
if (turn % 3 == 0 && turn % 5 == 0){ | |
str += 'FizzBuzz'; | |
} else if (turn % 3 == 0) { | |
str += 'Fizz'; | |
} else if (turn % 5 == 0) { | |
str += 'Buzz'; | |
} if (str.isEmpty){ | |
str = turn.toString(); |
This file contains hidden or 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
void main() { | |
FizzBuzz f = FizzBuzz(); | |
for (int i = 0; i < 5; i++) { | |
print(f.myTurn()); | |
} | |
for (int i = 0; i < 5; i++) { | |
print(f.myTurn()); | |
} | |
} |
This file contains hidden or 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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |