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
<template> | |
<div ref="stage"></div> | |
</template> | |
<script> | |
import * as THREE from 'three'; | |
import Stats from 'stats.js'; | |
import DataPoint from '@/lib/DataPoint'; | |
import Axis from '@/lib/Axis'; |
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
<template> | |
<div> | |
<div> | |
<button | |
v-for="(_, i) in 17" | |
:key="i" | |
@click="needles.push(i)"> | |
{{ i }} | |
</button> | |
</div> |
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
syntax = "proto3"; | |
package image_dataset; | |
message Image { | |
uint32 width = 1; | |
uint32 height = 2; | |
bytes data = 3; | |
string mode = 4; | |
} |
This file has been truncated, but you can view the full file.
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 <cmath> | |
#include <vector> | |
#include <string> | |
#include <map> | |
#include <algorithm> | |
#include <tuple> | |
#include <set> | |
#include <stack> | |
#include <queue> |
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
def make_mask(lens, mask_shape): | |
mask = np.ones(mask_shape).astype('uint8') | |
for i, l in enumerate(lens): | |
mask[i, :l] = 0 | |
return mask | |
batch_size = 2 | |
seq_len = 4 | |
lens = np.array([2, 3]) |
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 as np | |
import matplotlib | |
import matplotlib.pyplot as plt | |
def colorize(words, color_array): | |
# words is a list of words | |
# color_array is an array of numbers between 0 and 1 of length equal to words | |
cmap = matplotlib.cm.get_cmap('RdBu') | |
template = '<span class="barcode"; style="color: black; background-color: {}">{}</span>' | |
colored_string = '' |
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
export XDG_CONFIG_HOME=$HOME/.config | |
source $HOME/.zplug/init.zsh | |
zplug "zsh-users/zsh-syntax-highlighting", defer:2 | |
zplug "zsh-users/zsh-completions" | |
zplug "zsh-users/zsh-autosuggestions" | |
zplug "zsh-users/zsh-history-substring-search" | |
zplug "peco/peco", as:command, from:gh-r |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 main(void){ | |
int a,b,c=1, i, j, e, f, p, d; | |
printf("桁区切りする値の入力:"); | |
scanf("%d",&a); | |
b=a; |