Skip to content

Instantly share code, notes, and snippets.

View treastrain's full-sized avatar
🏠
Learning at home

treastrain / Tanaka Ryoga treastrain

🏠
Learning at home
View GitHub Profile
@noppefoxwolf
noppefoxwolf / project.yml
Created October 22, 2020 16:48
project.yml
name: Broadcast
configs:
Debug: debug
Release: release
targetTemplates:
Project:
platform: iOS
deploymentTarget: "14.0"
settings:
base:
@navsing
navsing / iosSplash.swift
Created August 20, 2020 23:30
Recreate iOS style Welcome Screen to any app in 3 minutes
//
// Welcome.swift
// Playground
//
// Created by Nav Singh on 8/20/20.
//
import SwiftUI
struct Welcome: View {
@tdcosta100
tdcosta100 / WSL2GUIXvnc-en.md
Last active May 21, 2024 20:05
A tutorial to use GUI in WSL2 replacing original XServer by Xvnc, allowing WSL to work like native Linux, including login screen

WSL2 with GUI using Xvnc

In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).

The key component we need to install is tigervnc-standalone-server.

For this setup, I will use Ubuntu 20.04 LTS (Focal Fossa, unfortunately 22.04 does not work), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the Sample screenshots section for examples.

So let's go. First, we need a working WSL2 installation.

@hmhmsh
hmhmsh / AdvancedExpressibleByStringLiteral.swift
Last active March 25, 2021 09:53
ExpressibleByStringLiteralの使い所
// 今回は、StringLiteralTypeは、String型でしか使用しないため独自Protocolを定義
protocol CustomExpressibleByStringLiteral: ExpressibleByStringLiteral where StringLiteralType == String {
init(stringLiteral value: Self.StringLiteralType)
}
// UserのIdを表す型
struct UserId {
let value: String
}
@oboenikui
oboenikui / UnivFeliCa.md
Last active November 11, 2023 14:27
大学生協FeliCaの仕様

WHAT IS THIS

大学生協のFeliCa,及び諸大学の学生証一体型FeliCaの仕様
レスポンスについては,特に表記のない限り東北大学のもの (学生証一体型ではない)
断りのない限りコードはビッグエンディアンで通信する (下記のドキュメントに合わせた)
記号と区別するため,アルファベットの大文字表記は記号,小文字表記は16進表記とする

FeliCa自体の仕様については,Sony公式のドキュメントを参考に

System Code

@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active May 24, 2024 17:23
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S