This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using System.Numerics; | |
namespace NetCoreConsolePlayground | |
{ | |
class Entity | |
{ | |
public Vector3 Postion; | |
public Quaternion Rotation; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import './App.css'; | |
const baseURL = 'http://www.sfu.ca/bin/wcm/course-outlines'; | |
interface MyProps {} | |
interface Data { | |
text: string; | |
value: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Typewriter Monkeys Feedback</title> | |
</head> | |
<body> | |
<h1>Feedback plx</h1> | |
<form action="forms.php" method="POST"> | |
<label for="ID">Student ID:</label> | |
<input type="text" autofocus required name="ID" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/core.hpp> | |
#include <opencv2/highgui.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <opencv2/opencv.hpp> | |
#include <array> | |
#include <string_view> | |
#include <utility> | |
using namespace std::string_view_literals; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <iostream> | |
#include <memory> | |
#include <algorithm> | |
#include <type_traits> | |
using namespace std; | |
class EventHandler | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <type_traits> | |
using namespace Platform; | |
void doTheThing(const wchar_t* string) | |
{ | |
printf("%ws\n", string); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
using namespace Platform; | |
void doTheThing(const wchar_t* string) | |
{ | |
printf("%ws\n", string); | |
} | |
template <typename T> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CXX=emcc | |
all: test.html | |
test.html: | |
$(CXX) -std=c++1z -stdlib=libc++ -O3 *.cpp -o $@ --preload-file test.simp --preload-file teapot.obj -s ALLOW_MEMORY_GROWTH=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL/SDL.h> | |
#include <emscripten.h> | |
#include "SDLDrawable.hpp" | |
#include "client.h" | |
int main() | |
{ | |
SDLDrawable drawable(750, 750); | |
Client client(&drawable, "test.simp"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SDLDrawable.hpp" | |
SDLDrawable::SDLDrawable(int w, int h) : width(w), height(h) | |
{ | |
SDL_Init(SDL_INIT_VIDEO); | |
screen = SDL_SetVideoMode(width, height, 32, SDL_SWSURFACE); | |
if (SDL_MUSTLOCK(screen)) | |
SDL_LockSurface(screen); | |
} |
NewerOlder