Skip to content

Instantly share code, notes, and snippets.

View Yuhala's full-sized avatar
💭
I may be slow to respond.

Peterson Yuhala Yuhala

💭
I may be slow to respond.
  • IIUN-UniNE
  • Neuchatel, Switzerland
View GitHub Profile
@Yuhala
Yuhala / cpp-create-wav.cc
Created June 2, 2023 09:19 — forked from csukuangfj/cpp-create-wav.cc
create wav file using c++
// author: fangjun kuang <csukuangfj at gmail dot com>
// date: Apr. 22, 2019
// refer to http://www.topherlee.com/software/pcm-tut-wavformat.html
#include <fstream>
#include <iostream>
typedef struct WAV_HEADER {
/* RIFF Chunk Descriptor */
@Yuhala
Yuhala / gist:73f0821b7ad5e9346aa3cdba00730b52
Created June 28, 2022 08:27
Full error trace when creating Truffle language context with Intel SGX SDK.
Fatal error: Implicit exception thrown in code where such exceptions are fatal errors
Printing Instructions (ip=0x00007f9bc3bc5c60):
0x00007f9bc3bc5c40: 0x00 0x41 0xc7 0x87 0x04 0x01 0x00 0x00 0xfe 0xfe 0xfe 0x7e 0x48 0x8b 0x7c 0x24
0x00007f9bc3bc5c50: 0x20 0x48 0x8b 0x74 0x24 0x10 0x48 0x8b 0x54 0x24 0x18 0xe8 0x60 0xfd 0xff 0xff
0x00007f9bc3bc5c60: 0x90 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc
0x00007f9bc3bc5c70: 0x48 0x83 0xec 0x18 0x49 0x3b 0x67 0x18 0x0f 0x86 0xe1 0x00 0x00 0x00 0x49 0x3b
Top of stack (sp=0x00007f9c14754130):
0x00007f9c14754130: 0x0000000000000000 0x0000000000000000
@Yuhala
Yuhala / truffle-material.md
Created August 16, 2021 13:01 — forked from smarr/truffle-material.md
Truffle: Languages and Material
@Yuhala
Yuhala / sampleREADME.md
Created May 22, 2018 07:30 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

@Yuhala
Yuhala / add local code to git
Created August 24, 2017 14:25
Adding local project to a git repository
If you've got local source code you want to add to a new remote new git repository, the following instructions may be of help
1. Create the remote repository, and get the URL such as git://github.com/youruser/somename.git
2. If your local GIT repo is already set up, skips steps 2 and 3
3. Initialize your local project directory as a local git repo: git init
4. Add your files to the git tree using: git add .
5. To do an initial commit type: git commit -m 'initial commit comment'