Skip to content

Instantly share code, notes, and snippets.

@ChiiAyano
ChiiAyano / myprofile.md
Created July 4, 2023 07:21
連絡先まとめ

各種SNSにおいて何か問題があったとき、他のサービスにいるのが本人であるかを証明するためのポータルとしてGistを用意しました。必要なときにご参照ください。少なくともここにいます。

Mastodon

Bluesky

Twitter

@ChiiAyano
ChiiAyano / test.json
Created November 23, 2022 07:44
失敗例
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChiiAyano
ChiiAyano / road.sql
Created June 22, 2022 14:43
逆ジオコーディングのやつ2
CREATE TABLE `ExpressWay` (
gid serial,
`road_id` varchar(10),
`prefecture_id` varchar(10),
`prefecture` varchar(20),
`road_name` varchar(128),
`road_num` varchar(32),
`popular_road_name` varchar(128));
ALTER TABLE `ExpressWay` ADD PRIMARY KEY (gid);
ALTER TABLE `ExpressWay` ADD COLUMN geom MULTIPOLYGON REF_SYSTEM_ID=0;
@ChiiAyano
ChiiAyano / road.json
Last active June 22, 2022 14:28
逆ジオコーディングのやつ
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChiiAyano
ChiiAyano / heyjude.md
Created February 15, 2022 07:33
Hey Jude
graph TD;
  A[hey jude]-->B[don't]-->C[be afraid];
  B-->E[make it bad];
  B-->F[let me down];
  C-->G[you were made to go out and get her];
  E-->H[take a sad song and make it better];
  F-->I[you habe found her, now go and get her];
  G-->J[remember to];
 H-->J;
@ChiiAyano
ChiiAyano / MyMediaPlayer.cs
Last active October 6, 2019 03:45
MediaDataStream を使う
public class MyMediaPlayer
{
private Android.Media.MediaPlayer MediaPlayerInstance { get; set; }
public void CreateMediaPlayer()
{
this.MediaPlayerInstance = new Android.Media.MediaPlayer();
}
public void Play(System.IO.Stream stream)
<Page
x:Class="App1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:notv1709="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractNotPresent(Windows.Foundation.UniversalApiContract, 5)"
xmlns:v1709="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 5)"
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"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
@ChiiAyano
ChiiAyano / MainPage.xaml.cs
Last active March 5, 2018 14:14
MapControl の表示を良い感じにするやつ
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
}
protected override void OnNavigatedTo(NavigationEventArgs e)
{
this.Map.Loaded += Map_Loaded;
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Enumeration;
using Windows.Devices.Geolocation;
using Windows.Devices.SerialCommunication;
@ChiiAyano
ChiiAyano / MainPage.xaml.cs
Created August 2, 2017 14:25
AccessViolationException で死ぬのを回避できたコード
private string text =
"<Canvas xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" Height=\"99.681\" Width=\"111.169\">\r\n" +
"</Canvas>";