Skip to content

Instantly share code, notes, and snippets.

View onmyway133's full-sized avatar
😇
What you don't know is what you haven't learned

Khoa onmyway133

😇
What you don't know is what you haven't learned
View GitHub Profile
@onmyway133
onmyway133 / curl.md
Created April 24, 2016 19:02 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@onmyway133
onmyway133 / arm64-apple-ios.swiftinterface
Created June 9, 2022 18:46
arm64-apple-ios16.swiftinterface
This file has been truncated, but you can view the full file.
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.7 (swiftlang-5.7.0.113.10 clang-1400.0.16.2)
// swift-module-flags: -target arm64-apple-ios16.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Osize -library-level api -library-level api -module-name SwiftUI
// swift-module-flags-ignorable: -user-module-version 4.0.66.3.102
import Accessibility
import Combine
import CoreData
import CoreFoundation
@_exported import CoreGraphics
@_exported import CoreTransferable
@onmyway133
onmyway133 / arm64-apple-ios.swiftinterface
Last active June 9, 2022 18:46
arm64-apple-ios15.swiftinterface
This file has been truncated, but you can view the full file.
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.35 clang-1316.0.20.9)
// swift-module-flags: -target arm64-apple-ios15.5 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Osize -library-level api -library-level api -module-name SwiftUI
// swift-module-flags-ignorable: -user-module-version 3.5.2
import Accessibility
import Combine
import CoreData
import CoreFoundation
import CoreGraphics
import Darwin
@onmyway133
onmyway133 / LayoutInSwiftUI.swift
Created June 8, 2022 09:34
LayoutInSwiftUI.swift
import SwiftUI
import Combine
struct ContentView: View {
var body: some View {
VStack {
Section {
list
.frame(height: 150)
} header: {
@onmyway133
onmyway133 / ShapeBuilder.swift
Last active April 4, 2022 05:25
ShapeBuilder
import SwiftUI
struct ContentView: View {
var value: Int = 0
var body: some View {
Text("Hello")
.padding()
.background(.orange)
.clipShape(shape)
@onmyway133
onmyway133 / .gitignore
Last active October 27, 2021 16:25
AutoLayoutConverter - 🐜 Convert Cartography to NSLayoutAnchor
.DS_Store
.tags*
/.idea/
/build/
/dist/
/external_binaries/
/out/
/vendor/download/
/vendor/debian_jessie_amd64-sysroot/
/vendor/debian_jessie_arm-sysroot/
@onmyway133
onmyway133 / Install pip
Last active August 18, 2021 20:11
Install pip
sudo easy_install pip
@onmyway133
onmyway133 / ThrottleHandler.swift
Created October 19, 2015 09:16
ThrottleHandler.swift
import Foundation
class ThrottleHandler {
let interval: NSTimeInterval
let block: dispatch_block_t
private var source: dispatch_source_t?
init(interval: NSTimeInterval, block: dispatch_block_t) {
self.interval = interval
import React from 'react'
import FBSDK from 'react-native-fbsdk'
const { LoginButton, AccessToken, GraphRequest, GraphRequestManager } = FBSDK
class FacebookService {
constructor() {
this.requestManager = new GraphRequestManager()
}
import UIKit
class FloatingButtonController: UIViewController {
private(set) var button: UIButton!
required init?(coder aDecoder: NSCoder) {
fatalError()
}