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
@deconstructible | |
class RegexValidator: | |
regex = '' | |
message = _('Enter a valid value.') | |
code = 'invalid' | |
inverse_match = False | |
flags = 0 | |
def __init__(self, regex=None, message=None, code=None, inverse_match=None, flags=None): | |
if regex is not None: |
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
# Create your models here. | |
from django.db import models | |
from django.core.validators import RegexValidator | |
class NumValidator(RegexValidator): | |
regex = r'^[0-9]+\Z' | |
message = "ゼッケンNoは数字のみで入力してください。" | |
def __call__(self, value): |
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
version: '3' | |
services: | |
db: | |
image: mariadb:10.6.4 | |
restart: always | |
environment: | |
MARIADB_ROOT_PASSWORD: password | |
ports: | |
- 3306:3306 |
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
from urllib.request import urlopen | |
from reportlab.graphics.shapes import * | |
from reportlab.graphics.charts.lineplots import LinePlot | |
from reportlab.graphics.charts.textlabels import Label | |
from reportlab.graphics import renderPDF | |
import json | |
URL = "https://services.swpc.noaa.gov/json/solar-cycle/predicted-solar-cycle.json" | |
drawing = Drawing(400, 200) |
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
'------------------------------------------------------ | |
'Software Name: Access 分析ツール | |
'FileName: AccessAnalyzer | |
'Author: Suguru Ueda | |
'Last Modifiy:2017/2/7 | |
'------------------------------------------------------ | |
Option Compare Database | |
Option Explicit |
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
Public Function CreateFolder(strFolderPath As String) | |
' パスを\区切りで分ける | |
Dim varFolders As Variant ' フォルダ名リスト | |
varFolders = Split(strFolderPath, "\") | |
' FileSystemObjectをインスタンス化する | |
Dim objFileSystemObject As Object ' FileSystemObjectオブジェクト | |
Set objFileSystemObject = CreateObject("Scripting.FileSystemObject") | |
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
'再帰的にフォルダを作成 | |
'複数階層で途中のパスのフォルダが存在しなくても作成できます | |
Public Sub CreateFolder(FolderFullPath As String) | |
' パスを\区切りで分ける | |
Dim FolderPaths As Variant ' フォルダ名リスト | |
FolderPaths = Split(FolderFullPath, "\") | |
Dim FSO As Scripting.FileSystemObject | |
Set FSO = New Scripting.FileSystemObject |
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
Homebrew build logs for vim on macOS 10.11.6 | |
Build date: 2017-01-05 17:32:43 |
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.Text; | |
using System.ComponentModel; | |
using System.Runtime.InteropServices; | |
namespace VBA_SampleAddin | |
{ | |
[ComVisible(true)] | |
public interface IVBA_Addin | |
{ |
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; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using StackExchange.Redis; | |
namespace Redis_CSharp_Sample | |
{ | |
class Program |