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
# Modify from https://github.com/ashr123/XV6-MacOS-Makefile: | |
# | |
# - Temporarily remove -Werror to stop propogate `infinite recursion detected` | |
# error since we're not allowed to modify other programs' code. | |
# | |
# Also see: https://github.com/mit-pdos/xv6-riscv/issues/125 | |
# Compile XV6 (i386) Version on MacOS (Intel) | |
# | |
# 1. Install [homebrew](https://brew.sh/). |
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 <Windows.h> | |
#include <iostream> | |
#include <io.h> | |
#define EXENAME "MapleStory.exe" | |
#define EXEARGS " GameLaunching" | |
#define DLLNAME "AuthHook.dll" | |
#ifdef UNICODE | |
# undef UNICODE |
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/bash | |
rev="12" | |
_log(){ | |
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log | |
} | |
_log_para(){ | |
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log |
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
" ======================================= | |
" plugin section begins | |
" ======================================= | |
" <vundle> ------------------------ | |
" https://github.com/gmarik/Vundle.vim | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() |
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
set noautofocus | |
set smoothscroll | |
set autoupdategist | |
let scrollstop = 100 | |
let completionengines = ['google', 'baidu'] | |
let searchengine baidu = 'https://www.baidu.com/s?wd=%s' | |
let blacklists = [] | |
let barposition = 'top' |
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
-- TerminalVim.app | |
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm | |
-- To use this script: | |
-- 1. Open Automator and create a new Application | |
-- 2. Add the "Run Applescript" action | |
-- 3. Paste this script into the Run Applescript section | |
-- 4. Save the application as TerminalVim.app in your Applications folder | |
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default |
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
/** | |
* | |
* @param str 待匹配字符串 | |
* @param pattern 模式串 | |
*/ | |
const isMatch = (str, pattern) => { | |
let strArr = str.split('') | |
let patArr = pattern.split('') | |
strArr.pointer = 0 |
NewerOlder