This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inspired by zsh theme robbyrussell, bira, bureau and node | |
# oh-my-zsh Theme Amber | |
### NVM | |
ZSH_THEME_NVM_PROMPT_PREFIX="%{$fg_bold[green]%}⬢%{$reset_color%} " | |
ZSH_THEME_NVM_PROMPT_SUFFIX="" | |
### Git [±master ▾●] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TRASH_DIR="$HOME/.Trash" | |
TRASH_HISTORY="$HOME/.trash_history" | |
if [ ! -d "$TRASH_DIR" ]; then | |
mkdir -p $TRASH_DIR | |
fi | |
stash() { | |
for path in "$@"; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:alpine as builder | |
LABEL maintainer="Mitscherlich <mitscherlich36@gmail.com>" \ | |
provider="hteen <i@hteen.cn>" | |
COPY . /tmp | |
# install ngrok dependencies | |
RUN apk add --no-cache git make openssl | |
# clone ngrok source code and build binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta chaset="utf-8" /> | |
<!-- bootstrap --> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<div class="container pt-4"> | |
<div class="card"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.js 14 hrs 25 mins ████████████░░░░░░░░ 45.4% | |
JavaScript 9 hrs 32 mins █████████░░░░░░░░░░░ 30.0% | |
TypeScript 3 hrs 13 mins █████░░░░░░░░░░░░░░░ 10.1% | |
JSON 3 hrs 4 mins ████▓░░░░░░░░░░░░░░░ 9.7% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type EventHandlerFn = (...args: any[]) => void; | |
export interface EventHandler { | |
listener?: EventHandlerFn; | |
} | |
export interface EventListener { | |
[key: string]: EventHandlerFn[] | EventHandler[]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue, { VNode } from 'vue' | |
import isNumber from 'lodash/isNumber' | |
import PropTypes from 'vue-types' | |
const EVENT_VISIBILITY_CHANGE = 'visibilitychange' | |
const PropTypeNatural = PropTypes.custom((val: number) => isNumber(val) && val >= 0) | |
export const TimerProps = { | |
interval: PropTypeNatural.def(1000), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import isNumber from 'lodash/isNumber'; | |
import PropTypes from 'vue-types'; | |
const MILLISECONDS_SECOND = 1000; | |
const MILLISECONDS_MINUTE = 60 * MILLISECONDS_SECOND; | |
const MILLISECONDS_HOUR = 60 * MILLISECONDS_MINUTE; | |
const MILLISECONDS_DAY = 24 * MILLISECONDS_HOUR; | |
const EVENT_VISIBILITY_CHANGE = 'visibilitychange'; | |
const PropTypeNatural = PropTypes.custom(val => isNumber(val) && val >= 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* bem helper | |
* b() // 'button' | |
* b('text') // 'button__text' | |
* b({ disabled }) // 'button button--disabled' | |
* b('text', { disabled }) // 'button__text button__text--disabled' | |
* b(['disabled', 'primary']) // 'button button--disabled button--primary' | |
*/ | |
export type Mod = string | { [key: string]: any } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <time.h> | |
#include <windows.h> | |
#include <stdlib.h> | |
#include <conio.h> | |
#pragma warning(disable : 4996) // 关闭警告 | |
#define U 1 | |
#define D 2 |
OlderNewer