Skip to content

Instantly share code, notes, and snippets.

#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
void error(const char *str) {
@jakejscott
jakejscott / gpu_arch_resources
Created March 6, 2017 07:56 — forked from jhaberstro/gpu_arch_resources
GPU Architecture Learning Resources
http://courses.cms.caltech.edu/cs179/
http://www.amd.com/Documents/GCN_Architecture_whitepaper.pdf
https://community.arm.com/graphics/b/blog
http://cdn.imgtec.com/sdk-documentation/PowerVR+Hardware.Architecture+Overview+for+Developers.pdf
http://cdn.imgtec.com/sdk-documentation/PowerVR+Series5.Architecture+Guide+for+Developers.pdf
https://www.imgtec.com/blog/a-look-at-the-powervr-graphics-architecture-tile-based-rendering/
https://www.imgtec.com/blog/the-dr-in-tbdr-deferred-rendering-in-rogue/
http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/opencl-optimization-guide/#50401334_pgfId-412605
https://fgiesen.wordpress.com/2011/07/09/a-trip-through-the-graphics-pipeline-2011-index/
https://community.arm.com/graphics/b/documents/posts/moving-mobile-graphics#siggraph2015
@jakejscott
jakejscott / jai.txt
Last active February 11, 2017 08:06
Game engine programming in Jai
Livestream: Application Programming: Menu 3:12:57 DONE
Livestream: Internationalization (part 1) 2:33:16 DONE
Livestream: Internationalization (part 2), Window Size 14:43 DONE
Livestream: Hotloaded Variable-Tweak File 2:40:19 DONE
Game engine programming: Mesh VBOs. 2:30:59 DONE
Game Engine Programming: Drop-Down Console 3:24:51 DONE
Game Engine Programming: Console commands, Cool metaprogramming 3:24:35 DONE
Game Engine Programming: Animation Groundwork (full version) 2:06:17 DONE
Game Engine Programming: Animation Playback (part 1) 2:49:17 DONE
Game Engine Programming: Animation Playback (part 2)
@jakejscott
jakejscott / Collections.cs
Last active August 23, 2016 11:35
Collections.cs
private static CollectionRule AndContains(CollectionRuleColumn column, string value)
{
return new CollectionRule
{
Column = column,
MatchConditions = CollectionRuleMatchConditions.AllConditions,
Operator = CollectionRuleOperator.Contains,
Value = value
};
}
@jakejscott
jakejscott / PayPalPaymentCreatedResponse.cs
Last active January 20, 2024 13:09
Paypal .net core C# sample
public class PayPalPaymentCreatedResponse
{
public string id { get; set; }
public string intent { get; set; }
public string state { get; set; }
public Payer payer { get; set; }
public Transaction[] transactions { get; set; }
public DateTime create_time { get; set; }
public Link[] links { get; set; }
@jakejscott
jakejscott / dump.txt
Last active July 28, 2016 03:59
connection logging
web_1 | dbug: Microsoft.AspNetCore.Server.Kestrel[1]
web_1 | Connection id "0HKTMJDCU9GUL" started.
web_1 | dbug: Microsoft.AspNetCore.Server.Kestrel[4]
web_1 | Connection id "0HKTMJDCU9GUL" paused.
web_1 | dbug: Default[0]
web_1 | ReadAsync[4032] 50 4F 53 54 20 2F 61 70 69 2F 76 31 2F 6D 65 73 73 61 67 65 20 48 54 54 50 2F 31 2E 31 0D 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 4B 65 65 70 2D 41 6C 69 76 65 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20 6D 75 6C 74 69 70 61 72 74 2F 66 6F 72 6D 2D 64 61 74 61 3B 20 62 6F 75 6E 64 61 72 79 3D 22 32 37 31 63 31 66 63 38 2D 30 65 31 33 2D 34 37 31 62 2D 38 34 38 66 2D 62 37 66 66 62 66 36 66 39 38 30 32 22 0D 0A 41 63 63 65 70 74 2D 45 6E 63 6F 64 69 6E 67 3A 20 67 7A 69 70 2C 20 64 65 66 6C 61 74 65 0D 0A 41 75 74 68 6F 72 69 7A 61 74 69 6F 6E 3A 20 42 61 73 69 63 20 4F 44 45 77 59 6D 52 68 4E 7A 45 74 4E 44 45 77 59 69 30 30 4F 44 41 33 4C 57 45 78 59 57 45 74 4F 54 4A 6C 4E 57 59 33 4D 7A 49 33 4E 6D 59 78 4F 6D 56 57 57
@jakejscott
jakejscott / Program.cs
Last active June 27, 2016 03:25
Postgres function that accepts an array of composite types
var connection = "host=localhost;database=message_db;password=postgres;username=postgres";
var message = new Message
{
Subject = "subject",
BodyHtml = "Html",
BodyText = "Text"
};
var recipients = new List<Recipient>
@jakejscott
jakejscott / Collection.cs
Last active June 2, 2016 20:14
PredicateBuilder + LINQ + Marten
using System;
using System.Collections.Generic;
namespace Sprightly.Entities
{
public enum CollectionType
{
Manual,
Automatic,
}
@jakejscott
jakejscott / MarkdownTable.cs
Last active March 16, 2016 22:33
Add a table of contents to a markdown document
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CommonMark;
using CommonMark.Formatters;
using CommonMark.Syntax;
namespace ConsoleApp
{