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> | |
<meta http-equiv="Content-type" content="text/html; charset=Shift_JIS"> | |
<title>TEST</title> | |
</head> | |
<body> | |
<div id="example-input"> | |
<div> | |
<div> | |
<ul> |
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
object TowerOfHanoi { | |
import scala.reflect.Manifest | |
def name(manifest:Manifest[_]):String = { | |
manifest.erasure.getName | |
} | |
trait NaturalNumber | |
final class Zero extends NaturalNumber | |
final class Successor[Previous<:NaturalNumber] extends NaturalNumber |
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 numpy | |
import sys | |
import scipy.stats as stats | |
import matplotlib.pyplot as plotter | |
from gensim import corpora, models, similarities, matutils | |
# Defines dictionary from the specified corpus. | |
dictionary = corpora.Dictionary( | |
line.lower().split() for line in open('corpus_train.txt', 'rb') |
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 <set> | |
#include <vector> | |
using namespace std; | |
/* IO Helper Functions. */ | |
struct has_begin_end_empty { | |
template<typename T> | |
static auto check(T&& t) -> decltype(t.begin(), t.end(), t.empty(), true_type {}); |
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 <list> | |
using namespace std; | |
// | | |
// | Start of Boost.Test Header. | |
// v | |
using Invoker = void (*)(); |
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
#ifndef __LAB_COLORSPACE__ | |
#define __LAB_COLORSPACE__ | |
/* | |
* Conversion between RGB and LAB colorspace. | |
* Import from flowabs glsl program : https://code.google.com/p/flowabs/source/browse/glsl/?r=f36cbdcf7790a28d90f09e2cf89ec9a64911f138 | |
*/ | |
float3 rgb2xyz( float3 c ) { | |
float3 tmp; |
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
const PENDING = Symbol('PENDING'); | |
const FULFILLED = Symbol('FULFILLED'); | |
const REJECTED = Symbol('REJECTED'); | |
const exec = (f, resolve, reject) => { | |
let isRejected = false; | |
try { | |
f( |
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 sys | |
from io import StringIO | |
from re import split | |
from textwrap import dedent | |
from traceback import format_exc | |
class UserInput: | |
def __init__(self, text=None): | |
self._io = StringIO(text) if text else sys.stdin |
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
<!-- reset.css destyle --> | |
<link | |
rel="stylesheet" | |
href="https://cdn.jsdelivr.net/npm/[email protected]/destyle.css" | |
/> |
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
<!-- reset.css modern-css-reset --> | |
<link | |
rel="stylesheet" | |
href="https://unpkg.com/modern-css-reset/dist/reset.min.css" | |
/> |
OlderNewer