Skip to content

Instantly share code, notes, and snippets.

View draqoon's full-sized avatar

draqoon

  • Fukuoka, Japan
View GitHub Profile
using System;
using System.Collections.Generic;
public class Hello {
public static void Main() {
var line = Console.ReadLine().Split( ' ' );
var boxCount = int.Parse( line[0] );
var radius = decimal.Parse( line[1] );
var boxNos = new List<int>();
//島探し (paizaランク S 相当)
//https://paiza.jp/learning/search-island
using System;
using System.Collections.Generic;
public class Program {
public static void Main() {
var s = Console.ReadLine().Split( ' ' );
//Paiza Lerning 足し算 (paizaランク D 相当)
//https://paiza.jp/learning/addition
using System;
public class Hello{
public static void Main(){
//標準入力から1行読み込み
string line = Console.ReadLine();
//Paiza Lerning 単語のカウント (paizaランク C 相当)
//https://paiza.jp/learning/word-count
using System;
using System.Collections.Generic;
public class Hello{
public static void Main(){
//標準入力から1行読み込む
string line = Console.ReadLine();
//Paiza Lerning 長テーブルのうなぎ屋 (paizaランク B 相当)
//https://paiza.jp/learning/long-table
using System;
using System.Collections.Generic;
public class Program {
public static void Main() {
var s = Console.ReadLine().Split( ' ' );
@draqoon
draqoon / MainWindow.xaml
Last active March 21, 2019 07:11
[WPF][ウインドウを最大化した時のサイズと位置を制限する Behavior とその使用サンプル
<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow"
@draqoon
draqoon / Extract-TMOD.cs
Last active May 8, 2019 01:51
[Terraria] テラリアのMODファイルを展開するサンプル。
using System;
using System.IO;
using System.IO.Compression;
using System.Text;
class Program {
static void Main( string[] args ) {
var modPath = @"%USERPROFILE%\Documents\My Games\Terraria\ModLoader\Mods\CalamityMod.tmod";
var outputDir = @"C:\Temp";
@draqoon
draqoon / ExportSpreadsheetToPDF.gs
Last active November 9, 2020 05:35
Export Google Spreadsheet to PDF for Google Apps Script
function onOpen() {
SpreadsheetApp.getUi()
.createMenu("マクロ")
.addItem("Export PDF", "exportPDF")
.addToUi();
}
function encodeDate(yy, mm, dd, hh, ii, ss) {
var days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
if (yy % 4 == 0 && (yy % 100 != 0 || yy % 400 == 0)) days[1] = 29;
@draqoon
draqoon / Text2Link.js
Created January 4, 2021 19:31
Convert URL text to link for Tampermonky
@draqoon
draqoon / Extract-TMOD.cs
Created August 11, 2022 13:49
Tools for Extracting Terraria 1.4 Tmod.
using System.IO.Compression;
using System.Text;
using System.Security.Cryptography;
using Microsoft.Xna.Framework.Graphics;
class Program {
static void Main( string[] _ ) => new Program().MainProc();
private void MainProc() {