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?!
}
import std.socket; | |
import std.stdio; | |
import std.conv; | |
static import file = std.file; | |
import gzip; | |
const string content = "{}"; | |
void main() { | |
TcpSocket server = new TcpSocket(); |
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?!
}
extern exit, printf | |
section .data | |
msg db "Hello World!", 10, 0 | |
section .text | |
global main | |
main: | |
push msg | |
call printf |
.text | |
message: .asciz "Hello, world!\n" | |
.global main | |
main: | |
# Initialize stack base pointer | |
movl %esp, %ebp |
<?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]; |
// Headers | |
#include <Windows.h> | |
#include <D3D10.h> | |
// Parameters | |
const int WIDTH = 800; | |
const int HEIGHT = 600; | |
// Shader | |
#define SHADER(x) #x |
// Headers | |
#include <Windows.h> | |
#include <D3D10.h> | |
#include <D3DX10.h> | |
#include <fstream> | |
#include <vector> | |
// Parameters | |
const int WIDTH = 800; | |
const int HEIGHT = 600; |
#include "Assembler.hpp" | |
Assembler::Assembler() | |
{ | |
} | |
int Assembler::Run() | |
{ | |
if ( code.size() == 0 ) return -1; |
// 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 ) | |
{ |