I hereby claim:
- I am overv on github.
- I am overv (https://keybase.io/overv) on keybase.
- I have a public key whose fingerprint is 6FC5 3ADC 96B2 9E45 BACE DD87 1914 5C77 E4F4 3EB3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <SDL.h> | |
#define GLEW_STATIC | |
#include <GL/glew.h> | |
const char* vertShaderSrc = | |
"#version 440\n" | |
"void main() {" | |
"if (gl_VertexID == 0) gl_Position = vec4( 0.0, 0.5, 0, 1);" | |
"if (gl_VertexID == 1) gl_Position = vec4( 0.5, -0.5, 0, 1);" |
#include <iostream> | |
int main() { | |
std::cout << "Hello, world!" << std::endl; | |
return 0; | |
} |
// Headers | |
#include <windows.h> | |
#include "GLee.h" | |
// Globals | |
bool g_WindowOpen = true; | |
// Window event handler | |
LRESULT CALLBACK windowEvent( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) | |
{ |
// Headers | |
#include <Windows.h> | |
#include <D3D10.h> | |
#include <D3DX10.h> | |
#include <fstream> | |
#include <vector> | |
// Parameters | |
const int WIDTH = 800; | |
const int HEIGHT = 600; |
import os | |
import re | |
def get_filepaths(directory): | |
file_paths = [] | |
for root, directories, files in os.walk(directory): | |
for filename in files: | |
filepath = os.path.join(root, filename) | |
file_paths.append(filepath) |
<?php | |
if (!isset($_GET['profile']) || !isset($_GET['page']) || !is_numeric($_GET['page']) || $_GET['page'] < 1) { | |
die("Specify a profile id and page as GET parameter."); | |
} | |
$page = intval($_GET['page']); | |
// Get profile | |
$profile = file_get_contents('http://steamcommunity.com/id/' . $_GET['profile']); | |
preg_match("/Profile_([0-9]+)/", $profile, $id); $id = $id[1]; |
.text | |
message: .asciz "Hello, world!\n" | |
.global main | |
main: | |
# Initialize stack base pointer | |
movl %esp, %ebp |
The local storage functionality in browsers is a bit limited and this can lead to some rather surprising behaviour.
localStorage[0] = false;
if (localStorage[0]) {
console.log('wtf'); // runs?!
}