Skip to content

Instantly share code, notes, and snippets.

View oxUnd's full-sized avatar
🔑
多写代码少说话

秋_ oxUnd

🔑
多写代码少说话
  • Harbin Institute of Technology
  • China
View GitHub Profile
@oxUnd
oxUnd / um
Created August 17, 2016 09:36
#!/usr/bin/env sh
Pid=$1
if [ "$Pid" = "" ]; then
echo 'please input pid'
exit 1
fi
echo 'test'
@oxUnd
oxUnd / db_test.py
Created September 27, 2016 05:19 — forked from imankulov/db_test.py
Performance test for MySQL UPDATE
# -*- coding: utf-8 -*-
"""
Performance test for different types of update
Results sample
-----------------------------------------------
In [1]: import db_test
@oxUnd
oxUnd / API.md
Created December 12, 2016 08:51 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

## FOR UBUNTU
Dependencies install
1. apt-get install nginx-extras
2. apt-get install lua-zlib
lua file decompress request body
--------------------------------
see https://gist.github.com/iammehrabalam/30f5402bbcdad139c9eafd3a6f47ce6c
@oxUnd
oxUnd / init.el
Last active November 24, 2018 22:51
my .emacs
;; .emacs
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
;; 开启 melpa
(require 'package)
(setq package-archives '(("gnu" . "http://mirrors.163.com/elpa/gnu/")
function noop() {
}
class Dispatcher {
constructor() {
this.ctx = {
tasks: [],
done: noop,
context: {}
};
@oxUnd
oxUnd / app.js
Last active August 13, 2017 14:42
LLK
/**
* @author xiangshouding
*/
class Box {
constructor(x, y, icon) {
this.x = x;
this.y = y;
this.icon = icon;
}
@oxUnd
oxUnd / EmacsKeyBinding.dict
Created September 2, 2017 14:33 — forked from jwreagor/EmacsKeyBinding.dict
Global Emacs Key Bindings for OS X
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
* BEWARE:
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
@oxUnd
oxUnd / unistd.h
Last active February 21, 2020 06:19
unistd.h
#ifndef _UNISTD_H
#define _UNISTD_H 1
/* This is intended as a drop-in replacement for unistd.h on Windows.
* Please add functionality as neeeded.
* https://stackoverflow.com/a/826027/1202830
*/
#include <stdlib.h>
#include <io.h>
@oxUnd
oxUnd / init.vim
Created March 26, 2019 01:06
veonim config
if exists('veonim')
" built-in plugin manager
Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-surround'
" extensions for web dev
let g:vscode_extensions = [
\'vscode.typescript-language-features',
\'vscode.css-language-features',