Skip to content

Instantly share code, notes, and snippets.

View ravisharmaa's full-sized avatar
🌍
मदेक वर्ज किमिदं व्रतं ते ?

Ravi Bastola ravisharmaa

🌍
मदेक वर्ज किमिदं व्रतं ते ?
View GitHub Profile
<?php
interface HasTitle
{
public function getTitle(): string;
}
// The usage of abstract class is to force the order related information.
// It can be questioned in the sense that, do we really want to enfore
// the orders to confirm to a super type BaseOrder? In my thinking,
# Laravel developer task
The entire task assignment should take no longer than 4 hours to complete. It's fine to leave some rough edges. Just try to showcase your skills to the best of your ability.
## Background / Intro
Subscriber management is one of the the key features in MailerLite. There are a few different ways for subscribers to reach your mailing list:
* Adding subscribers directly through our iOS or web applications
* Web forms and a landing pages
import SwiftUI
// MARK: Multiple sheets cases.
enum SheetTest: Identifiable {
var id: UUID {
return UUID()
}
case sheet1(value: Int)
var value: Int {
@ravisharmaa
ravisharmaa / MultipleSheets.swift
Created October 21, 2021 00:47
MultipleSheets
import SwiftUI
// MARK: Multiple sheets cases.
enum SheetTest: Identifiable {
var id: UUID {
return UUID()
}
case sheet1(value: Int)
var value: Int {
import SwiftUI
// MARK: Multiple sheets cases.
enum SheetTest: Identifiable {
var id: UUID {
return UUID()
}
case sheet1(value: Int)
var value: Int {
@ravisharmaa
ravisharmaa / DemoSheet.swift
Last active October 21, 2021 00:32
Sheet Demo
import SwiftUI
struct SheetView: View {
@State private var showSheet: Bool = false
var body: some View {
Button {
showSheet.toggle()
} label: {
SET ansi_nulls ON
go
SET ansi_nulls ON
go
-- =============================================
-- Author: Shyam Mishra
import UIKit
import Combine
import MapKit
class VehiclesBrowserViewController: UIViewController {
// MARK:- Properties
// subscription to hold on to the publisher.
var subscription: Set<AnyCancellable> = []
@ravisharmaa
ravisharmaa / Section.h
Created November 1, 2020 10:49
Hashable Sections
//
// Section.h
// ObjectiveCApp
//
// Created by Ravi Bastola on 11/1/20.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@ravisharmaa
ravisharmaa / MultipleSectionsCollectionView.h
Created November 1, 2020 10:33
CompositionalLayoutObjectiveC
//
// MultipleSectionsViewController.h
// ObjectiveCApp
//
// Created by Ravi Bastola on 11/1/20.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN