Skip to content

Instantly share code, notes, and snippets.

View willxinc's full-sized avatar

Will willxinc

View GitHub Profile
#include <nanogui/nanogui.h>
#include <iostream>
using namespace nanogui;
using std::to_string;
using std::cout;
int main(int /* argc */, char ** /* argv */){
nanogui::init();
Screen *screen = new Screen(Vector2i(500, 500), "Issue Demo");
#include <stdlib.h>
#include <stdio.h>
char check_board(char board[3][3]){
for (int i = 0; i < 3; ++i){
if (board[i][0] == board[i][1] && board[i][1] == board[i][2]){
if (board[i][0] != '?'){
return board[i][0];
}
}
@willxinc
willxinc / MixedMinimumRules
Created March 10, 2015 03:32
Code Analysis on FNA (commit: ce44d10dfe178d410e43f4311b66f85a99f2556e) Using Microsoft Visual Studio Ultimate 2013
1>------ Rebuild All started: Project: FNA, Configuration: Debug x86 ------
1> FNA -> V:\FNA-master\bin\Debug\FNA.dll
1> Running Code Analysis...
1>v:\FNA-master\src\Graphics\GraphicsResource.cs(93): warning CA1821: Microsoft.Performance : 'GraphicsResource' implements a finalizer that only calls conditionally emitted methods or the base type finalizer. Remove the finalizer or ensure that it is only conditionally compiled into the assembly. If this violation occurs against a finalizer that is entirely wrapped in a conditionally-emitted block of code, suppress this message.
1>MSBUILD : warning CA1001: Microsoft.Design : Implement IDisposable on 'StorageDevice' because it creates members of the following IDisposable types: 'StorageContainer'. If 'StorageDevice' has previously shipped, adding new members that implement IDisposable to this type is considered a breaking change to existing consumers.
1> Code Analysis Complete -- 0 error(s), 2 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==