Skip to content

Instantly share code, notes, and snippets.

View up1's full-sized avatar

Somkiat Puisungnoen up1

View GitHub Profile
@up1
up1 / main.dart
Created March 5, 2025 14:19
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@up1
up1 / main.dart
Created March 5, 2025 14:18
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@up1
up1 / main.dart
Created March 5, 2025 14:09
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@up1
up1 / main.dart
Created March 5, 2025 14:08
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@up1
up1 / main.dart
Created March 5, 2025 14:01
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@up1
up1 / main.dart
Created March 5, 2025 14:00
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@up1
up1 / main.dart
Created March 5, 2025 13:58
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@up1
up1 / 1.txt
Created March 2, 2025 04:53
Bun :: Bundle frontend & static sites
$bun upgrade
$bun -version
1.2.4
$bun ./index.html ./about.html
DEV Bun v1.2.4 ready in 22.78 ms
➜ http://localhost:3000/
Routes:
@up1
up1 / 1.txt
Last active February 27, 2025 10:59
Claude code :: Demo
> Add test case with jest and supertest library for app.js in folder __tests__
⏺ I'll create a test case for app.js using Jest and Supertest. First, let's check if these
libraries are installed.
Bash(npm list jest supertest || echo "Libraries not installed")…
╭────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Bash command │
│ │
@up1
up1 / 1.txt
Created February 23, 2025 08:58
PayPay with Rust
// Cargo.toml
[dependencies]
actix-web = "4"
// main.rs
use actix_web::{web, App, HttpResponse, HttpServer};
#[actix_web::main]
async fn main() -> std::io::Result<()> {