Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Teaching about cross platform mobile app development and A.I

Teerasej Jiraphatchandej teerasej

🎯
Teaching about cross platform mobile app development and A.I
View GitHub Profile
@teerasej
teerasej / main.dart
Created Apr 8, 2021
Show a toast message in Flutter App
View main.dart
Fluttertoast.showToast(
msg: "This is Center Short Toast",
);
@teerasej
teerasej / launch.json
Last active Feb 27, 2021
VSCode's launch.json that can be used in debugging deno RESTful web api
View launch.json
{
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Debug Deno",
"program": "index.ts",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno",
"runtimeArgs": [
@teerasej
teerasej / main.dart
Created Feb 15, 2021
Form example with saved and validation
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@teerasej
teerasej / info.xml
Created Feb 4, 2021
iOS Camera Permission on info.plist
View info.xml
<key>NSCameraUsageDescription</key>
<string>Can I use the camera please?</string>
<key>NSMicrophoneUsageDescription</key>
<string>Can I use the mic please?</string>
@teerasej
teerasej / LineLogin.swift
Created May 25, 2020
A part of capacitor plugin implementation for line login on iOS
View LineLogin.swift
import Foundation
import Capacitor
import LineSDK
/**
* Please read the Capacitor iOS Plugin Development Guide
* here: https://capacitor.ionicframework.com/docs/plugins/ios
*/
@objc(LineLogin)
public class LineLogin: CAPPlugin {
View react-counter.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https:/unpkg.com/react@16.7.0/umd/react.development.js"></script>
<script src="https:/unpkg.com/react-dom@16.7.0/umd/react-dom.development.js"></script>
<script src="https:/unpkg.com/@babel/standalone/babel.min.js"></script>
<title>Nextflow React Playground</title>
View detail_page.dart
import 'package:contact_app/contact_model.dart';
import 'package:flutter/material.dart';
class DetailPage extends StatelessWidget {
Result contact;
DetailPage(this.contact);
View main.dart
import 'package:flutter/material.dart';
import 'detail_page.dart';
import 'contact_model.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
View contact_model.dart
// To parse this JSON data, do
//
// final randomUserResult = randomUserResultFromJson(jsonString);
import 'dart:convert';
class RandomUserResult {
List<Result> results;
Info info;
View oracle-nuget.md

ติดตั้ง ODP.NET (Oracle Data Provider)​ ผ่าน NuGet

  1. คลิกขวาที่โปรเจค
  2. จากเมนู เลือก Manage NuGet Package
  3. เลือก Tab Browse
  4. ค้นหา และติดตั้ง 2 Package
  • ODP.NET, Managed Driver (Oracle.ManagedDataAccess)
  • Entity Framework assembly for Code First and Entity Framework 6 or higher use with ODP.NET, Managed Driver (Oracle.ManagedDataAccess.EntityFramework)