Skip to content

Instantly share code, notes, and snippets.

View Nuos's full-sized avatar
🐢
精神现象

MatrixAlgerbra Nuos

🐢
精神现象
  • GameEngine
  • ShangHai.China.
View GitHub Profile
@Nuos
Nuos / gist:b5572deb1eac0fc43a12a5f403fafa47
Created April 28, 2018 16:20 — forked from RangelReale/gist:3e6392289d8ba1a52b6e70cdd7e10282
How to compile ffmpeg + x264 using Visual Studio 2015
##### How to compile ffmpeg + x264 using Visual Studio 2015 #####
##### Building this way will make the DLLs compatible with SEH, so there will be no need to use /SAFESEH:NO when compiling your code #####
##### SOURCES:
### https://pracucci.com/compile-ffmpeg-on-windows-with-visual-studio-compiler.html
### https://gist.github.com/sailfish009/8d6761474f87c074703e187a2bc90bbc
### http://roxlu.com/2016/057/compiling-x264-on-windows-with-msvc
* Download "MSYS2 x86_64" from "http://msys2.github.io" and install into "C:\workspace\windows\msys64"
@Nuos
Nuos / foo.h
Created February 8, 2018 03:12 — forked from gh-code/foo.h
C++ Rule of Five full example
/*!
* C++ Rule of Five full example
* Author: Gary Huang <gh.nctu+code [AT] gmail.com>
*/
#ifndef FOO_H
#define FOO_H
#include <iostream>
#include <string>
@Nuos
Nuos / delegate.md
Created August 2, 2016 01:14 — forked from esfand/delegate.md
C# Delegate, Event, and EventHandler
@Nuos
Nuos / cs_cheat_sheet.txt
Created July 31, 2016 04:14 — forked from alexkuhl/cs_cheat_sheet.txt
Computer Science "Cheat Sheet"
This "cheat sheet" is designed to be a super-high level view of common and/or important computer science concepts. Good for test reviews, preparing for job interviews, brushing up on the basics, becoming a better person, or light reading for putting your significant other to sleep. I will continue to update this so if you have any suggestions or corrections please send a pull request or contact me. Licensed under http://creativecommons.org/licenses/by-sa/3.0/.
Algorithms
+ Limiting behavior (all the second sections are as limit(n)->infinity)
* Big O - f is bounded by g :: f(n) <= g(n)*c (for some constant c) :: an upper bound, can be much higher than actual performance because this is not a tight bound, for example a log(n) algorithm technically is O(n!) but is obviously way better than something that actually gets n! performance
* Small or Little o - f dominated by g :: f(n) < g(n)*c; f(n)/g(n) = 0 :: g gets much larger
* Big Omega - f is bounded below by g :: |f(n)| >= g(n)*c :: a lower bound, bu
@Nuos
Nuos / libpng_test.c
Created July 16, 2016 10:06 — forked from niw/libpng_test.c
How to read and write PNG file using libpng. Covers trivial method calls like png_set_filler.
/*
* A simple libpng example program
* http://zarb.org/~gc/html/libpng.html
*
* Modified by Yoshimasa Niwa to make it much simpler
* and support all defined color_type.
*
* To build, use the next instruction on OS X.
* $ brew install libpng
* $ clang -lz -lpng15 libpng_test.c