Skip to content

Instantly share code, notes, and snippets.

Chetan Bhasin ChetanBhasin

View GitHub Profile

Docker Cheat Sheet

Why Docker

"With Docker, developers can build any app in any language using any toolchain. “Dockerized” apps are completely portable and can run anywhere - colleagues’ OS X and Windows laptops, QA servers running Ubuntu in the cloud, and production data center VMs running Red Hat.

Developers can get going quickly by starting with one of the 13,000+ apps available on Docker Hub. Docker manages and tracks changes and dependencies, making it easier for sysadmins to understand how the apps that developers build work. And with Docker Hub, developers can automate their build pipeline and share artifacts with collaborators through public or private repositories.

Docker helps developers build and ship higher-quality applications, faster." -- What is Docker

ChetanBhasin / JSONStringify.swift
Created Nov 29, 2018
JSON Stringify in Swift 4
View JSONStringify.swift
func jsonStringify(value: JSON) -> String {
let returnable = ""
if let data = try? value, options: JSONSerialization.WritingOptions.sortedKeys) {
if let string = NSString(data: data, encoding: String.Encoding.utf8.rawValue) {
return string as String
return returnable
View Penn Treebank II
You can’t perform that action at this time.