Skip to content

Instantly share code, notes, and snippets.

View neo-sam's full-sized avatar
๐ŸŽฏ
Focusing

Neo Sam neo-sam

๐ŸŽฏ
Focusing
  • 11:12 (UTC +08:00)
View GitHub Profile
@wilon
wilon / vim-surroundไฝฟ็”จๆŒ‡ๅ—.MD
Last active March 11, 2025 04:30
vim-surroundไฝฟ็”จๆŒ‡ๅ—๏ผŒvim-surroundๅฆ‚ไฝ•ไฝฟ็”จ

ๆ™ฎ้€šๆจกๅผ

ๅ‘ฝไปค ่ฏดๆ˜Ž + ็คบไพ‹
ds ๅˆ ้™คๆ‹ฌๅท
ไพ‹ ds " "Hello world!" =>
Hello world!
cs ๆ›ฟๆขๆ‹ฌๅท
ไพ‹ cs "( "Hello world!" =>
(Hello world!)
cS ๆ›ฟๆขๆ‹ฌๅท๏ผŒๆ‹ฌๅทๅ†…ๆ–‡ๆœฌๅšๆ–ฐไธ€่กŒ
ไพ‹ cS "{ "Hello world!" => { ย ย ย ย Hello world! }

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. Clone your gist:
    # make sure to replace `<hash>` with your gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone [email protected]:<hash>.git     # or with ssh
@obonyojimmy
obonyojimmy / active-window.go
Created January 1, 2017 02:50
Go lang get current foreground window
package main
import (
"fmt"
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var (
@parmentf
parmentf / GitCommitEmoji.md
Last active May 23, 2025 04:03
Git Commit message Emoji

Inspired by dannyfritz/commit-message-emoji

See also gitmoji.

Commit type Emoji
Initial commit ๐ŸŽ‰ :tada:
Version tag ๐Ÿ”– :bookmark:
New feature โœจ :sparkles:
Bugfix ๐Ÿ› :bug:
@azam
azam / svg2ico.sh
Last active February 24, 2025 11:46
Convert SVG to ICO using ImageMagick, with transparent background and multi-size icons
convert -density 256x256 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon.ico
  • ๐ŸŽจ when improving the format/structure of the code
  • ๐Ÿš€ when improving performance
  • โœ๏ธ when writing docs
  • ๐Ÿ’ก new idea
  • ๐Ÿšง work in progress
  • โž• when adding feature
  • โž– when removing feature
  • ๐Ÿ”ˆ when adding logging
  • ๐Ÿ”‡ when reducing logging
  • ๐Ÿ› when fixing a bug
@dashed
dashed / github-pandoc.css
Created September 26, 2013 13:42
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@melomano
melomano / index.html
Created November 9, 2012 00:48
CSS: Toggle Checkbox(iPhone Style)
<div class="toggle">
<input type="checkbox" id="toggle1" />
<div class="toggle-handle"></div>
<label for="toggle1" onclick></label>
</div>