Skip to content

Instantly share code, notes, and snippets.

Avatar

綾野ちい (Chii Ayano) ChiiAyano

View GitHub Profile
View test.json
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 Jun 22, 2022
逆ジオコーディングのやつ2
View road.sql
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 Jun 22, 2022
逆ジオコーディングのやつ
View road.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View heyjude.md
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 Oct 6, 2019
MediaDataStream を使う
View MyMediaPlayer.cs
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)
View MainPage.xaml
<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 Mar 5, 2018
MapControl の表示を良い感じにするやつ
View MainPage.xaml.cs
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
}
protected override void OnNavigatedTo(NavigationEventArgs e)
{
this.Map.Loaded += Map_Loaded;
View GpsClient.cs
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 Aug 2, 2017
AccessViolationException で死ぬのを回避できたコード
View MainPage.xaml.cs
private string text =
"<Canvas xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" Height=\"99.681\" Width=\"111.169\">\r\n" +
"</Canvas>";
@ChiiAyano
ChiiAyano / MainPage.xaml
Created Aug 2, 2017
AccessViolationException で死ぬコード
View MainPage.xaml
<Page
x:Class="App11.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App11"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">