Skip to content

Instantly share code, notes, and snippets.

View SachinR90's full-sized avatar
💭
I may be slow to respond.

Sachin Rao SachinR90

💭
I may be slow to respond.
  • Coditas
  • Pune
View GitHub Profile
@jonathan-beebe
jonathan-beebe / negotiating used car from dealer.md
Last active January 8, 2021 06:10
Negotiating a cash purchase of used car from a dealer

Negotiating a used car purchase from a dealer

(assuming you are paying cash)

Preparation

  • Arm yourself with information.
    • Kelly blue book value. Helps inform what a reasonable price will be.
    • Black book value. Helps define the dealer’s bottom price, what they would acquire the car for in a trade-in.
  • Common car problems and their cost.
@amysimmons
amysimmons / js-tricky-bits.md
Last active October 30, 2024 11:38
Understanding closures, callbacks and promises in JavaScript

#Understanding closures, callbacks and promises

For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.

10 months into my full-time dev career, and I would struggle to explain these words to a peer.

So I decided it was time to face my fears, and try to get my head around each concept.

Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.

@praeclarum
praeclarum / ArrayDiff.swift
Last active January 8, 2021 06:10
A generic diffing operation that can calculate the minimal steps needed to convert one array to another. It can be used to generate standard diffs, or it can be used more creatively to calculate minimal UI updates.
//
// ArrayDiff.swift
//
// Created by Frank A. Krueger on 6/30/15.
// Copyright © 2015 Krueger Systems, Inc. All rights reserved.
// License: MIT http://opensource.org/licenses/MIT
//
import Foundation
@nicklockwood
nicklockwood / gist:10399979
Last active March 14, 2019 13:08
How to put a fixed search bar in a UITableViewController
#import "TableViewController.h"
@interface TableViewController ()
@property (nonatomic, strong) UISearchBar *searchBar;
@end
@implementation TableViewController