Skip to content

Instantly share code, notes, and snippets.

View chromedays's full-sized avatar
🏠
Working from home

chromedays chromedays

🏠
Working from home
View GitHub Profile
#include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}
@chromedays
chromedays / orthodoxc++.md
Created December 26, 2016 09:25 — forked from bkaradzic/orthodoxc++.md
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

#ifdef _WIN32
#include <windows.h>
#include <GL/gl.h>
#define GL_CALL APIENTRY
#else
#include "GL/gl.h"
#define GL_CALL
#endif//_WIN32
// This loader code is inspired by Bink GL extension loader
#define GLE(ret, name, ...) name##Func* gl##name;
GL_LIST
#undef GLE
b32 gl_load_extensions()
{
b32 result = false;
if (SDL_GL_LoadLibrary(nullptr) != 0)
{

질문 목록

  • 겨울 프로그램
    • 비용
      • 총 비용이 얼마나 예상되는가?
      • 혹시 절감 계획은 있는지?
    • 시기
      • 1월 2째주부터 6주동안
      • 가을학기 복학예정인 학생도 가능
  • 내용
#include <cstdio>
#include <vector>
#include <string>
#include <climits>
#include <tuple>
#include <cstring>
using namespace std;
struct Expression
#Requires -RunAsAdministrator
function wait_input_before_exit()
{
if ($Host.Name -eq "ConsoleHost")
{
Write-Host "Press any key to continue...."
$Host.UI.RawUI.FlushInputBuffer() # Make sure buffered input doesn't "press a key" and skip the ReadKey().
$Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyUp") > $null
}
@chromedays
chromedays / default.hlsli
Last active June 19, 2019 03:27
뭔가 directx (5시간 걸림)
struct VertexIn
{
float3 pos : POSITION;
float4 color : COLOR;
float3 normal : TEXCOORD;
};
struct VertexOut
{
float4 pos : SV_POSITION;
@chromedays
chromedays / build_forge.py
Last active May 27, 2020 16:27
Build TheForge framework
import urllib.request
from zipfile import ZipFile
import os
import subprocess
# Download archived TF repo
print('Downloading The Forge...')
url = 'https://github.com/ConfettiFX/The-Forge/archive/master.zip'
forge_zip_path = './forge.zip'
@chromedays
chromedays / premake5.lua
Created June 1, 2020 03:20
Premake file that generates a TF project
local workspace_name = "SampleWorkspace"
local project_name = "SampleProject"
workspace(workspace_name)
configurations {"DebugDx"}
project(project_name)
kind "WindowedApp"
language "C++"
targetdir "bin/%{cfg.architecture}/%{cfg.buildcfg}"