Skip to content

Instantly share code, notes, and snippets.

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

秋_ oxUnd

🔑
多写代码少说话
  • Harbin Institute of Technology
  • China
View GitHub Profile
function noop() {
}
class Dispatcher {
constructor() {
this.ctx = {
tasks: [],
done: noop,
context: {}
};
@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/")
## 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 / 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:

@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 / 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 / fix_phpunit
Created July 7, 2016 14:48
fixed PHPUnit 4.8.26 of Laravel
#!/usr/bin/env sh
cd `pwd`
p=' "PHPUnit_TextUI_Command" => '$(find . -name '*.php' | xargs grep 'class PHPUnit_TextUI_Command' | awk -F: '{print $1}' | sed 's/\.\/vendor/$vendorDir . "/')'",'
echo $p
fixed=`cat vendor/composer/autoload_classmap.php | grep 'PHPUnit_TextUI_Command'`
@oxUnd
oxUnd / rime_fly_convert.js
Last active April 17, 2016 10:35
小鹤双拼双形码表转换到 Rime(官网手心输入法挂表,需要转换为 UTF8)
/**
* @author xiangshouding<[email protected]>
*/
var fs = require('fs');
var util = require('util');
var assert = require('assert');
var argv = process.argv;
@oxUnd
oxUnd / .vimrc
Last active July 3, 2022 04:29
.vimrc
call plug#begin()
" Make sure you use single quotes
Plug 'junegunn/seoul256.vim'
Plug 'junegunn/vim-easy-align'
" Group dependencies, vim-snippets depends on ultisnips
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
@oxUnd
oxUnd / composer.json
Created October 15, 2015 09:42
learning Laravel . Tiny Framework
{
"name": "Tiny",
"require": {
"symfony/http-foundation": "2.7.*",
"symfony/http-kernel": "2.7.*",
"symfony/routing": "2.7.*"
}
}