Skip to content

Instantly share code, notes, and snippets.

View peta345's full-sized avatar
🍺
Kalimotxo

Peta peta345

🍺
Kalimotxo
View GitHub Profile
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},
#/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
.box {
width: 100%;
background-color: yellow;
display: table;
}
.left-content {
width: 30%;
display: table-cell;
}
<div class="box">
<div class="left-content">Hello</div>
<div class="right-content">World</div>
</div>
#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)
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)
@peta345
peta345 / post.rb
Created September 14, 2016 05:31
base64エンコードした画像をポストする
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
/*
* MyIPhone.java
*
*/
package iphone1;
import javax.swing.*;
import javax.swing.border.BevelBorder;
import java.awt.event.*;
import java.awt.FlowLayout;
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 13:49:23 11/10/2015
// Design Name:
// Module Name: clock
// Project Name:
// Target Devices:
// 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