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
| using System; | |
| using System.Linq; | |
| namespace FiveProblemOfFive | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Enumerable.Repeat(new[] { " ", "-", "+" }, 9).Aggregate(Enumerable.Repeat("", 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
| using System; | |
| using System.Linq; | |
| namespace ShinchokuDoudesuka | |
| { | |
| class Program | |
| { | |
| static void Main() | |
| { | |
| string[] words = { "進捗", "どう", "です", "か" }; |
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
| do{"進捗","どう","です","か"|Get-Random|%{$res+=$_}}while(!$res.EndsWith("進捗どうですか"))Write-Host $res "???`r`n" $res.Length"文字で煽られました。" |
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
| using System; | |
| using System.Linq; | |
| namespace Kaibun | |
| { | |
| class Kaibun | |
| { | |
| static void Main(string[] args) | |
| { | |
| var list = Enumerable.Repeat(0, int.Parse(Console.ReadLine())).Select(x => Console.ReadLine()).ToArray(); |
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
| filter Get-CalcResult{ | |
| if($_ -le 6 ){ | |
| return [int]$digits[$digits.Length - 2 - $_] * ($_ + 1) | |
| }else{ | |
| return [int]$digits[$digits.Length - 2 - $_] * ($_ - 5) | |
| } | |
| } | |
| function Check-MyNumber{ | |
| param( |
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 -*- | |
| from docx import Document | |
| def appears_in_paragraph(paragraph, match_string): | |
| return match_string in paragraph.text | |
| def replace_all_occurences(paragraph, match_string, replacement_string): | |
| before_text = paragraph.text | |
| after_text = before_text.replace(match_string, replacement_string) | |
| paragraph.clear() |
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
| using System; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Net; | |
| using System.Net.Http; | |
| using Tor; | |
| using Tor.Config; | |
| using static System.Console; | |
| namespace TorClient |
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
| param( | |
| [Parameter(Mandatory=$true)] | |
| [string] | |
| $TargetPath, | |
| [string] | |
| $OutputPath | |
| ) | |
| function Convert-Markdown { | |
| param( |
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 -*- | |
| from asciimatics.effects import Cycle, Stars | |
| from asciimatics.renderers import ColourImageFile | |
| from asciimatics.scene import Scene | |
| from asciimatics.screen import Screen | |
| from collections import deque | |
| import random | |
| import time | |
| z = u'ズン' |
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 doPost(e) { | |
| var result = { text:':thinking_face:'}; | |
| switch(e.parameter.command){ | |
| case '/ranking': result = ranking(e.parameter.text); break; | |
| case '/statics': result = statics(e.parameter.text); break; | |
| } | |
| return ContentService.createTextOutput(JSON.stringify(result)).setMimeType(ContentService.MimeType.JSON); | |
| } |