Skip to content

Instantly share code, notes, and snippets.

View mzaini30's full-sized avatar
🤗
I love you, my wife....

Zen mzaini30

🤗
I love you, my wife....
View GitHub Profile
@mzaini30
mzaini30 / index.html
Created April 27, 2022 23:03
Latihan Mengolah REST API dengan Petite Vue
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
[v-cloak]{
display: none;
}
<b:if cond='data:view.isPost'>
<meta content='article' property='og:type'/>
</b:if>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<meta content='website' property='og:type'/>
</b:if>
<script>
import "./style.css"
</script>
import {Portal} from 'solid-js/web'
import {createSignal} from 'solid-js'
const [data, setData] = createSignal({tulisan: '<p>hello <strong>world</strong></p>'})
const Tulis = () => (
<div>
<div className="grid grid-cols-4">
<div className="">
<p>Hai</p>
@mzaini30
mzaini30 / bind-group.jsx
Last active June 30, 2021 04:40
Kumpulan Sintaks SolidJS
import { createRenderEffect, createSignal, For } from "solid-js";
function App() {
const [language, setLanguage] = createSignal([])
const languages = ['Inggris', 'Indo', 'Jepang', 'Spanyol']
function checkHandler(item, element) {
RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@mzaini30
mzaini30 / error.sh
Last active March 16, 2021 13:39
Cannot export to static
> Using @sveltejs/adapter-static
> adapter.adapt is not a function
TypeError: adapter.adapt is not a function
at adapt (file:///home/zen/Dokumen/website/coba-svelte-kit/node_modules/@sveltejs/kit/dist/chunks/index5.js:758:16)
at async file:///home/zen/Dokumen/website/coba-svelte-kit/node_modules/@sveltejs/kit/dist/cli.js:507:5
npm ERR! code 1
npm ERR! path /home/zen/Dokumen/website/coba-svelte-kit
npm ERR! command failed
npm ERR! command sh -c svelte-kit build
Error: No element indexed by 0
at ArraySet$2.ArraySet_at [as at] (/home/zen/Documents/projects/coba-svelte-kit/node_modules/.pnpm/vite@2.0.5/node_modules/vite/dist/node/chunks/dep-e0f09032.js:24278:9)
at BasicSourceMapConsumer.<anonymous> (/home/zen/Documents/projects/coba-svelte-kit/node_modules/.pnpm/vite@2.0.5/node_modules/vite/dist/node/chunks/dep-e0f09032.js:25193:67)
at Array.map (<anonymous>)
at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (/home/zen/Documents/projects/coba-svelte-kit/node_modules/.pnpm/vite@2.0.5/node_modules/vite/dist/node/chunks/dep-e0f09032.js:25192:14)
at merge (/home/zen/Documents/projects/coba-svelte-kit/node_modules/.pnpm/vite@2.0.5/node_modules/vite/dist/node/chunks/dep-e0f09032.js:26656:18)
at ssrTransform (/home/zen/Documents/projects/coba-svelte-kit/node_modules/.pnpm/vite@2.0.5/node_modules/vite/dist/node/chunks/dep-e0f09032.js:61382:15)
at transformRequest (/home/zen/Documents/projects/coba-svelte-kit/node_modules/.pnpm
@mzaini30
mzaini30 / Welcome file.md
Last active February 21, 2021 06:54
Welcome file

Welcome to StackEdit!

Hi! I’m your first Markdown file in StackEdit. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the file explorer on the left corner of the navigation bar.

Files

StackEdit stores your files in your browser, which means all your files are automatically saved locally and are accessible offline!

Create files and folders

The file explorer is accessible using the button in left corner of the navigation bar. You can create a new file by clicking the New file button in the file explorer. You can also create folders by clicking the New folder button.

Switch to another file

All your files and folders are presented as a tree in the file e