Skip to content

Instantly share code, notes, and snippets.

View schabibi1's full-sized avatar
🏠
Working from home

Arisa Fukuzaki schabibi1

🏠
Working from home
View GitHub Profile
@schabibi1
schabibi1 / components.251047.json
Created February 6, 2024 17:46
Astro Storyblok i18n hands-on video source: JSON schema file
{
"components": [
{
"name": "all-articles",
"display_name": null,
"created_at": "2024-02-06T12:44:13.814Z",
"updated_at": "2024-02-06T12:44:21.438Z",
"id": 5293993,
"schema": {
"headline": {
@schabibi1
schabibi1 / fallthrough_objects_alternative.js
Created February 12, 2019 22:01
JavaScript: Is Fallthrough From Switch Statement A Troublemaker?
let description = {
"Yoda" : "Jedi",
"Anakin" : "Jedi",
"Obi-One" : "Jedi",
"Luke" : "Jedi",
"Ray" : "Jedi",
"Finn" : "Jedi",
"Kylo Ren" : "Jedi",
"Chewbacca" : "Wookiee",
"R2-D2" : "Astromech droid",
@schabibi1
schabibi1 / fallthrough_example_cons.html
Created February 12, 2019 20:21
JavaScript: Is Fallthrough From Switch Statement A Troublemaker?
<html>
<body>
<h1>Message changes depends on the day you got.</h1>
<button onclick="changeDay()">Click Me</button>
<h3 id="message"></h3>
<script>
function changeDay() {
@schabibi1
schabibi1 / fallthrough_example_pros.js
Created February 12, 2019 19:18
JavaScript: Is Fallthrough From Switch Statement A Troublemaker?
let name = 'Ray';
let description = '';
switch(name) {
case 'Yoda':
case 'Anakin':
case 'Luke':
case 'Obi-One':
case 'Ray':
case 'Finn':