Skip to content

Instantly share code, notes, and snippets.

View GnaneshKunal's full-sized avatar
🦇

Gnanesh GnaneshKunal

🦇
View GitHub Profile
@GnaneshKunal
GnaneshKunal / go-ts-fmt.el
Created December 25, 2022 06:29
Plug go-mode's gofmt to the new go-ts-mode (built-in go mode which uses tree-sitter) in emacs
;; Copyright of the below functions belong to the author/contributors of https://github.com/dominikh/go-mode.el.
;; Usage: Plug go-mode's gofmt to the new go-ts-mode (built-in go mode which uses tree-sitter) in emacs.
;; go-ts-mode landed on emacs `master` branch on 2022-12-16.
(defcustom gofmt-command "gofmt"
"The 'gofmt' command.
Some users may replace this with 'goimports'
from https://golang.org/x/tools/cmd/goimports."
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
(setq package-check-signature nil)
(eval-and-compile
@GnaneshKunal
GnaneshKunal / noMercy.scala
Last active September 24, 2017 19:11
No Mercy WWE
import org.apache.log4j._
import org.apache.spark._
object noMercy extends App {
Logger.getLogger("org").setLevel(Level.ERROR)
val sc = new SparkContext("local[*]", "No Mercy Prediction")
val noMercyResults = sc.textFile("/home/monster/git/scala-spark/src/main/resources/nomercy.txt")