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"> | |
<meta name="robots" content="INDEX,FOLLOW"> | |
<meta name="description" content="HTML5に準じた基本的な3分割サイトです。ヘッダ部分、コンテンツ部分、フッタ部分に分けてあります。レスポンシブにも対応しています。ご自由にコピーして使ってください。"> | |
<link rel="stylesheet" href="style.css"> | |
<title>3分割レイアウト</title> | |
<link rel="apple-touch-icon" href="img/icon.png" > <!--ホームアイコンの設定--> |
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
/* style.css */ | |
@charset "utf-8"; | |
*{ | |
margin: 0; | |
padding: 0; | |
} | |
body{ | |
font-family: Helvetica, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック', meiryo, sans-serif; /* フォント */ | |
background-color: #fff; |
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 System.Diagnostics; | |
using System.Windows.Forms; | |
namespace 外部アプリケーションを起動する | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ |
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 System.Diagnostics; | |
using System.Windows.Forms; | |
namespace 外部アプリケーションの二重起動を防止する | |
{ | |
public partial class Form1 : Form | |
{ | |
private Process myProcess; |
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 | |
import qrcode, os # ライブラリ読み込み | |
file_name = "qr_code.png" #保存するQRコードのファイル名 | |
print("QRコードに変換したい文字列を入力してください: ", end="") | |
qr_string = input() # キーボードから変換したい文字列を入力させる | |
img = qrcode.make(qr_string) # QRコード画像データ生成 | |
img.save(file_name) # 画像ファイルとして保存 | |
current_dir = os.getcwd() # 現在のディレクトリ位置を取得 | |
print("「{0}\\{1}」にQRコード画像を保存しました".format(current_dir, file_name)) # 終了メッセージ出力 |
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=480"> | |
<title>AfterDark</title> | |
<style> | |
/* コンテンツを中央に配置するための設定 -----> */ | |
html, body { | |
width: 100%; |
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
# conding: utf-8 | |
""" | |
フォルダ内の音楽ファイルをランダムで再生する | |
""" | |
import os, sys | |
import random |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import smbus | |
import time | |
# ADT7410温度センサーの値を取得する | |
i2c = smbus.SMBus(1) | |
address = 0x48 | |
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"> | |
<meta name=”robots” content=”INDEX,FOLLOW”> | |
<meta name=”description” content=”指定した文字を使ってパスワードを適当に作ります。文字種とパスワード文字数は変更できます。”> | |
<link rel="stylesheet" href="style.css"> |
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 System.Collections.Generic; | |
namespace Listの基本 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// リスト(整数型)の宣言 |