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
<template> | |
<div class="columns"> | |
<div class=" field column is-3"> | |
<label class="label">대 카테고리<span v-if="isRequired">*</span></label> | |
<multiselect v-model="firstLevelCategory" track-by="id" label="name" placeholder="대 가테고리 검색" | |
:options="firstLevelCategories" :show-labels="false" :searchable="true" :allow-empty="false"> | |
<span slot="noResult">검색 결과가 없습니다</span> | |
<span class="multiselect__tag-custom-icon mdi mdi-chevron-down" slot="caret"></span> | |
</multiselect> | |
<div v-if="isRequired && $v.firstLevelCategory.$invalid" class="help is-danger">대 카테고리를 선택해주세요</div> |
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
@Repository | |
public class RoleRepository { | |
private MyBatisMapper mapper; | |
private RoleCrudRepository crud; | |
@Mapper | |
public interface MyBatisMapper { | |
Optional<Role> selectByDescription(); | |
} |
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
console.log("___________TRACKING______________"); | |
const iframe = document.getElementsByTagName('iframe')[0] | |
const myPlayer = new Vimeo.Player(iframe); | |
// const iframe = null; | |
if (iframe) { | |
console.log('[elyor] iframe exists'); | |
const player = new Vimeo.Player(iframe); | |
const url = iframe.getAttribute("src").split('?')[0]; | |
const vimeoId = extractVimeoId(url); | |
fetchLastWatchProgress(vimeoId).then((data) => { |
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 iframe = document.getElementsByTagName('iframe')[0] | |
if (iframe) { | |
const player = new Vimeo.Player(iframe); | |
const url = iframe.getAttribute("src").split('?')[0]; | |
const vimeoId = extractVimeoId(url); | |
updateCurrentPlayerTime(vimeoId, player); | |
trackWatchProgress(vimeoId, player); | |
} | |
function updateCurrentPlayerTime(vimeoId, player) { |
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 lombok.extern.slf4j.Slf4j; | |
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; | |
import org.springframework.core.Ordered; | |
import org.springframework.core.annotation.Order; | |
import org.springframework.http.server.reactive.ServerHttpRequest; | |
import org.springframework.stereotype.Component; | |
import org.springframework.web.server.ServerWebExchange; | |
import org.springframework.web.server.WebFilter; | |
import org.springframework.web.server.WebFilterChain; | |
import reactor.core.publisher.Mono; |
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 javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletRequestWrapper; | |
import java.util.Collections; | |
import java.util.Enumeration; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** | |
* Provides a way to add query parameters to a request | |
* */ |
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
PID_FILE="$(pwd)/api-server.pid" | |
JAVA_HOME=/usr/lib/jvm/java-11/ | |
JVM_OPTIONS="-Xms512M -Xmx1G -XX:+UseParallelGC" | |
JAR_FILE="api-server.jar" | |
SPRING_CONF_DIR="-Dspring.config.additional-location=$(pwd)/conf/ " | |
SPRING_ACTIVE_PROFILE="-Dspring.profiles.active=dev " | |
SPRING_OPTIONS="$SPRING_CONF_DIR$SPRING_ACTIVE_PROFILE" | |
case "$1" in |
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
<# | |
Add following function to your powershell profile. | |
Copy your public key to the remote server to login without password | |
#> | |
function ssh_dev { | |
ssh username@host | |
} |
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
<# | |
1. Add following function to your powershell profile. | |
If doesn't exist create under $ENV:USERPROFILE\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
#> | |
function prompt { | |
$p = Split-Path -leaf -path (Get-Location) | |
"$p> " | |
} | |
<# | |
2. Save the profile and restart PowerShell |
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
# First generate public/private key if doesn't exists | |
ssh-keygen | |
# For PowerShell | |
type $ENV:USERPROFILE\.ssh\id_rsa.pub | ssh username@host "cat >> .ssh/authorized_keys" | |
# For CMD | |
type %USERPROFILE%\.ssh\id_rsa.pub | ssh username@host "cat >> .ssh/authorized_keys" |