Skip to content

Instantly share code, notes, and snippets.

194
1 0 -0.16
2 0 -0.16
6 0 -0.16
7 0 -0.16
8 0 -0.16
0 0 1
0 1 -0.16
2 1 -0.16
3 1 -0.16
#include "eigen/Eigen/Dense"
#include "eigen/Eigen/SparseLU"
#include "eigen/Eigen/IterativeLinearSolvers"
#include <iostream>
#include <fstream>
using namespace Eigen;
int main() {
@linuxaged
linuxaged / BonViewer.txt
Created December 16, 2020 08:07
symbols in BonViewer lib
BonViewer(API.o):
0000000000000b94 T _BonApi_draw
0000000000000b00 T _BonApi_init
0000000000000b6c T _BonApi_loadBonV
0000000000000d2c T _BonApi_mouseMoveEvent
0000000000000c1c T _BonApi_mousePressEvent
0000000000000cc8 T _BonApi_mouseReleaseEvent
0000000000000dbc T _BonApi_mouseScrollEvent
0000000000000e74 T _BonApi_viewBack
@linuxaged
linuxaged / error-homebrew-install-magnum-plugins
Created November 24, 2020 17:21
fail to install magnum-plugins with homebrew
2020-11-25 01:10:46 +0800
cmake
--build
.
Scanning dependencies of target DdsImporter
Scanning dependencies of target MagnumOpenDdlObjects
Scanning dependencies of target AssimpImporter
Scanning dependencies of target DrWavAudioImporter
@linuxaged
linuxaged / magnum-plugins-build-error.log
Created November 20, 2020 16:11
fail to install magnum-plugins
2020-11-20 23:16:56 +0800
cmake
--build
.
Scanning dependencies of target DdsImporter
Scanning dependencies of target MagnumOpenDdlObjects
Scanning dependencies of target AssimpImporter
Scanning dependencies of target DrWavAudioImporter
This file has been truncated, but you can view the full file.
/* Compiled resource file. DO NOT EDIT! */
#include "Corrade/Corrade.h"
#include "Corrade/Utility/Macros.h"
#include "Corrade/Utility/Resource.h"
namespace {
const unsigned int resourcePositions[] = {
0x0000001b,0x000006de,
@linuxaged
linuxaged / zstddeclib.c
Created July 26, 2020 01:25
Single-file Zstandard decompressor.
/**
* \file zstddeclib.c
* Single-file Zstandard decompressor.
*
* Generate using:
* \code
* combine.sh -r ../../lib -r ../../lib/common -r ../../lib/decompress -o zstddeclib.c zstddeclib-in.c
* \endcode
*/
/*
@linuxaged
linuxaged / HMAC.cpp
Created May 12, 2020 12:16
签名算法,错误版本
void HMAC(const char* key, const char* message) {
//--------------------------------------------------------------------
// Declare variables.
//
// hProv: Handle to a cryptographic service provider (CSP).
// This example retrieves the default provider for
// the PROV_RSA_FULL provider type.
// hHash: Handle to the hash object needed to create a hash.
// hKey: Handle to a symmetric key. This example creates a
// key for the RC4 algorithm.
* 安装 [python](https://www.python.org/downloads/)
* 下载安装 [emsdk](https://emscripten.org/docs/getting_started/downloads.html#sdk-download-and-install), 如果下载太慢的话,考虑修改 emsdk.py 中的 `download_even_if_exists` 变量,使用浏览器下载文件然后拷贝到 zips 目录下
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
emsdk install latest
* 设置 emsdk 环境
emsdk activate latest
@linuxaged
linuxaged / git_bible.md
Created April 2, 2019 04:21 — forked from dmglab/git_bible.md
how to git

Note: this is a summary of different git workflows putting together to a small git bible. references are in between the text


How to Branch

try to keep your hacking out of the master and create feature branches. the [feature-branch workflow][4] is a good median between noobs (i have no idea how to branch) and git veterans (let's do some rocket sience with git branches!). everybody get the idea!

Basic usage examples