Skip to content

Instantly share code, notes, and snippets.

//
// ContentView.swift
// sunshine
//
// Created by Arvind Ravi on 28/04/2021.
//
import ComposableArchitecture
import SwiftUI
protocol Publisher {
associatedtype Output
associatedtype Failure
func subscribe<S: Subscribe>(_ subscribe: S) {}
}

Keybase proof

I hereby claim:

  • I am arvindravi on github.
  • I am arvind (https://keybase.io/arvind) on keybase.
  • I have a public key ASDFx4RVJc9r55Bgf_nH-H00GMUVRIsJZYC6C50kgItJvgo

To claim this, I am signing this object:

@arvindravi
arvindravi / movies.json
Created November 8, 2017 16:16
movies.json | Networking Layer with Swift
[
{
"title": "Pulp Fiction",
"actors": ["Samuel L Jackson", "John Travolta"]
},
{
"title": "Ocean's Eleven",
"actors": ["George Clooney", "Brad Pitt", "Matt Damon"]
},
{
//
// Plane.swift
// TextAR
//
// Created by Arvind Ravi on 23/08/17.
// Copyright © 2017 Arvind Ravi. All rights reserved.
//
import Foundation
import ARKit
// This file was automatically generated and should not be edited.
import Apollo
/// Autogenerated input type of CreateUserMutation
public struct CreateUserMutationInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
public init() {
}
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:development_products) instead. (called from connection at /Users/arvindravi/Projects/Work/Slyk/Backend/slyk/db/migrate/20160613061736_create_products.rb:3)
DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:development_products) instead. (called from connection at /Users/arvindravi/Projects/Work/Slyk/Backend/slyk/db/migrate/20160613061736_create_products.rb:3)
(10.0ms) CREATE TABLE "products" ("id" serial primary key, "title" character varying, "image_link" character varying, "description" character varying, "price" integer, "sale_price" integer, "currency" character varying, "brand" character varying, "small_image_link" character varying, "gender" character varying, "product_category" character varying, "sub_category" character varying, "created_at" timestamp NOT NULL
$ rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
== 20160613061452 CreateTags: migrating =======================================
-- create_table(:tags)
-> 0.0208s
#!/usr/bin/env ruby
require 'csv'
require 'optparse'
require 'ostruct'
# Opt Parser
options = OpenStruct.new
OptionParser.new do |opts|
opts.banner = "Usage: ./test.rb [options]"

Keybase proof

I hereby claim:

  • I am arvindravi on github.
  • I am arvind (https://keybase.io/arvind) on keybase.
  • I have a public key whose fingerprint is 00E3 0A76 0B44 330D B5E8 1B13 DF65 FCA2 1D35 A6D2

To claim this, I am signing this object: