Skip to content

Instantly share code, notes, and snippets.

@rlam3
rlam3 / error001.js
Last active Mar 25, 2021
Unknown custom element: XXX did you register the component correctly? For recursive components, make sure to provide the "name" option.
View error001.js
console.error
[Vue warn]: Unknown custom element: <fa> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <PictureGallery>
<Index>
<Root>
at warn (node_modules/vue/dist/vue.common.dev.js:630:15)
@rlam3
rlam3 / 📊 Weekly development breakdown
Last active May 7, 2021
📊 Weekly development breakdown
View 📊 Weekly development breakdown
JavaScript 1 hr 25 mins ████████████▌░░░░░░░░ 59.8%
JSON 38 mins █████▋░░░░░░░░░░░░░░░ 27.1%
Other 8 mins █▏░░░░░░░░░░░░░░░░░░░ 5.7%
Vue.js 5 mins ▊░░░░░░░░░░░░░░░░░░░░ 3.9%
CSS 4 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.3%
@rlam3
rlam3 / nuxt.config.js
Last active Dec 3, 2020
Update your @nuxtjs/eslint-module from v2 to v3. nuxt.config.js
View nuxt.config.js
// Before
export default {
build: {
extend(config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
@rlam3
rlam3 / random_notion.py
Created Jun 4, 2020 — forked from tangjeff0/random_notion.py
get random notion notes to resurface your old ideas!
View random_notion.py
'''
author:
@tangjeff0
https://www.notion.so/tangjeff0/Public-Home-0e2636bd409b454ea64079ad8213491f
inspired by: https://praxis.fortelabs.co/p-a-r-a-iii-building-an-idea-generator-400347ef3bb6/
with help from: https://medium.com/@jamiealexandre/introducing-notion-py-an-unofficial-python-api-wrapper-for-notion-so-603700f92369
credits:
@jamiealexandre
@rlam3
rlam3 / pull_deploy_kubernetes.sh
Last active Oct 1, 2019
pull_deploy_kubernetes
View pull_deploy_kubernetes.sh
$ kubectl get all # 1
╰─ kubectl get all
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 4d18h
$ kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10 # 2
╰─ kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10
deployment.apps/hello-minikube created
$ kubectl get all # 3
@rlam3
rlam3 / disable-cleanmymac.md
Created Aug 21, 2019
Mac disables "Setapp CleanMyMac-setapp.HealthMonitor" launchd services
View disable-cleanmymac.md

sudo vim /private/var/db/launchd.db/com.apple.launchd/overrides.plist

Add the following code,as entries like:

<key>com.macpaw.CleanMyMac-setapp.HealthMonitor</key>
<dict>
<key>Disabled</key>
<true/>
</dict>
@rlam3
rlam3 / RenderImage.vue
Last active Jul 27, 2019
Good vs Bad Way of Rendering image
View RenderImage.vue
<template>
<div>
<div>
<div v-for="(panel, index) in panelList" :key="index" class="panel">
<img class="" :src="panel.imagePath" /> /// Approach 1
<img class="" :src="require(panel.imagePath2)" /> /// Approach 2 WRONG!!! WEBPACK HATES YOU
<div class="">
<div class="">
{{ panel.title }}
</div>
@rlam3
rlam3 / blue_text.vue
Created Jul 25, 2019
vue with stylus
View blue_text.vue
<template>
<div>
<p class="blue_text">{{ msg }}</p>
</div>
</template>
<script>
export default {
@rlam3
rlam3 / .git_ignore
Created Jan 12, 2019
2019_01_12_ios_swift_newbie_gotcha_medium_001
View .git_ignore
*.ipa
*.app.dSYM.zip
@rlam3
rlam3 / Fastfile
Created Dec 5, 2018
increment build number
View Fastfile
default_platform(:ios)
platform :ios do
before_all do |lane|
increment_build_number
end
# Beta TestFlight Lane
lane :testflight do