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 / 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 / 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 / windows-terminal-color-schemes.json
Created April 5, 2020 04:12
windows terminal color schemes
// Add custom color schemes to this array
"schemes": [
"name": "Dracula",
"background": "#282A36",
"black": "#21222C",
"blue": "#BD93F9",
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 '' file. Skipping depmod.
make[1]: 离开目录“/usr/src/linux-headers-5.0.0-13-generic”
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
;; Base distribution to use. This is a layer contained in the directory
oxUnd / zh.tex
Last active April 6, 2019 14:52
XeLaTeX + fontspec
% force auto wrap
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
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 = [
oxUnd / unistd.h
Last active February 21, 2020 06:19
#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.
#include <stdlib.h>
#include <io.h>
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.
* 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 / app.js
Last active August 13, 2017 14:42
* @author xiangshouding
class Box {
constructor(x, y, icon) {
this.x = x;
this.y = y;
this.icon = icon;