Skip to content

Instantly share code, notes, and snippets.

Milk milk19873

View GitHub Profile
View AMP.css
/* 見出し用 */
h2 {
padding: 0.5em;/*文字周りの余白*/
color: #494949;/*文字色*/
background: #fffaf4;/*背景色*/
border-left: solid 5px #724535;/*左線(実線 太さ 色)*/
}
.entry-content h2{
position: static;
border-bottom: solid 0px;
@milk19873
milk19873 / Calc.cs
Created Sep 22, 2017
5回の計算例1(C#)
View Calc.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
@milk19873
milk19873 / Calc.bas
Created Sep 22, 2017
5回計算の例1(VBA)
View Calc.bas
Sub MainSub()
Dim i As Integer
Dim a As Integer
a = 5
For i = 1 To 5
Sheets("Sheet1").Cells(i, 1).Value = CalcFunc(a, 5)
Next
End Sub
@milk19873
milk19873 / FunctionProcedure2.bas
Created Sep 20, 2017
Functionプロシージャ例2
View FunctionProcedure2.bas
Sub MainSub()
'引数を受け取らないでFunctionプロシージャを呼び出す
TestFunc 4, 10
End Sub
Function TestFunc(a As Integer, b As Integer)
Dim result As Integer
@milk19873
milk19873 / FunctionProcedure.bas
Last active Sep 20, 2017
Functionプロシージャ例1
View FunctionProcedure.bas
Sub MainSub()
'Functionプロシージャの戻り値を、「A1」セルに代入
Sheets("Sheet1").Cells(1, 1) = TestFunc(4, 8)
End Sub
Function TestFunc(a As Integer, b As Integer)
Dim result As Integer
@milk19873
milk19873 / SubProcedure2.bas
Last active Sep 20, 2017
Subプロシージャ例2
View SubProcedure2.bas
Sub MainSub()
'Callを使わないでSubプロシージャを呼び出す
TestSub 7, 4
End Sub
Sub TestSub(a As Integer, b As Integer)
Dim result As Integer
@milk19873
milk19873 / SubProcedure.bas
Created Sep 20, 2017
Subプロシージャ例1
View SubProcedure.bas
Sub MainSub()
'Callを使ってSubプロシージャを呼び出す
Call TestSub(5, 4)
End Sub
Sub TestSub(a As Integer, b As Integer)
Dim result As Integer
@milk19873
milk19873 / Form.cs
Created Sep 4, 2017
ボタンクリックによるPDF出力例2
View Form.cs
public partial class Form1 : Form
{
private Excel.Application PDFExcel;
private Excel.Workbook PDFWorkbook;
public Form1()
{
InitializeComponent();
}
@milk19873
milk19873 / Form.cs
Created Sep 4, 2017
ボタンクリックによるPDF出力例1
View Form.cs
public partial class Form1 : Form
{
private Excel.Application PDFExcel;
private Excel.Workbook PDFWorkbook;
public Form1()
{
InitializeComponent();
}
View データコピー.bat
C:\> xcopy 【isoファイルのドライブ名】:\*.* /s/e/f 【USBメモリのドライブ名】:\
C:\> cd /D 【isoファイルのドライブ名】:\boot
【isoファイルのドライブ名】:\boot> bootsect /nt60 【USBメモリのドライブ名】:
You can’t perform that action at this time.