Skip to content

Instantly share code, notes, and snippets.

View ashishdotme's full-sized avatar

Ashish Patel ashishdotme

View GitHub Profile
@ashishdotme
ashishdotme / LazyVIM.md
Created November 19, 2024 13:31 — forked from danielkec/LazyVIM.md
LazyVIM

Default shortcuts

Ctrl+h        select file tree
Ctrl+l        select file editor
Shift+h       left editor tab
Shift+l       right editor tab
Alt+j         move current line up
Alt+k         move current line down
double space  filename search(telescope) - `Ctrl+d` and `Ctrl+u` to scroll preview
@ashishdotme
ashishdotme / 🎬 Watching
Last active September 2, 2025 09:41
Watching
Coherence - April 4, 2025
Sinister - April 4, 2025
Calibre - March 10, 2025
The Dry - March 9, 2025
Tumbbad - February 23, 2025
Office Space - February 17, 2025
The Father - January 7, 2025
Leave the World Behind - December 9, 2024
The Exorcist - December 2, 2024
Let Me In - December 1, 2024
Tum Kya Mile (From "Rock… - August 31, 2025
Hasi - Female Version - August 31, 2025
Pal Pal Teri Yaad - August 30, 2025
Saibo - August 27, 2025
Aankhon Se Batana - August 25, 2025
Aaj Ki Raat (From "Stree… - August 25, 2025
Paro - August 25, 2025
Maula Mere Maula - August 25, 2025
Subhanallah - August 25, 2025
Jo Tum Mere Ho - August 25, 2025
{
"swagger": "2.0",
"info": {
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"version": "1.0.5",
"title": "Swagger Petstore",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"email": "apiteam@swagger.io"
},
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"eventhubs_1_Connection_Name": {
"type": "string",
"defaultValue": "eventhubs"
},
"eventhubs_1_Connection_DisplayName": {
"type": "string",
@ashishdotme
ashishdotme / gist:1b11969d142089ca3e227d1eaf0a371e
Created September 10, 2019 09:25
Remove double quotes from JSON keys
jsonResponse.replace(/"(\w+)"\s*:/g, '$1:');
@ashishdotme
ashishdotme / gist:75d1e04bbdc1441d245c776e356f0415
Created September 10, 2019 09:25
Remove double quotes from JSON keys
jsonResponse.replace(/"(\w+)"\s*:/g, '$1:');
@ashishdotme
ashishdotme / BaseController.swift
Created June 29, 2017 08:19
Search Bar and right navigation button
searchBar = UISearchBar()
searchBar.delegate = self
searchBar.autoresizingMask = [.flexibleBottomMargin, .flexibleWidth]
searchBar.sizeToFit()
var searchBarFrame = searchBar.frame
searchBarFrame.size.width = view.bounds.size.width
searchBar.frame = searchBarFrame
searchBar.tintColor = UIColor.black
searchBar.barStyle = UIBarStyle.black
searchBar.placeholder = "Search"
@ashishdotme
ashishdotme / SpeechView.swift
Last active June 29, 2017 08:15
Custom view for Speech Recognition
view.addSubview(speechview)
overlayImageView.layer.cornerRadius = 5.2
overlayImageView.layer.masksToBounds = true
// Overlay View
overlayImageView.backgroundColor = UIColor.white
// Stop Button
stopButton.setTitle("Stop", for: .normal)
stopButton.backgroundColor = appThemeColor()
@ashishdotme
ashishdotme / ViewController.swift
Created January 5, 2017 12:05
Reload tableview when data is loaded
DispatchQueue.main.async(execute: { () -> Void in
self.tableView.reloadData()
})