Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
start `ls -t | head -1` |
This file contains hidden or 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
find . | grep \.exr$ | sed 'p;s/\.exr/\.png/' | xargs -n2 convert -gamma 2.2 |
This file contains hidden or 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 <vector> | |
#include <memory> | |
struct A { int v; }; | |
struct B { const A* a; }; | |
int main() | |
{ | |
// NG. Taking raw pointer of an element of the vector. |
This file contains hidden or 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 <memory> | |
struct A | |
{ | |
virtual ~A() {} | |
}; | |
struct B : public A | |
{ |
This file contains hidden or 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 <random> | |
#include <functional> | |
#pragma execution_character_set("utf-8") | |
int main() | |
{ | |
std::mt19937 eng(std::hash<std::string>()("種田梨沙")); | |
std::uniform_int_distribution<int> dist; |
This file contains hidden or 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 <vector> | |
int main() | |
{ | |
for (int n = 2; n <= 9719; n++) | |
{ | |
bool found = false; | |
int nn = n; | |
std::vector<int> a; |
This file contains hidden or 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> | |
struct A | |
{ | |
int n; | |
A(int n) : n(n) {} | |
}; | |
A Func(int n) | |
{ |
This file contains hidden or 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 <boost/pool/object_pool.hpp> | |
#include <vector> | |
#include <chrono> | |
class Pool | |
{ | |
public: | |
virtual ~Pool() {} |
This file contains hidden or 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 array | |
import smc.freeimage as fi | |
from PIL import Image | |
import numpy as np | |
import cv2 | |
def gamma_correction(a, gamma): | |
return np.power(a, 1/gamma) | |
def load_hdr(file): |
NewerOlder