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 <algorithm> | |
#include <fstream> | |
#include <vector> | |
#include <string> | |
#include <iostream> | |
#include <unordered_map> | |
#include <assert.h> | |
using namespace std; |
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
<?php | |
$im = imagecreatefrompng("vga-palette.png"); | |
$sx = (int) 800 / 16; | |
$sy = (int) 800 / 16; | |
$ox = (int) ($sx / 2); | |
$oy = (int) ($sx / 2); | |
for($y = 0; $y < 16; $y++) { | |
for($x = 0; $x < 16; $x++) { | |
$rgb = imagecolorat($im, $sx*$x + $ox, $sy*$y + $oy); |
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 <stdio.h> | |
int perevod(char *s) | |
{ | |
int code[256]; | |
int i = 0; | |
int N = 0; | |
for (i = 0;i < 256; i ++) { | |
code[i] = 0; | |
} |
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 <vector> | |
#include <tbb/enumerable_thread_specific.h> | |
class A; | |
class B { | |
public: | |
//std::vector<std::vector<A> > b; // <- can be compiled both g++ and cl | |
tbb::enumerable_thread_specific<std::vector<A> > b; // <- fails on cl | |
~B(); |