Skip to content

Instantly share code, notes, and snippets.

View amorfati0310's full-sized avatar
:octocat:
make whatever you like

Chany (dali) amorfati0310

:octocat:
make whatever you like
View GitHub Profile
@DoonDoony
DoonDoony / prepare-commit-msg
Created October 11, 2019 06:04
prepare-commit-msg hook for jira id prefixed commit message
#!/usr/bin/env python
from __future__ import print_function
import re
import sys
GIT_HEAD_REF = '.git/HEAD'
ticket_number = re.compile(r'\b[A-Z]{2,}-[0-9]+')
branch_ticket_number = re.compile(r'\b[a-z]{2,}-[0-9]+')
@crongro
crongro / parse_after.js
Last active November 28, 2018 07:57
before_after
class Data {
constructor(type, value, child) {
this.type = type;
this.value = value;
this.child = child;
}
}
function scan(str) {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie-edge">
<title>Document</title>
<style>
main .gnb{
@DoonDoony
DoonDoony / .spaceship_config
Last active October 4, 2023 04:55
oh-my-zsh spaceship theme HOW TO
SPACESHIP_PROMPT_ORDER=(
battery
user
conda
aws
package
docker
node
ruby
elixir