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 / sin(x)-x1.c
Last active September 26, 2022 15:20
Draw sin.x
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
typedef struct {
int x, y;
} P;
typedef struct {
int w, h;
@oxUnd
oxUnd / shader.h
Last active September 28, 2021 09:28
shader.h (base on glad)
/**
* @author fansekey
*/
#ifndef __GL_SHADER_H__
#define __GL_SHADER_H__
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstring>
@oxUnd
oxUnd / windows-terminal-color-schemes.json
Created April 5, 2020 04:12
windows terminal color schemes
// Add custom color schemes to this array
// http://ciembor.github.io/4bit/#
{
"schemes": [
{
"name": "Dracula",
"background": "#282A36",
"black": "#21222C",
"blue": "#BD93F9",
@oxUnd
oxUnd / gist:67a267273e2cd8e9b27f8ae34441b131
Created April 26, 2019 11:07
bcwc_pcie 遇到这个错误可以忽略
make -C /lib/modules/5.0.0-13-generic/build M=/home/<name>/dev/github/bcwc_pcie modules_install
make[1]: 进入目录“/usr/src/linux-headers-5.0.0-13-generic”
INSTALL /home/<name>/dev/github/bcwc_pcie/facetimehd.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 5.0.0-13-generic
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: 离开目录“/usr/src/linux-headers-5.0.0-13-generic”
@oxUnd
oxUnd / .spacemacs
Created April 17, 2019 09:14
my spacemacs settings
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@oxUnd
oxUnd / zh.tex
Last active April 6, 2019 14:52
XeLaTeX + fontspec
\documentclass[a4paper]{article}
% force auto wrap
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
\usepackage{fontspec}
\setmainfont{STKaiti}
\title{宋词序录}
@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',
@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 / 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 / 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;
}