Skip to content

Instantly share code, notes, and snippets.

@dreamkidd
dreamkidd / .ideavimrc
Created April 27, 2022 03:03
.ideavimrc
Plug 'preservim/nerdtree'
Plug 'tpope/vim-surround'
Plug 'easymotion/vim-easymotion'
Plug 'terryma/vim-multiple-cursors'
Plug 'michaeljsmith/vim-indent-object'
Plug 'tommcdo/vim-exchange'
set textobj-indent
" argtextobj config
@dreamkidd
dreamkidd / Obsidian_Folder_Icon
Created September 15, 2021 06:27
Obsidian_Folder_Icon
/* @settings
name: "Folder Icon"
id: foldericon
settings:
-
id: size
type: variable-number
format: px
default: 18
title: Icon Size
@dreamkidd
dreamkidd / electerm Nord Theme
Created July 23, 2021 09:17
electerm Nord Theme Nord 主题的配色
main=#2e3340
main-dark=#2e3340
main-light=#2e3340
text=#e5e9f0
text-light=#3b4251
text-dark=#e5e9f0
text-disabled=#424b5d
primary=#d8dee8
info=#81a1c1
success=#a3be8b
@dreamkidd
dreamkidd / example.puml
Created May 13, 2019 05:43 — forked from QuantumGhost/example.puml
A simple template for PlantUML to draw ER diagram. The basic idea comes from http://plantuml.sourceforge.net/qa/?qa=331/database-modeling
@startuml
' uncomment the line below if you're using computer with a retina display
' skinparam dpi 300
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >>
' we use bold for primary key
' green color for unique
' and underscore for not_null
!define primary_key(x) <b>x</b>
!define unique(x) <color:green>x</color>
!define not_null(x) <u>x</u>
@dreamkidd
dreamkidd / auto script
Created May 18, 2016 05:35
linux 自动部署脚本
#!/bin/sh
if [ "root" = `whoami` ]; then
echo "请勿使用 root 运行此脚本! 请切换成普通用户!"
exit 1
fi
source /etc/profile
@dreamkidd
dreamkidd / vue_directive_cutdowntime
Created March 22, 2016 10:55
vue 自定义指令 点击后60秒静止点击
Vue.directive('cutdowntime', {
currentTime: 60,
isValidated: false,
bind: function () {
var self = this;
//self.vm;
//console.log(self.vm.$sign_phone_validation.phone.valid);
self.el.addEventListener('click', function (e) {
//if (self.vm.$sign_phone_validation.phone.valid) {
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@dreamkidd
dreamkidd / JavaShellUtil.java
Created April 7, 2015 04:27
执行Shell命令
package com.baimes.utils;
import java.io.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by Ds_Kidd on 2015/4/7 0007.
*/
package com.baimes.utils;
import java.io.*;
/**
* Created by Ds_Kidd on 2015/4/3 0003.
* 将文件转换为byte数组,一般用于图片,视屏,及音频
*/
public class FileToByteArr {