This file contains 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
class Texture2DHighDPI | |
{ | |
public: | |
Texture2DHighDPI(Texture2D * texture, Vector2 pos, Vector2 size); | |
void SetPosition(Vector2 pos); | |
void SetSize(Vector2 size); | |
void Draw(); | |
private: | |
Texture2D * m_texture; | |
Vector2 m_position; |
This file contains 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 <iostream> | |
#include <filesystem> | |
#define bits_in_int (sizeof(int) * 8) | |
#define bits_in_char (sizeof(char) * 8) | |
namespace fs = std::experimental::filesystem; | |
char* wchar_to_char(const wchar_t* pwchar) | |
{ |
This file contains 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
/* | |
LoRaLib Transmit Example | |
This example transmits LoRa packets with one second delays | |
between them. Each packet contains up to 256 bytes | |
of data, in the form of: | |
- Arduino String | |
- null-terminated char array (C-string) | |
- arbitrary binary data (byte array) |
This file contains 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
local path = ... .. "." | |
local loader = {} | |
loader.version = "0.0.2" | |
function loader.load(path, filename) | |
loader.object = { | |
v = {}, -- List of vertices - x, y, z, [w]=1.0 | |
vt = {}, -- Texture coordinates - u, v, [w]=0 | |
vn = {}, -- Normals - x, y, z |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace CodeADay | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace CodeADay | |
{ | |
class Program | |
{ |
This file contains 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 os | |
import sys | |
import re | |
import subprocess | |
exeCallCount = 100 | |
dataSetPartialName = sys.argv[1] ## only import data from files with s in the name. | |
cwd = os.path.dirname(os.path.abspath(__file__)) ## current working directory |
This file contains 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 os | |
import sys | |
import re | |
import subprocess | |
processedRows = 0 | |
dataSetPartialName = sys.argv[1] ## only import data from files with s in the name. | |
## remove text and write to outfile |
This file contains 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
<html> | |
<head> | |
</head> | |
<body> | |
<style> | |
html { | |
display:block; | |
} | |
</style> | |
<script type="text/javascript" src="js/dglBuffer.js"></script> |
This file contains 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
<html> | |
<head> | |
<title>DragonGL</title> | |
<script type="x-shader/vertex" id="vs-glsl"> | |
precision mediump float; | |
attribute vec2 vVertex; | |
attribute vec2 vTexcoord; |