This file contains 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
flutter pub add logger | |
flutter pub add go_router | |
flutter pub add freezed_annotation dev:build_runner dev:freezed json_annotation dev:json_serializable | |
flutter pub add flutter_hooks hooks_riverpod dev:custom_lint dev:riverpod_lint riverpod_annotation dev:build_runner dev:riverpod_generator | |
flutter pub add firebase_core firebase_auth firebase_auth_ui google_fonts firebase_analytics cloud_firestore |
This file contains 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> | |
/// Gets the coordinates of the intersection point of two lines. | |
/// </summary> | |
/// <param name="A1">A point on the first line.</param> | |
/// <param name="A2">Another point on the first line.</param> | |
/// <param name="B1">A point on the second line.</param> | |
/// <param name="B2">Another point on the second line.</param> | |
/// <param name="found">Is set to false of there are no solution. true otherwise.</param> | |
/// <returns>The intersection point coordinates. Returns Vector2.zero if there is no solution.</returns> | |
public Vector2 GetIntersectionPointCoordinates(Vector2 A1, Vector2 A2, Vector2 B1, Vector2 B2, out bool found) |
This file contains 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 UnityEngine; | |
using System.Collections; | |
public class Test : MonoBehaviour | |
{ | |
IEnumerator _routine; | |
IEnumerator routine { get { return _routine ?? (_routine = RoutineImpl()); } } | |
void OnEnable() | |
{ |
This file contains 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
find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.cs" ")" -print0 | xargs -0 wc -l |
This file contains 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
TEXT = 'ここに文章を挿入。ここに文章を挿入。' | |
p TEXT.scan(/\p{Han}/).sort.uniq |
This file contains 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
require 'uri' | |
require 'open-uri' | |
require 'Nokogiri' | |
uri = URI.escape('https://ja.wikipedia.org/wiki/常用漢字一覧') | |
doc = Nokogiri::HTML(open(uri).read) | |
arr = [] | |
doc.xpath('/html/body//table[@class="sortable wikitable"][1]/tr').each_with_index do |node,i| | |
next if i == 0 |
This file contains 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
require 'open-uri' | |
require 'nokogiri' | |
doc = Nokogiri::HTML(open('http://www.mext.go.jp/b_menu/hakusho/nc/k19811001001/k19811001001.html')) | |
all_words = [] | |
doc.xpath("/html/body//div[@class='oldFormat']//table/tr").each do |tr| | |
line = tr.xpath("./td[3]").text.strip | |
words = line.split(',') | |
all_words += words |