Skip to content

Instantly share code, notes, and snippets.

View laxman954's full-sized avatar

L∈κshmαηα ρεγυmαl M laxman954

View GitHub Profile
@laxman954
laxman954 / HTMLToSlackMarkUp.java
Created October 8, 2016 19:54
Convert Your HTML Markup to Slack Markup, if found more then add here. #slack #slackmarkup
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class HTMLToSlackMarkUp {
public static Map<String, String> slackMarkUpMap = new HashMap<String, String>() {
{
put("<strong>", "*");
put("</strong>", "*");
@laxman954
laxman954 / commands_useful.md
Created September 28, 2016 11:32
Useful unix commands

Useful Unix Commands

  • find . -type d | grep eclipse - folder or file name contains eclipse
  • sudo lsof -i :80 - search for running port
  • open $TMPDIR../C/ -open temp directory in mac
@laxman954
laxman954 / curl_request_post.md
Last active September 28, 2016 11:24
Make Post Curl Request with Request Body

####Sample Post Request with body

curl -k  -X POST 'https://example.com/path' -d @payload.json -H 'Content-Type:application/json' -H 'request-header'  -D -

  • @payload.json post data to make request
@laxman954
laxman954 / ConvertDecimalToBase2TO9.java
Last active July 29, 2016 07:11
converts number to different base system (base2 - base9)
package com.lp.mysample;
import java.math.BigInteger;
/**
* @author lperumalm This class converts number to different base system (base2
* - base9)
* <h3>Sample Test Data for 16</h3>
* <ul>
* </li>
@laxman954
laxman954 / Triangularnumber.java
Last active July 4, 2016 11:47
Triangle Number
package com.lp.mysample;
import java.math.BigInteger;
/**
* @author lperumalm
* @version 1.0 This class print Triangular number in matrix format, change
* dimension as your need See
* {@link https://www.mathsisfun.com/algebra/triangular-numbers.html} ,
* {@link https://en.wikipedia.org/wiki/Triangular_number}
@laxman954
laxman954 / EulersNumber.java
Created July 1, 2016 13:17 — forked from bchetty/EulersNumber.java
Google Billboard Puzzle
import java.math.BigDecimal;
import java.math.MathContext;
public class EulersNumber {
public static void main(String[] args) {
BigDecimal e = BigDecimal.ONE;
BigDecimal bigDecimal = BigDecimal.ONE;
for(int i=1;i<100;i++) {
bigDecimal = bigDecimal.multiply(new BigDecimal(i * 1.0 + ""));
<div id="css3book">
<div class="book-host">
<div class="book">
<div class="dummy">
<div class="book-cover"></div>
<div class="dummy-page" id="dummy-page0"></div>
<div class="dummy-page" id="dummy-page1"></div>
<div class="dummy-page" id="dummy-page2"></div>
<div class="dummy-page" id="dummy-page3"></div>
<div class="dummy-page" id="dummy-page4"></div>
@laxman954
laxman954 / about.md
Last active August 29, 2015 14:14 — forked from blaix/about.md

Programming Achievements: How to Level Up as a Developer

  1. Select a particular experience to pursue.
  2. Pursue that experience to completion. (Achievement unlocked!)
  3. Reflect on that experience. Really soak it in. Maybe a blog post would be in order?
  4. Return to Step 1, this time selecting a new experience.

This gist is a fork of the gist from this blog post.

@laxman954
laxman954 / about.md
Last active August 29, 2015 14:14 — forked from jasonrudolph/about.md
@laxman954
laxman954 / README.md
Last active August 29, 2015 14:06 — forked from abernier/README.md

Download the user.js file and then drop it into your chrome://extensions/ tab and enjoy the Clone in Desktop button on your gists!