Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Focusing

Dbank daisukenagata

:octocat:
Focusing
View GitHub Profile
@daisukenagata
daisukenagata / rideonthekeyboard.dart
Created Jan 17, 2022
Whenever I called Scaffold with Scaffold, I confirmed that Tab was on the Keyboard.
View rideonthekeyboard.dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
View keyboardandtabbar.dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
@daisukenagata
daisukenagata / AutoOpenTextField.swift
Last active Nov 28, 2021
AutoOpenTextField.swift
View AutoOpenTextField.swift
import SwiftUI
@available(iOS 15.0, *)
struct AutoOpenTextField: View {
@State private var name = ""
@FocusState var isFocused: Bool {
didSet {
DispatchQueue.main.async {
isFocused = true
View welcome.dart
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Welcome to Flutter',
home: new Scaffold(
View Any 型の検索 配列の要素削除
struct Abc1 {
var asd = 1
}
struct Abc2 {
var asd = 2
}
struct Abc3 {
var asd = 3
View Mathematics.swift
import UIKit
class Pointted {
var horizonal: CGPoint
var vertical: CGPoint
init(h: CGPoint, v: CGPoint) {
horizonal = h
vertical = v
}
View Samplem4a.swift
//
// ViewController.swift
// Samplem4a
//
// Created by 永田大祐 on 2021/03/28.
//
import UIKit
import AVFoundation
View Get_DepthData.swift
import UIKit
import AVFoundation
class ViewController: UIViewController, AVCapturePhotoCaptureDelegate {
private var videoPreviewLayer: AVCaptureVideoPreviewLayer?
private var stillImageOutput = AVCapturePhotoOutput()
private var captureSession = AVCaptureSession()
private var capturepDevice: AVCaptureDevice?
private var session: AVCaptureSession?
@daisukenagata
daisukenagata / SimpleDesign_SwiftUI.swift
Last active Mar 22, 2021
SimpleDesign_SwiftUI.swift
View SimpleDesign_SwiftUI.swift
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Color.yellow
.frame(maxWidth: .infinity, maxHeight: .infinity)
VStack {
HStack {
View String_Split.swift
import UIKit
var str = "Hell12o, p3laygrou4.5nd"
var ans = ""
str.forEach { s in
if (s.description.range(of: "[0-9-.]",
options: .regularExpression,
range: nil,
locale: nil) != nil) {