Skip to content

Instantly share code, notes, and snippets.

Set status

Wildan Zulfikar wzulfikar

Set status
View GitHub Profile
breadthe /
Created Sep 2, 2022
Stable Diffusion prompt script
echo -n "Enter a prompt: "
read prompt
echo -n "Steps (default 10): "
read steps
if [[ -z "$steps" ]]; then
izuolan / worker.js
Last active Sep 8, 2022
Custom domain for your pages. Demo: and Tutorial:
View worker.js
// Your domain name
const MY_DOMAIN = ''
// Website language
const LANG = 'en'
// Favicon url
const FAVICON_URL = ''
// Your config page link
nandorojo /
Last active Jul 6, 2022
Expo + Next.js Query Param state

Expo + Next.js Query Params State 🦦

A typical use-case on web for maintaining React State is your URL's query parameters. It lets users refresh pages & share links without losing their spot in your app.

URL-as-state is especially useful on Next.js, since next/router will re-render your page with shallow navigation.

This gist lets you leverage the power of URL-as-state, while providing a fallback to React state for usage in React Native apps.

It's essentially a replacement for useState.

wlib / LICENSE
Last active Jun 10, 2022
Run a shell script with bash, line-by-line, prompted on each command. Useful for running unknown scripts or debugging. Not a secure substitute for understanding a script beforehand.
MIT License
Copyright (c) 2021 Daniel Ethridge
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
dceddia / CGPath+svg.swift
Last active Jul 3, 2022
Convert a CGPath to an SVG element with this Swift extension to CGPath
View CGPath+svg.swift
// CGPath+svg.swift
// Create an SVG element from a CGPath.
// Created by Dave Ceddia.
// MIT Licensed
// Inspired by:

How to run examples:

  1. Run $ createdb nplusonedb to create DB
  2. Run specs $ rspec demo.rb
tadast / ruby.yml
Created Apr 26, 2020
Example github actions config for Rails with postgres using DATABASE_URL
View ruby.yml
name: Ruby
branches: [ master ]
branches: [ master ]
fernandoaleman /
Last active Apr 26, 2022
Install mysql2 on MacOS Catalina


Installing mysql2 gem errors on MacOS Catalina with MySQL 5.7.


Make sure openssl is installed on Mac via Homebrew.

brew install openssl
tobiaslins / worker.js
Last active Aug 9, 2022
Notion Custom Domain using Cloudflare Workers + Splitbee Analytics
View worker.js
const MY_DOMAIN = ""
const START_PAGE = ""
addEventListener('fetch', event => {
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS",
kentcdodds / package.json
Last active Jul 6, 2022
Validates that the versions of tools specified in `engines` in the package.json are installed on the machine.
View package.json
"name": "workshop-computer-validator",
"version": "1.0.0",
"description": "I use this to validate people's computers have the proper versions of node and npm installed for a workshop",
"bin": "./validate-system.js",
"dependencies": {
"semver": "7.1.3"