Skip to content

Instantly share code, notes, and snippets.

View satishbabariya's full-sized avatar

Satish Babariya satishbabariya

View GitHub Profile
@satishbabariya
satishbabariya / activity.md
Last active July 29, 2020 03:03
activity

🎉 Merged PR #15 in restyjs/postman 🎉 Merged PR #34 in restyjs/resty 🗣 Commented on #12568 in microsoft/vcpkg ❗️ Opened issue #12568 in microsoft/vcpkg 🎉 Merged PR #10 in restyjs/example

@satishbabariya
satishbabariya / gist:d44e8ba1dfd8e4897219f3f9312ed923
Created July 19, 2020 06:49 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@satishbabariya
satishbabariya / rx.swift
Last active March 17, 2023 05:38
Simple RxSwift API Call
func getTodos() -> Observable<Any> {
// If No Internet Connection Throws error
// if Reachability()!.connection == .none {
// // !!!! return data form cache here
// return Observable.error(RESTError(message: "No internet connection.", type: .warning))
// }
return Observable.create { (observer) -> Disposable in
var supabase = SupabaseClient(supabaseUrl: "", supabaseKey: "")
supabase.auth.signIn(email: "sample@mail.com", password: "secret") { result in
switch result {
case let .success(session):
print(session)
case let .failure(error):
print(error.localizedDescription)
}
}
@satishbabariya
satishbabariya / supercharge api calls with codable and generics.md
Created October 17, 2021 14:34
supercharge api calls with codable and generics

supercharge api calls with codable and generics

Codeables and Generics are very powerful parts of Swift. They are pretty, simple, and very powerful!

If you aren't familiar with them, I encourage you to take a look! You can find detailed information about Generics and Codable here. [Generics]https://docs.swift.org/swift-book/LanguageGuide/Generics.html and [Codable]https://developer.apple.com/documentation/swift/codable

Take this example: you have to implement an API in your app. No big deal, right? Almost anybody can do that! Let me add the pod for Alamo... no, we're not taking that route, we're going to implement everything ourselves!

package main
import (
"fmt"
"time"
"github.com/piquette/finance-go/quote"
)
func main() {
@satishbabariya
satishbabariya / main.go
Created December 7, 2021 11:44
supabase + gorush notification middleware service
package main
import (
"fmt"
"net/http"
"os"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/sirupsen/logrus"

Resty.js

Alt


SwiftyContacts

Alt

@satishbabariya
satishbabariya / React Native Developer Roadmap.md
Last active January 22, 2024 05:18
React Native Developer Roadmap