- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>", "*"); |
####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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 + "")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
- Select a particular experience to pursue.
- Pursue that experience to completion. (Achievement unlocked!)
- Reflect on that experience. Really soak it in. Maybe a blog post would be in order?
- Return to Step 1, this time selecting a new experience.
This gist is a fork of the gist from this blog post.
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
Download the user.js file and then drop it into your chrome://extensions/ tab and enjoy the button on your gists!