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
using UnityEngine; | |
using System.Collections; | |
public class myscript : MonoBehaviour { | |
private float v; | |
// Use this for initialization | |
void Start () { | |
v = 2.0f; |
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
using UnityEngine; | |
using System.Collections; | |
public class myscript : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
} | |
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
# -*- coding: utf-8 -*- | |
import numpy as np | |
import tensorflow as tf | |
from tensorflow.examples.tutorials.mnist import input_data | |
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) | |
x = tf.placeholder(tf.float32, [None, 784]) | |
W = tf.Variable(tf.zeros([784, 10])) | |
b = tf.Variable(tf.zeros([10])) |
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
if ARGV.count < 1 | |
puts "Usage: ruby split.rb hoge.txt <split_num>" | |
exit | |
end | |
fname = ARGV[0] | |
n = ARGV[1] | |
fn = fname.split(".") | |
File.open(fname, 'r') do |f| | |
File.open(fn[0] + '_r.txt', 'w') do |rf| |
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
git status | grep deleted | awk '{print $2}' | while read line ; do git checkout $line ; done |
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
echo --hoge=3 --fuga=3 --piyo=3 | awk '{for(i=0;i<$NF;i++){printf("%s\n",$i)}print $NF}' |
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
.wrap { | |
display: flex; | |
flex-flow: row; | |
justify-content: center; | |
align-items: stretch; | |
} |
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 os, sys | |
import imghdr | |
import cv2 #PILでも良いと思います | |
import logging | |
logger = logging.getLogger(__name__) | |
#わたされたパスがディレクトリかどうかチェック | |
if os.path.isdir(inpath): | |
imgs = [] |
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
//module name must be set the same one as Project Name. | |
//module name must be set with alphabet, not only number. | |
module sample (out,clk); | |
//signal input and output of module | |
input clk; | |
output out; | |
//set 25bit variable. [24][23][22]...[3][2][1][0] as "count" | |
reg[24:0]count; |
OlderNewer