Skip to content

Instantly share code, notes, and snippets.

View mopp's full-sized avatar
💜
Power is power

mopp mopp

💜
Power is power
View GitHub Profile
FUNCTION neobundle#autoload#function()
Called 3 times
Total time: 0.008816
Self time: 0.002334
count total (s) self (s)
3 0.000025 let function = expand('<amatch>')
3 0.000056 let function_prefix = get(split(function, '#'), 0, '') . '#'
3 0.003212 0.002182 let bundles = filter(neobundle#config#get_autoload_bundles(), "get(v:val.autoload, 'function_prefix', '').'#' ==# function_prefix || (has_key(v:val.autoload, 'functions') && index(neobundle#util#convert2list( v:val.autoload.functions), function) >= 0)")
"-----------------------------------------------------------------------------------"
" Mappings |
"-----------------------------------------------------------------------------------"
" コマンド | ノーマル | 挿入 | コマンドライン | ビジュアル | 選択 | 演算待ち |
" map / noremap | @ | - | - | @ | @ | @ |
" nmap / nnoremap | @ | - | - | - | - | - |
" vmap / vnoremap | - | - | - | @ | @ | - |
" omap / onoremap | - | - | - | - | - | @ |
" xmap / xnoremap | - | - | - | @ | - | - |
" smap / snoremap | - | - | - | - | @ | - |
" わかりやすくするために最低限だけ書いています.
" 皆さんの設定に真似して組み込んでください.
let g:lightline = {
\ 'active' : {
\ 'left' : [ [ 'mode', 'paste' ], [ 'filename', 'modified' ], [ 'readonly' ], [ 'buflist' ] ],
\ 'right' : [ [ 'fileencoding', 'fileformat', 'lineinfo', 'percent' ], [ 'filetype' ] ],
\ },
\ 'component_function' : {
\ 'buflist' : 'Mline_buflist',
\ },
#include <stdint.h>
#include <stdio.h>
#define BASE 16
#define MOD_16(x) (x & 0x0F)
void dump_memory_hex(uintptr_t const buf, size_t const size) {
uint8_t const *const b = (uint8_t const * const)buf;
uint8_t ascii[BASE + 1] = {[BASE] = '\0'};
int main(void) {
/* j is NOT ok */
int mop1;
int* map1;
/* comment. */
/* j is ok */
int mop2;
int *map2;
/* comment. */
GEM
remote: https://rubygems.org/
specs:
activemodel (4.1.1)
activesupport (= 4.1.1)
builder (~> 3.1)
activerecord (4.1.1)
activemodel (= 4.1.1)
activesupport (= 4.1.1)
arel (~> 5.0.0)
augroup check_listed
autocmd!
autocmd BufAdd * call s:check(expand("<abuf>"))
augroup END
function! s:check(bufnr)
echomsg 'Result of buflisted() = ' . string(buflisted(a:bufnr))
endfunction
@mopp
mopp / memset.c
Created September 27, 2014 16:30
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
double gettimeofday_sec() {
@mopp
mopp / test.c
Created November 7, 2014 16:06
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
char* global_strs = NULL;
void do_free(void) {
if (global_strs != NULL) {
free(global_strs);
@mopp
mopp / switch_context.c
Last active August 29, 2015 14:10
context switch core
void __fastcall change_context(Process* current, Process* next) {
(void)current;
run_proc= next;
}
void switch_context(Interrupt_frame* current_iframe) {
Process* current_p = running_proc();
Process* next_p = next_proc();
if (current_p == next_p) {