Skip to content

Instantly share code, notes, and snippets.

  • (HTML) input fields (<input type="text">)
  • (HTML) buttons (<button>)
  • (JS) variable (let)
  • (JS) if-else
  • (JS) read file content
  • (JS) concatenate strings
  • (JS) arrays
  • (JS) split text (parse csv text)
  • (JS) for-loop
@onejar99
onejar99 / Ann.csv
Last active October 16, 2021 01:48
mock data
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
a456
@onejar99
onejar99 / .p10k.zsh
Created June 26, 2021 14:52
My custom p10k config (~/.p10k.zsh)
# Generated by Powerlevel10k configuration wizard on 2021-06-26 at 20:58 CST.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 25238.
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,
# 24h time, angled separators, sharp heads, round tails, 2 lines, dotted, no frame,
# darkest-ornaments, sparse, many icons, concise, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#
#!/bin/bash
# $ curl -fsSL https://gist.githubusercontent.com/onejar99/6c9312934449f6e29fba81fa35ea60e1/raw/50ec398e14294b9dc420e7682efacba4e45f0395/test1.sh | bash
echo "Hello, this is test file 1"
@onejar99
onejar99 / copy-ref.js
Last active August 8, 2019 00:17
瀏覽器書籤小工具:右鍵解鎖 / 網頁標題網址快速複製
// format: `onejar99 (OneJar) · GitHub(https://github.com/onejar99)`
javascript:(function() {const copyToClipboard = str => {const el = document.createElement('textarea');el.value = str;el.setAttribute('readonly', '');el.style.position = 'absolute';el.style.left = '-9999px';document.body.appendChild(el);el.select();document.execCommand('copy');document.body.removeChild(el);};copyToClipboard(`${document.title}(${window.location.href})`);})();