Skip to content

Instantly share code, notes, and snippets.

View jmlyn's full-sized avatar

James Lyn jmlyn

  • San Francisco, CA
View GitHub Profile
// Main.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <crtdbg.h>
#include "DynamicArray.h"
#include "Queue.h"
#include "SinglyLinkedList.h"
#include "BinarySearchTree.h"
#include "StdlibAlgorithmDemo.h"
// Example program
#include <iostream>
#include <string>
#include <vector>
#include <functional>
class Event {
public:
void Subscribe(std::function<void(void)> fn) {
mSubscribers.emplace_back(fn);
#include <iostream>
#include <utility>
#include <thread>
#include <string>
#include <mutex>
using namespace std;
std::mutex mut;
#include <boost/type_index.hpp>
#include <iostream>
#include <utility>
using namespace std;
using boost::typeindex::type_id_with_cvr;
class Widget {
public:
Widget() = default;
#include <boost/type_index.hpp>
#include <iostream>
#include <utility>
using namespace std;
using boost::typeindex::type_id_with_cvr;
// Param always rvalue
void Process(int&& foo) {
cout << type_id_with_cvr<decltype(foo)>().pretty_name() << endl;
// Main.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <memory>
#include <crtdbg.h>
#include "DynamicArray.hpp"
// Typically using a smart pointer with a c-style array is not the best idea. If you can use std::vector or std::array in normal production

Main Features:

  • Main Menu
  • Battle
  • Battle UI
  • Battle Techniques
  • Pause Menu
  • Warrior Character Art
  • Mage Character Art
  • Player Animations
  • Skeleton Art
Jamess-MacBook-Pro:roslyn jlinden$ dotnet build CrossPlatform.sln
Microsoft (R) Build Engine version 15.4.8.50001 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
CodeAnalysis -> /Users/jlinden/git/roslyn/Binaries/Debug/Dlls/CodeAnalysis/Microsoft.CodeAnalysis.dll
CompilerTestResources -> /Users/jlinden/git/roslyn/Binaries/Debug/Dlls/CompilerTestResources/Roslyn.Compilers.Test.Resources.dll
BasicCodeAnalysis -> /Users/jlinden/git/roslyn/Binaries/Debug/Dlls/BasicCodeAnalysis/Microsoft.CodeAnalysis.VisualBasic.dll
Workspaces -> /Users/jlinden/git/roslyn/Binaries/Debug/Dlls/Workspaces/Microsoft.CodeAnalysis.Workspaces.dll
CSharpCodeAnalysis -> /Users/jlinden/git/roslyn/Binaries/Debug/Dlls/CSharpCodeAnalysis/Microsoft.CodeAnalysis.CSharp.dll
CompilersBoundTreeGenerator -> /Users/jlinden/git/roslyn/Binaries/Debug/Exes/CompilersBoundTreeGenerator/BoundTreeGenerator.dll
@jmlyn
jmlyn / cs_prop_gen.rb
Created October 22, 2016 05:37
C# property generator in ruby
vars = {
"DoesNotBlockInput" => "bool",
"Invisible" => "bool",
"OntopDoober" => "bool",
"OntopOfBuilding" => "bool",
"CenterOfCollider" => "bool",
"ShowDimmer" => "bool",
"DoesNotSendClickMessage" => "bool",
"HideOnClickMiss" => "bool",
"DoesNotHideOnClick" => "bool",
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Returns the result of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111