Skip to content

Instantly share code, notes, and snippets.

View luiseok's full-sized avatar

luiseok luiseok

  • Seoul
View GitHub Profile
@luiseok
luiseok / blueprint.yaml
Last active January 7, 2024 17:28
Aqara H1 wall switch double rocker decoupled mode home assistant blueprint
blueprint:
name: Z2M - Aqara H1 Pro (with neutral, double rocker)(QBKG31LM)
description: Scene & device control using decoupled mode Aqara wall switch double rocker
domain: automation
input:
button_sensor:
name: Aqara switch
description: Aqara switch to use
selector:
entity:
@luiseok
luiseok / DDNotiWidget.js
Last active September 15, 2022 16:19
Scriptable-Dogdripnet-notification
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-gray; icon-glyph: bone;
/**
* @author 어그로학교수
* released at 2022.09.15
* use as your own risk
*/
@luiseok
luiseok / index.js
Created January 21, 2022 08:56
testing xss
alert(1);
@luiseok
luiseok / keybase.md
Created December 20, 2021 04:36
keybase.md

Keybase proof

I hereby claim:

  • I am luiseok on github.
  • I am luiseok (https://keybase.io/luiseok) on keybase.
  • I have a public key whose fingerprint is 5023 CAEE F5A7 8070 F791 6337 6437 33E4 4AF1 EBE2

To claim this, I am signing this object:

@luiseok
luiseok / gist:eb41757ba580f9412783352cb2003700
Created August 11, 2021 14:10
IntelliJ Vue Single File Component File Template
#set( $regex = "([a-z])([A-Z]+)")
#set( $replacement = "$1-$2")
#set( $COMPONENT_NAME_KEBAB = $COMPONENT_NAME.replaceAll($regex, $replacement).toLowerCase())
<template>
<div class="${COMPONENT_NAME_KEBAB}">
#[[$END$]]#
</div>
</template>
<script>
@luiseok
luiseok / docker-compose.yml
Created March 1, 2020 09:56
ST SmartApps Connectors for Raspberry pi
version: "3"
services:
connector:
image: fison67/mi-connector-arm:latest
restart: always
ports:
- "30000:30000"
volumes:
- ./docker/mi-connector:/config
@luiseok
luiseok / component.vue
Last active October 31, 2019 11:58
vue js use cdn
<template>
<div></div>
</template>
<script>
export default {
name: "Component",
data: () => ({
player: null, // 스크립트 로드 이후 객체를 저장 할 변수
script: null, // 스크립트에 대한 정보를 가지고 있을 변수
{ Error: [vuex] Expects string as the type, but found object.
at assert (/Users/****/Documents/Develops/****/****/node_modules/vuex/dist/vuex.common.js:99:27)
at unifyObjectStyle (/Users/****/Documents/Develops/****/****/node_modules/vuex/dist/vuex.common.js:767:5)
at Store.commit (/Users/****/Documents/Develops/****/****/node_modules/vuex/dist/vuex.common.js:376:13)
at boundCommit (/Users/****/Documents/Develops/****/****/node_modules/vuex/dist/vuex.common.js:337:19)
at Store.nuxtServerInit (store/index.js:38:0)
at process._tickCallback (internal/process/next_tick.js:68:7) statusCode: 500, name: 'NuxtServerError' }
@luiseok
luiseok / index.js
Last active July 7, 2018 12:44
blog posting
export const actions = {
async nuxtServerInit({commit}, {req}) {
let cookie = req.headers.cookie.split(';').find(c => c.trim().startsWith('token='));
if (cookie == "" ||
cookie == null ||
cookie == undefined ||
(cookie != null && typeof cookie == "object" && !Object.keys(cookie).length)) return
else {
//jwt 토큰이 있는 경우
@luiseok
luiseok / example.vue
Created July 3, 2018 14:13
Vue.js bind URI query to computed
<template>
<div>this is an exmaple of binding url query to vue.js computed property</div>
</template>
<script>
name: "example",
computed : {
page: {
get() {
//set default value here