Skip to content

Instantly share code, notes, and snippets.

View sumit-anantwar's full-sized avatar
😇
It's a wonderful world!

Sumit Anantwar sumit-anantwar

😇
It's a wonderful world!
View GitHub Profile
public extension Int {
public var seconds: DispatchTimeInterval {
return DispatchTimeInterval.seconds(self)
}
public var second: DispatchTimeInterval {
return seconds
}
#!/bin/bash
alias k='kubectl'
alias kgn='kubectl get no'
alias kgd='kubectl get deploy'
alias kgp='kubectl get po'
alias kgs='kubectl get svc'
alias kgdsp='kubectl get deploy,svc,po'
alias kdd='kubectl describe deploy'
alias kdp='kubectl describe po'
import Foundation
// Inspired by https://gist.github.com/mbuchetics/c9bc6c22033014aa0c550d3b4324411a
struct JSONCodingKeys: CodingKey {
var stringValue: String
init?(stringValue: String) {
self.stringValue = stringValue
}

Keybase proof

I hereby claim:

  • I am sumit-anantwar on github.
  • I am sumit_anantwar (https://keybase.io/sumit_anantwar) on keybase.
  • I have a public key ASBRIlTSd8coirxviPQ_8gunatOUc3Q7kcRmAKeUcDW-vQo

To claim this, I am signing this object:

package com.sumitanantwar.savable;
import android.util.Log;
import java.io.Externalizable;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;