Skip to content

Instantly share code, notes, and snippets.

View shinokada's full-sized avatar

Shinichi Okada shinokada

View GitHub Profile
@shinokada
shinokada / 70s.json
Created November 26, 2023 05:57
Terminal radio favorite lists.
[
{
"changeuuid": "6cddacaf-f2c1-11e8-a471-52543be04c81",
"stationuuid": "6cddaca1-f2c1-11e8-a471-52543be04c81",
"name": "- 0 N - 70s on Radio ON 70s",
"url": "http://0n-70s.radionetz.de/0n-70s.mp3",
"url_resolved": "http://0n-70s.radionetz.de/0n-70s.mp3",
"homepage": "http://www.0nradio.com/",
"favicon": "http://www.0nradio.com/images/favicon/mstile-144x144.png",
"tags": "classic rock,rock,pop,disco,goldies,oldies,70er,1970s,70s",

POSIX commands Cheatsheat

  • admin - create and administer SCCS files (DEVELOPMENT)
  • alias - define or display aliases
  • ar - create and maintain library archives
  • asa - interpret carriage-control characters
  • at - execute commands at a later time
  • awk - pattern scanning and processing language
  • basename - return non-directory portion of a pathname
  • batch - schedule commands to be executed in a batch queue
@shinokada
shinokada / vim-note.txt
Last active February 28, 2024 14:10
vim notes
# vim
cw change word
dw delete word
d3w delete 3 words
dd delete line
dfa delete forward (including) a
dtu delete til u
d$ delete from the cursor to the end of the line
ctrl-u scrolling upwards
@shinokada
shinokada / AcademicCap.svelte
Created December 15, 2023 16:06
AcademicCap.svelte for Svelte 5
<script lang="ts">
interface CtxType {
size: string;
role?: string;
color?: string;
variation?: 'solid' | 'outline';
viewBox?: string;
}
interface Props {
size?: string;
<VirtualHost *:80>
ServerAdmin your.email@gmail.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com/public_html
<Directory /var/www/example.com/public_html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
@shinokada
shinokada / gist:9b84198703ed6cf6169486de6309b5a1
Created August 21, 2023 12:33
Ultimate Prompt Engineering Secret.txt
From https://twitter.com/cj_zZZz/status/1678795785650200578
1st Step:
Give it a role. "You are Spartacus, a pro copywriter,"
2nd Step:
Define its job "Your job is to write copy for online media brands"
Third step:
Give ChatGPT the control: "Now ask me all the questions that you need to know to write a perfect copy that'd align with my brand."
layout title breadcrumb_title component_title dir description thumnailSize
componentLayout
Svelte Rating - Flowbite
Svelte Rating
Rating
Components
Use the rating component to show reviews and testimonials from your users using stars and scores based on multiple styles and sizes
w-64
#!/usr/bin/env bash
########################
# Author: Shinichi Okada
# Date: 2021-04-06
###########################
# set defaults
version="v0.1.3"
script_name=$(basename "$0")
import type { SvelteComponent } from 'svelte';
export interface ActivityType {
title: HTMLElement | string;
date: Date | string;
src: string;
alt: string;
text?: HTMLElement | string;
}

How to add PlantUML to a markdown file

Code:

@startjson
{
   "fruit":"Apple",
 "size":"Large",