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
member_id = 'lucas'; | |
secret_key = '4629de5def93d6a2abea6afa9bd5476d9c6cbc04223f9a2f7e517b535dde3e25'; | |
expected_hash = "99427c7bba36a6902c5fd6383f2fb0214d19b81023296b4bd6b9e024836afea2"; | |
key = ['4629de5def93d6a2abea6afa9bd5476d9c6cbc04223f9a2f7e517b535dde3e25'].pack('H*') | |
OpenSSL::HMAC.hexdigest("SHA256", key, member_id) |
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
<template> | |
<section class="main"> | |
<v-overlay :value="eventLoading"> | |
<v-progress-circular indeterminate size="64"></v-progress-circular> | |
</v-overlay> | |
<v-btn @click="handleSubmit">SUBMIT</v-btn> | |
</section> | |
</template> |
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
FROM ruby:2.4-alpine | |
ENV PATH /root/.yarn/bin:$PATH | |
RUN apk update && apk upgrade && \ | |
apk add --no-cache bash git openssh build-base nodejs tzdata | |
RUN apk update \ | |
&& apk add curl bash binutils tar gnupg \ | |
&& rm -rf /var/cache/apk/* \ |
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
<template> | |
<div class="hello"> | |
<h1>{{ msg }}</h1> | |
<div class="section"> | |
<el-input type="text" v-model="input" auto-complete="off" style="width:80%;"></el-input> | |
</div> | |
<div class="section"> | |
<el-button type="button" @click="send">SEND</el-button> | |
<el-button type="button" @click="disconnect">DISCONNECT</el-button> | |
</div> |
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
.ratio { | |
position: relative; | |
width: 100%; | |
overflow: hidden; | |
&:before { | |
content: ""; | |
display: block; | |
padding-top: 75%; /* 4:3 - 75%, 3:4 - 133.33%, 16:9 - 56.25% , 3:2 - 66.66%, 8:5 - 62.5% */ | |
} |
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
<template> | |
<a v-bind="$attrs" @click="handleLinkClick(to, $event)"> | |
<slot></slot> | |
</a> | |
</template> | |
<script> | |
/** | |
* current pathの時に無反応を防ぐため、 | |
* current pathの場合にはwindow.location.href = toでURL遷移させる | |
*/ |
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
<template> | |
<div> | |
<div v-if="$responsive.mobile">Mobile</div> | |
<div v-else-if="$responsive.tablet">Tablet</div> | |
<div v-else>Desktop</div> | |
</div> | |
</template> |
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
<template> | |
<transition enter-active-class="animated fadeIn"> | |
<router-view></router-view> | |
</transition> | |
</template> | |
<script> | |
import notifyError from 'path/utils/common/notifyError' | |
import { MessageBox } from 'element-ui' | |
import EventBus from 'path/event-bus' |
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
// japanese input | |
var vCompositionModelUpdate = function (el, binding, vnode) { | |
vnode.context[binding.expression] = el.value | |
} | |
Vue.directive('jp-model', { | |
bind: function (el, binding, vnode) { | |
el.value = binding.value | |
el.addEventListener('keyup', vCompositionModelUpdate.bind(this, el, binding, vnode)) |
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
class CustomFileStringIO < StringIO | |
def initialize(*args) | |
super(*args[1..-1]) | |
@file_name = args[0] | |
end | |
def original_filename | |
@file_name | |
end | |
end |
NewerOlder