Skip to content

Instantly share code, notes, and snippets.

View raghu-icecraft's full-sized avatar

Raghu raghu-icecraft

  • India
View GitHub Profile
@raghu-icecraft
raghu-icecraft / ScalaHBaseExample.scala
Created July 20, 2019 16:10 — forked from ishassan/ScalaHBaseExample.scala
A hello world example about connecting Scala to HBase
//CHECK ishassan/build.sbt as well
import org.apache.hadoop.hbase.client._
import org.apache.hadoop.hbase.util.Bytes
import org.apache.hadoop.hbase.{CellUtil, HBaseConfiguration, TableName}
import org.apache.hadoop.conf.Configuration
import scala.collection.JavaConverters._
object ScalaHBaseExample extends App{
def printRow(result : Result) = {
@raghu-icecraft
raghu-icecraft / ansible-summary.md
Created June 6, 2019 20:37 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@raghu-icecraft
raghu-icecraft / JavaScript_TryItWith{}Comparision.html
Created May 23, 2019 19:40
Java script check on comparision with {}
<!-- Comment
1. {} == 3 or {} === 3 comparision when tried in any modern browser console yields in error
And the same comparision when done using if block works well and goes to else part of the code.
2. Further, use the below html file to understand the comparision like in Runtime.
Sample output:
display x:
21
Code is edited after initial reference from https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_oper_add
-->
@raghu-icecraft
raghu-icecraft / MaxSubArrayWithSum.java
Created October 24, 2018 02:20
In given set of Integers, Find Max sub array and its sum. (Implemented in Java)
/*
Modified Kadane's algortihm
1. http://www.techiedelight.com/maximum-subarray-problem-kadanes-algorithm/
2. compiled and tested using -- https://www.tutorialspoint.com/compile_java_online.php
TODO
a. For all -ves, print the max sub array properly
b. While the output of Max sub array, do the formatting change (extra , at the start)
*/
/* Sample input and output