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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class EnemyController : MonoBehaviour { | |
public static Dictionary<string, int> enemy_status = new Dictionary<string, int> () { | |
{"hp", 1}, | |
{"mhp", 1}, | |
{"mp", 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
#/bin/sh | |
for i in [1] [2] [3] [4] [5]; | |
do | |
sleep 1; | |
echo $i; | |
# デフォルトでキャッシュを使っている. このオプションでキャッシュを使わないようにする | |
time dd if=/dev/zero of=./fuga bs=1g count=10 oflag=direct; | |
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
.box { | |
width: 100%; | |
background-color: yellow; | |
display: table; | |
} | |
.left-content { | |
width: 30%; | |
display: table-cell; | |
} |
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
<div class="box"> | |
<div class="left-content">Hello</div> | |
<div class="right-content">World</div> | |
</div> |
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 requests | |
import json | |
import base64 | |
url = 'http://localhost:3000/image/api' | |
f = open("moon.jpg", "rt").read() | |
enc_file = base64.b64encode(f) |
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
require 'net/https' | |
require 'uri' | |
require 'base64' | |
require 'json' | |
#uri = URI.parse('http://localhost:3000/image/api') | |
uri = URI.parse('hoge2/.com') | |
http = Net::HTTP.new(uri.host, uri.port) | |
req = Net::HTTP::Post.new(uri.request_uri) |
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
require 'net/https' | |
require 'uri' | |
require 'base64' | |
require 'json' | |
uri = URI.parse("hoge/.com") | |
http = Net::HTTP.new(uri.host, uri.port) | |
http.use_ssl = true |
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
/* | |
* MyIPhone.java | |
* | |
*/ | |
package iphone1; | |
import javax.swing.*; | |
import javax.swing.border.BevelBorder; | |
import java.awt.event.*; | |
import java.awt.FlowLayout; |
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
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Company: | |
// Engineer: | |
// | |
// Create Date: 13:49:23 11/10/2015 | |
// Design Name: | |
// Module Name: clock | |
// Project Name: | |
// Target Devices: |
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
// seg7_counter10.ucf | |
NET "clk0" LOC = L15; // CLK | |
NET "led(6)" LOC = P16; // LD6 | |
NET "led(5)" LOC = D4; // LD5 | |
NET "led(4)" LOC = M13; // LD4 | |
NET "led(3)" LOC = L14; // LD3 | |
NET "led(2)" LOC = N14; // LD2 | |
NET "led(1)" LOC = M14; // LD1 |
NewerOlder