Skip to content

Instantly share code, notes, and snippets.

View xcodebuild's full-sized avatar
💭
Busy

xcodebuild xcodebuild

💭
Busy
View GitHub Profile
@xcodebuild
xcodebuild / auto_commit_pull_push.sh
Created July 6, 2022 01:33
Auto commit & pull & push git repo to keep sync
while :
do
echo "auto commit"
git add .
git commit -m "auto commit" $1
git pull origin master
git push origin master
sleep 600
done
import sys
class ExceptionHook:
instance = None
def __call__(self, *args, **kwargs):
if self.instance is None:
from IPython.core import ultratb
self.instance = ultratb.FormattedTB(mode='Plain',
color_scheme='Linux', call_pdb=1)
@xcodebuild
xcodebuild / My Activity
Last active October 29, 2020 14:54
My Activity
🗣 Commented on #180 in alibaba/lightproxy
🗣 Commented on #215 in alibaba/lightproxy
🗣 Commented on #216 in alibaba/lightproxy
🗣 Commented on #212 in alibaba/lightproxy
🗣 Commented on #212 in alibaba/lightproxy
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align'
Plug 'preservim/nerdtree'
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
Plug 'ctrlpvim/ctrlp.vim'
Plug 'sickill/vim-monokai'
Plug 'fisadev/vim-ctrlp-cmdpalette'
Plug 'neoclide/jsonc.vim'
Plug 'Yggdroot/indentLine'
Plug 'Chiel92/vim-autoformat'
*.gslbsvc.net.cn;
*.chinacache.com.cn;
*.ccgslb.net;
*.gslbsvc.com.cn;
*.cdnsvc.cn;
*.ccgslb.cn;
*.cdn2cdn.net;
*.blueit.org.cn;
*.cc-1.com;
*.cdnsvc.net;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
!c::send ^c
!x::send ^x
!v::send ^v
!l::send ^l
!s::send ^s
@xcodebuild
xcodebuild / org-archive-subtree-hierarchical.el
Last active January 13, 2019 16:24
Keeping the context when archiving in Emacs org-mode
;; org-archive-subtree-hierarchical.el
;; modified from https://lists.gnu.org/archive/html/emacs-orgmode/2014-08/msg00109.html
;; In orgmode
;; * A
;; ** AA
;; *** AAA
;; ** AB
;; *** ABA
;; Archiving AA will remove the subtree from the original file and create
// Insall WenQuanYi Micro Hei
*
:not [class*="code"] > *
{
font-family: "FontAwesome", "octicons", "icon","Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "WenQuanYi Micro Hei" !important;
}
[class*="code"] > *
{
font-family: "WenQuanYi Micro Hei Mono" !important;
@xcodebuild
xcodebuild / apue.h
Created April 18, 2015 09:32
apue.h with implement from lib/error.c
/* Our own header, to be included before all standard system headers */
#ifndef _APUE_H
#define _APUE_H
#if defined(SOLARIS)
#define _XOPEN_SOURCE 500 /* Single UNIX Specification, Version 2 for Solaris 9 */
#define CMSG_LEN(x) _CMSG_DATA_ALIGN(sizeof(struct cmsghdr)+(x))
#elif !defined(BSD)
#define _XOPEN_SOURCE 600 /* Single UNIX Specification, Version 3 */
import view from './view';
import model from './model';
import proptypes from './proptypes';
import { merge } from './utils';
import { render } from 'react-dom';
const Comp = merge(view, model, proptypes);