Download the user.js file and then drop it into your chrome://extensions/ tab and enjoy the button on your gists!
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
<%@ tag body-content="empty" trimDirectiveWhitespaces="true"%> | |
<%@ attribute name="day" required="true" type="String"%> | |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | |
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
<fmt:parseNumber var="n" type="number" value="${day}" /> | |
${day} | |
<sup> | |
<c:choose> | |
<c:when test="${n >= 11 && n <= 13}">th </c:when> |
This file contains 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.UUID; | |
/** | |
* @author lekshmana.murugan | |
* @since 2014-09-11 This RandomIDGeneration class Generate Unique id using UUID class is in | |
* util pacakage in Java Since version 1.5 | |
* @see http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html | |
*/ | |
public class RandomIDGeneration { | |
/** |
This file contains 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
1. Click 'Ctrl+F3', then 'Name Manager' Box Appears | |
2. Click 'New' (use shortcut key Alt+N) | |
3. Then, 'New name' box appears | |
4. Enter 'Name' as "CountSheets"(Your choice) | |
5. Enter 'Refer To' as =GET.WORKBOOK(1)&T(NOW()) | |
6. Click OK | |
7. It takes you to the 'Name Manager' box again (you can find the Defined Name in the list) | |
8. Click 'Close' | |
9. Come to the Cell, where you want to enter the Formula |
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
- 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 file contains 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> |
This file contains 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 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} |
OlderNewer