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 java.util.Arrays; | |
| import java.util.Date; | |
| import java.util.List; | |
| import com.bma.jwt.app.vo.JWTPayload; | |
| import com.bma.jwt.app.vo.User; | |
| import com.google.gson.Gson; | |
| import io.jsonwebtoken.Claims; | |
| import io.jsonwebtoken.Jws; |
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
| // Can you spot the "memory leak"? | |
| public class Stack { | |
| private Object[] elements; | |
| private int size = 0; | |
| private static final int DEFAULT_INITIAL_CAPACITY = | |
| 16; | |
| public Stack() { | |
| elements = new Object[DEFAULT_INITIAL_CAPACITY]; | |
| } | |
| public void push(Object e) { |
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 { createStore } from 'redux'; | |
| import reducers from '../reducers'; | |
| const initialState = {tech: "React JS"}; | |
| const store = createStore(reducers, initialState); | |
| export default store; |
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 * as Type from '../actions/constants'; | |
| export default (state, action) => { | |
| console.log(action); | |
| if (action.type === Type.SET_TECHNOLOGY) { | |
| return { | |
| ...state, | |
| tech: action.text |
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 React, {useState} from "react"; | |
| import { useSelector } from 'react-redux'; | |
| export default function HelloWorld() { | |
| const tech = useSelector(state => state.tech); | |
| return ( | |
| <h1> | |
| Say Hello To: {tech} |
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 React from 'react'; | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| import HelloWorld from './components/HelloWorld'; | |
| import { Provider } from 'react-redux'; | |
| import store from './store'; | |
| import ButtonGroup from './components/ButtonGroup'; | |
| function App() { | |
| return ( |
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
| brew "asdf" | |
| brew "adr-tools" | |
| brew "curl" | |
| brew "diff-so-fancy" | |
| brew "direnv" | |
| brew "ffmpeg" | |
| brew "git" | |
| brew "git-secret" | |
| brew "gnu-sed" | |
| brew "gpg" |
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
| # Datasource configuration for jdbc h2 | |
| # this is for file based persistent storage | |
| # spring.datasource.url=jdbc:h2:file:/data/demo | |
| # For in-memory storage | |
| spring.datasource.url=jdbc:h2:mem:testdb;MODE=MySQL;DB_CLOSE_DELAY=-1;IGNORECASE=TRUE; | |
| spring.datasource.driverClassName=org.h2.Driver | |
| spring.datasource.username=vslala | |
| spring.datasource.password=simplepass | |
| spring.jpa.database-platform=org.hibernate.dialect.H2Dialect |
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
| stages: | |
| - sshserver | |
| variables: | |
| REGISTRY_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA | |
| test: | |
| image: alpine:latest | |
| stage: sshserver | |
| script: |