Skip to content

Instantly share code, notes, and snippets.

View ASxa86's full-sized avatar

Aaron Shelley ASxa86

  • Hellebore Consulting Group, LLC
View GitHub Profile
@ASxa86
ASxa86 / CMakeLists.txt
Created December 22, 2017 05:25
fortran value test
project(fortran_value_test)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
add_executable(${PROJECT_NAME} main.cpp)
@ASxa86
ASxa86 / CMakeLists.txt
Created December 22, 2017 05:23
fortran value library
project (fortran_value)
enable_language (Fortran)
set (CMAKE_Fortran_FLAGS_RELEASE "-f77rtl -O3")
set (CMAKE_Fortran_FLAGS_DEBUG "-f77rtl")
add_compile_options(/MP)
add_compile_options(/extend_source:132)
add_compile_options($<$<CONFIG:Debug>:/libs:static>)
#include "ParticleSystem.h"
#include <chrono>
ParticleSystem::ParticleSystem() :
m_maxParticles(50),
m_gForce(0,-0.0098f,0),
m_northTriangleNormal(0,0,0),
m_southTriangleNormal(0,0,0),
m_eastTriangleNormal(0,0,0),
class Deck
{
val deck : Seq[Card]
for(t <- Type.values)
{
for(s <- Suit.values)
{
deck ++ new Card(t, s)
}
import java.util.*;
public class Deck
{
private ArrayList<Card> deck = new ArrayList<Card>();
public Deck()
{
for(Card.Suit s : Card.Suit.values())
{
@ASxa86
ASxa86 / Mass.cpp
Last active August 29, 2015 13:57
Mass Spring Bezier Patch for cloth simulation
#include "Mass.h"
#include <glut.h>
Mass::Mass() :
m_color(1, 0, 0),
m_position(0, 0, 0),
m_size(1),
m_weight(0.5),
m_bb(m_position, m_size)
@ASxa86
ASxa86 / asg2.cpp
Last active August 29, 2015 13:56
CEG4510 asg2
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <glut.h>
#include <chrono>
#include <thread>
#include <ply/ply.h>