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
| if (IsNotWriting() == true) | |
| { | |
| if ((DataCount = GetTotalRecords("Status")) > LeaveData) | |
| { | |
| using (var sqlc = new SQLiteConnection("Data Source=" + _DBdir + _DBfile)) | |
| { | |
| sqlc.Open(); | |
| using (SQLiteCommand cmd = sqlc.CreateCommand()) | |
| { |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| private void Application_Startup(object sender, StartupEventArgs e) | |
| { | |
| Settings.Initialize(); | |
| if (String.IsNullOrEmpty(Settings.Language) == false) | |
| { | |
| SetCurrentCulture(Settings.Language); | |
| } | |
| else | |
| { |
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
| >>>>>>++++++++++[<<<<<<+++++++++++++>+++++++++++++>++++++>+++++++>++++++++++>+++++++++++++++>-]<<<<<<->+>+++++>+++>-->--->++++[<<<<<.>.<.>>>>.<<<<.>>>.<<<<.>>>.>>>-] |
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.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.ComponentModel; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using Livet; | |
| using Livet.Commands; |
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
| public class AutoScrollBehavior : Behavior<ScrollViewer> | |
| { | |
| private ScrollViewer _scrollViewer; | |
| private double _beforeHeight; | |
| protected override void OnAttached() | |
| { | |
| base.OnAttached(); | |
| _scrollViewer = AssociatedObject; |
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.Collections; | |
| using System.Collections.Generic; | |
| public static class Benri | |
| { | |
| public static class StdIn | |
| { | |
| public static int[] ReadStdIn() | |
| { |
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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <ThemeProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StarryEyes.Settings.Themes"> | |
| <ProfileVersion>1</ProfileVersion> | |
| <GlobalFont> | |
| <FontFamilyName>メイリオ</FontFamilyName> | |
| <FontSize>12</FontSize> | |
| </GlobalFont> | |
| <BaseColor> | |
| <BackgroundColor>#FFFAFCFC</BackgroundColor> | |
| <ForegroundColor>#FF505050</ForegroundColor> |
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
| /// <summary> | |
| /// System.Random と同じような感じで使える Xorshift | |
| /// </summary> | |
| class Xorshift | |
| { | |
| ulong x = 123456789, y = 362436069, z = 521288629, w; | |
| /// <summary> | |
| /// マジックナンバーによる固定のシード値を使用して、 Xorshift インスタンスを初期化します | |
| /// </summary> |
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.Runtime.InteropServices; | |
| namespace GomokuCharhan.Helpers | |
| { | |
| static class DebugHelper | |
| { | |
| [Conditional("DEBUG")] | |
| [DllImport("Kernel32")] |