Skip to content

Instantly share code, notes, and snippets.

View gurleensethi's full-sized avatar
Writing Code

Gurleen Sethi gurleensethi

Writing Code
View GitHub Profile
# Kubectl
kubectl get nodes
kubectl get pods
kubectl describe <resource> <name>
kubectl run <name> --image=<image_from_docker> --port=<port> --generator=run/v1
kubectl expose rc <name> --type=LoadBalancer --name=<service_name>
kubectl get replicationcontrollers
kubectl scale rc <name> --replicas=<number>
kubectl get pods -o wide
kubectl describe pod <name>

Here are some resources to get started with Dart & Flutter:

Dart:

  • Dart Language Tour: Provides a nice overview of the language, a good place to start learning Dart.

Flutter:

  • Flutter for Android Developers: This article tries to map the concepts of Android Development to Flutter development, so that you can understand and relate concepts quickly.
  • Widget of the Week: Playlist on Youtube. Contains 1-2 mins long videos on various Widgets.
@gurleensethi
gurleensethi / HashTagColorUtility.java
Created February 2, 2017 08:01
Change the color of all the hash-tags(#) to a specified color in android
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.ForegroundColorSpan;
/**
* Created by gurleensethi on 02/02/17.
*/
public class HashTagColorUtility {
private static HashTagColorUtility sInstance;