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/usr/env python | |
import re | |
from urllib.request import urlopen | |
''' | |
セブンイレブンの今週の関東の新商品を表示する | |
毎週火曜日に更新される | |
''' |
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 re | |
import requests | |
''' | |
セブンイレブンの今週の関東の新商品を表示する | |
毎週火曜日に更新される | |
requestsバージョン |
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/usr/env python | |
''' | |
ファミマでいま開催しているキャンペーンを取得するプログラム | |
http://www.family.co.jp/campaign.html | |
''' | |
import requests | |
from bs4 import BeautifulSoup |
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
Public Class BaseForm | |
''' <summary>ボタンで閉じられたかどうか</summary> | |
Protected isClosedBtn As Boolean = False | |
Private Sub BaseForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load | |
isClosedBtn = False | |
End Sub | |
Private Sub BaseForm_Closed(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing |
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
' DataGridView1 というDataGridViewがあるとき | |
Public Class Form1 | |
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load | |
' DataSourceの設定によって、自動で列が追加されないようにする | |
DataGridView1.AutoGenerateColumns = False | |
' 列の追加 | |
Dim col1 As New DataGridViewColumn |
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
Public Class Form1 | |
Public Overloads Sub F1Process() | |
MsgBox("F1!!!!") | |
End Sub | |
Public Overloads Sub F2Process() | |
MsgBox("F2!!!!") | |
End Sub | |
Private Sub ButtonF1_Click(sender As Object, e As EventArgs) Handles ButtonF1.Click |
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
' Form1には DataGridView1 が配置されているとする | |
Public Class Form1 | |
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load | |
Dim textCol As New DataGridViewTextBoxColumn With { | |
.HeaderText = "名前", | |
.DataPropertyName = "Name" | |
} | |
DataGridView1.Columns.Add(textCol) |
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
#include <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]){ | |
if (argc < 2) { | |
printf("コマンドライン引数を指定してください\n"); | |
exit(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
// sizeof_test.c | |
#include <stdio.h> | |
int main(int argc, char *argv[]){ | |
char str1[] = "Hello!\n"; | |
int size = sizeof str1; | |
printf("%d\n", size); | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
// 第1引数のファイルを第2引数のファイルにコピーする | |
// 第2引数のファイルが存在しない場合、作成する | |
int main(int argc, char *argv[]) { | |
FILE *wf; | |
FILE *rf; | |
int c; |