Skip to content

Instantly share code, notes, and snippets.

@hereiscasio
hereiscasio / .gitignore
Last active December 21, 2021 13:47 — forked from lanesgists/.gitignore
general .gitignore boilerplate
#.gitignore
# Numerous always-ignore extension
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.vi
@hereiscasio
hereiscasio / team-level-panel.vue
Created June 26, 2020 15:13
糟糕的 Template 寫法
<template lang="pug">
el-dialog(
v-if="teamDetailsIsNotEmpty"
:visible="visible"
:before-close="cleanUpAndClosePanel"
@close="closePanel"
width="560px"
)
template(slot="title" v-if="dataExistedInPrevMonth")
.toolbar
@hereiscasio
hereiscasio / youtubemusic.svg
Created September 25, 2019 06:16
Youtube Music Logo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hereiscasio
hereiscasio / gist:7fcdaa3a56d3a35afdef58455600cf7a
Created March 7, 2019 03:40
Vue: use `computed` without `data`
computed: {
shouldStorePwd: {
get: function() {
return (
localStorage.getItem('shouldStorePwd') ?
localStorage.getItem('shouldStorePwd') :
true
);
},
set: function(yesOrNo) {
@hereiscasio
hereiscasio / MessageInput.vue
Created January 9, 2019 15:28
Vuetify / Text Field : clear the input by using `ref` only
<template>
<v-footer class="pa-3" absolute>
<v-text-field
ref="textField"
@keyup.enter='sendText'
prepend-inner-icon="place"
placeholder="Type something here . . ."
solo hide-details clearable class="mb-3"
/>
</v-footer>
// __ __ __
// |__) | | |\ | /\ |__) |__)
// | \ \__/ | \| /~~\ | |
$(function() {
var app = NTD_ProgramHomePageApp.Run();
var respondWith = new app.Classes.Responder();
var switchCarouselDetector = new app.Classes.ClickDetector();