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
import { GetStaticPaths, GetStaticProps } from "next" | |
import path from "path" | |
import { Categories } from "@/utility/category" | |
import fs from "fs" | |
import dynamic from 'next/dynamic' | |
import { parse } from 'node-html-parser'; | |
import { BlogCardDataContext } from "src/state/blogcarddata" | |
import * as CONST from "@/utility/site-properties"; | |
const PostPage = ({ params, blogCardData, meta }) => { |
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
Add-Type -AssemblyName System.Windows.Forms | |
Add-Type @" | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Runtime.InteropServices; | |
using System.Security; | |
using System.Text; |
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
function conrty_code_list(){ | |
const contry_code = {"BD": "AS", "BE": "EU", "BF": "AF", "BG": "EU", "BA": "EU", "BB": "NA", "WF": "OC", "BL": "NA", "BM": "NA", | |
"BN": "AS", "BO": "SA", "BH": "AS", "BI": "AF", "BJ": "AF", "BT": "AS", "JM": "NA", "BV": "AN", "BW": "AF", | |
"WS": "OC", "BQ": "NA", "BR": "SA", "BS": "NA", "JE": "EU", "BY": "EU", "BZ": "NA", "RU": "EU", "RW": "AF", | |
"RS": "EU", "TL": "OC", "RE": "AF", "TM": "AS", "TJ": "AS", "RO": "EU", "TK": "OC", "GW": "AF", "GU": "OC", | |
"GT": "NA", "GS": "AN", "GR": "EU", "GQ": "AF", "GP": "NA", "JP": "AS", "GY": "SA", "GG": "EU", "GF": "SA", | |
"GE": "AS", "GD": "NA", "GB": "EU", "GA": "AF", "SV": "NA", "GN": "AF", "GM": "AF", "GL": "NA", "GI": "EU", | |
"GH": "AF", "OM": "AS", "TN": "AF", "JO": "AS", "HR": "EU", "HT": "NA", "HU": "EU", "HK": "AS", "HN": "NA", | |
"HM": "AN", "VE": "SA", "PR": "NA", "PS": "AS" |
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
html, body { | |
height: 100%; | |
width: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
#globalArea { | |
height: 100%; | |
width: 100%; |
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
$(function () { | |
//地球を表示させるエリアを取得する | |
var container = document.getElementById( "globalArea" ); | |
//GIO.Controllerのインスタンスを作成する | |
var controller = new GIO.Controller( container ); | |
controller.setInitCountry("JP");//最初にフォーカスされる国の選択 | |
controller.setStyle("magic");//地球モデルのデザインを設定 |
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
//nodeのデータを作成 | |
var range =110; | |
var nodes = d3.range(0, range).map(function(d){ return {id:d,label: "n"+d ,r:15}}); | |
console.log(nodes) | |
//-------★追加------- | |
//linkのデータを作成// | |
//3段階の構造にする1を中心、2~10を二段階、11~110までを三段階 | |
var links = d3.range(1,range).map(function(d){ | |
if(d <= 10){ |
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
import tkinter | |
#ボタン内の数字管理クラス | |
class Counter(): | |
def __init__(self): | |
self.num=0 | |
def count_up(self): | |
self.num += 1 | |
button["text"] = self.num #ボタン内テキストの更新 |
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
import tkinter | |
root = tkinter.Tk() | |
root.title("Hello Tkinter World.") | |
root.geometry("600x500+100+100") | |
button = tkinter.Button(root,text="This is button!")#ボタンのインスタンス作成 | |
button.pack(anchor="center",expand=1)#ボタンの配置 | |
root.mainloop() |
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
import tkinter | |
import tkinter.font as font | |
root = tkinter.Tk() | |
root.title("Hello Tkinter World.") | |
root.geometry("600x500+100+100") | |
#ここから追加 | |
labelFont = font.Font(size=30,weight="bold")#テキストのフォントを定義 | |
label = tkinter.Label(root,text="This is test window!!!",font=labelFont)#表示するテキストの定義 |
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
import tkinter | |
root = tkinter.Tk()#tkinterのクラス定義 | |
root.title("Hello Tkinter World.")#ウィンドウのタイトル | |
root.geometry("600x500+100+100")#"ウィンドウの横幅xウィンドウの縦幅+ウィンドウが出現するx座標+ウィンドウが出現するy座標" | |
root.mainloop()#画面表示 |
NewerOlder