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
# -*- coding: utf-8 -*- | |
''' | |
beautifulsoup4の動作テスト | |
''' | |
from bs4 import BeautifulSoup | |
# HTMLデータを取得する | |
html = """ | |
<ol> |
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
# -*- coding: utf-8 -*- | |
''' | |
beautifulsoup4:特定のクラス内のあるクラスを取り出す | |
''' | |
from bs4 import BeautifulSoup | |
# HTMLデータを取得する | |
html = """ | |
<ol> |
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
using UnityEngine; | |
using UnityEngine.UI; // Sliderを扱うために必要 | |
public class HPbar : MonoBehaviour { | |
private const int maxHp = 100; // 敵キャラのHP最大値を100とする | |
private int currentHp; // 現在のHP | |
public Slider slider; // シーンに配置したSlider格納用 | |
// Use this for initialization | |
void Start () { |
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
/* | |
kaprekar.c: C言語で4桁のカプレカ数を再現してみる | |
【処理の流れ】 | |
1.乱数で適当な4つ数値を生成 | |
2.生成した4つの数値から最大値と最小値を求める | |
3.最大値-最小値を求める | |
4.3で求めた数値を使って再度最大値と最小値を求める | |
5.3と4を 「6174」が2回連続して再現されるまで繰り返す |
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> | |
#include <stdlib.h> | |
#include <wiringPi.h> // WiringPiのライブラリ | |
#include <softTone.h> // WiringPiのソフトウェアトーンライブラリ | |
#define C 262 // ド | |
#define Cs 277 // ド# | |
#define Df 277 // レ♭ | |
#define D 294 // レ | |
#define Ds 311 // レ# | |
#define Ef 311 // ミ♭ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="style.css"> | |
<title>JS:貼り付け(ペースト)イベントに対応させる</title> | |
<meta name="viewport" content="width=device-width"> | |
<script type="text/javascript" src="main.js"></script> | |
</head> | |
<body> |
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
/* xOtokuuti お特打ち(キーボード練習っぽいプログラム) */ | |
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
int main(void) | |
{ | |
long start, end; | |
double total_time ; |
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
using System; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class CountDown : MonoBehaviour { | |
public static float CountDownTime; // カウントダウンタイム | |
public Text TextCountDown; // 表示用テキストUI | |
// Use this for initialization | |
void Start () { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=yes"> | |
<meta name="robots" content="INDEX,FOLLOW"> | |
<meta name="description" content="東海第2原発から30km圏内をGoogle Maps APIで表示してみました。ただし30kmより外は安全という意味ではありません。"> | |
<title>東海第2原発から30km圏内</title> | |
<style> | |
*{ |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,user-scalable=yes"> | |
<title>スワイプで数値カウントしローカルストレージに保存</title> | |
<link rel="stylesheet" href="style.css"> | |
<script src="main.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<header> |