Skip to content

Instantly share code, notes, and snippets.

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

Katsuhiko Kawai / 河合勝彦 katzkawai

🏠
Working from home
View GitHub Profile
Understand the Task: Grasp the main objective, goals, requirements, constraints, and expected output.
- Minimal Changes: If an existing prompt is provided, improve it only if it's simple. For complex prompts, enhance clarity and add missing elements without altering the original structure.
- Reasoning Before Conclusions: Encourage reasoning steps before any conclusions are reached. ATTENTION! If the user provides examples where the reasoning happens afterward, REVERSE the order! NEVER START EXAMPLES WITH CONCLUSIONS!
- Reasoning Order: Call out reasoning portions of the prompt and conclusion parts (specific fields by name). For each, determine the ORDER in which this is done, and whether it needs to be reversed.
- Conclusion, classifications, or results should ALWAYS appear last.
- Examples: Include high-quality examples if helpful, using placeholders [in brackets] for complex elements.
- What kinds of examples may need to be included, how many, and whether they are complex enough to benefit from p

Sample Gist

This is a sample gist.

サブタイトル

サブタイトルがどうなるか。

サブタイトル

@katzkawai
katzkawai / sample.txt
Created April 23, 2023 00:23
サンプル
これはサンプルです。
@katzkawai
katzkawai / README.org
Created March 4, 2023 11:58 — forked from Gavinok/README.org
Learning Emacs Lisp (Functions, Lists, and Homoiconicity

POSTED Emacs Lisp Everything You NEED To Know

baseURL = 'https://user_account.github.io/nikki2022/'
languageCode = 'ja-JP'
title = 'わたしのサイト'
theme = "ananke"
canonifyurls = true
publishDir = "docs"
SectionPagesMenu = "main"
resourceDir = "../resources"
Paginate = 9 # this is set low for demonstrating with dummy content. Set to a higher number
googleAnalytics = ""
@katzkawai
katzkawai / add-unfiltered_html-capability-to-admins-or-editors.php
Created September 6, 2020 00:14 — forked from kellenmace/add-unfiltered_html-capability-to-admins-or-editors.php
Add unfiltered_html Capability to Admins or Editors in WordPress Multisite
<?php
/**
* Enable unfiltered_html capability for Editors.
*
* @param array $caps The user's capabilities.
* @param string $cap Capability name.
* @param int $user_id The user ID.
* @return array $caps The user's capabilities, with 'unfiltered_html' potentially added.
*/
@katzkawai
katzkawai / Visualise_Graph_Demo.ipynb
Created March 1, 2020 07:57 — forked from Vini2/Visualise_Graph_Demo.ipynb
Visualising Graph Data with python-igraph
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@katzkawai
katzkawai / useHexo.md
Created December 13, 2017 03:26 — forked from btfak/useHexo.md
How to use Hexo and deploy to GitHub Pages
@katzkawai
katzkawai / countyfips_leaflet.R
Created June 17, 2016 23:43 — forked from keberwein/countyfips_leaflet.R
A leaflet map for R built on a shape file of US counties
# NOTE: This builds on data prep from here: https://gist.github.com/keberwein/a61651d1de90476d5fb28dc08bbbc617
# and shape file prep from here: https://gist.github.com/keberwein/815cca98e7d99fc360ab27faa651e5cc
library(dplyr)
library(leaflet)
library(scales)
library(RColorBrewer)
#Format popup data for leaflet map.
popup_dat <- paste0("<strong>County: </strong>",
county_dat$county_name,
@katzkawai
katzkawai / countyfips_map.R
Created June 17, 2016 23:42 — forked from keberwein/countyfips_map.R
An example of matching FIPS codes to shape files to map data in R.
library(sp)
library(ggplot2)
library(rgeos)
library(rgdal)
library(maptools)
### Begin data prep
# Grab air/water quality data from the EPA
url = "https://data.cdc.gov/api/views/cjae-szjv/rows.csv?accessType=DOWNLOAD"
dat <- read.csv(url, stringsAsFactors = FALSE)
# Colnames tolower