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
List = function(arr){ | |
if( arr !== undefined){ | |
if( arr instanceof Array == false){ | |
for(var i in arguments){ | |
this.push( arguments[i] ); | |
} | |
}else{ | |
for(var i in arr){ | |
this.push( arr[i] ); | |
} |
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
→ rails server | |
/Users/dwelch/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>': | |
It seems your ruby installation is missing psych (for YAML output). | |
To eliminate this warning, please install libyaml and reinstall your ruby. | |
**Notice: C extension not loaded. This is required for optimum MongoDB Ruby driver performance. | |
You can install the extension as follows: | |
gem install bson_ext | |
If you continue to receive this message after installing, make sure that the |
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
<fmt:formatDate value="${dateVariable}" pattern="${messages['jQueryDatePostPattern']}" var="printDate"/> | |
<a href="<c:url value="/worker/search/saved/${savedSearch.id}/pdf"> | |
<c:param name="printDate" value="${printDate}"/> | |
</c:url>" class="sprite prefix printer button"><spring:message code="generic.print"/></a> |
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 co.ntier.selenium; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.ie.InternetExplorerDriver; | |
import org.openqa.selenium.support.ui.ExpectedCondition; |
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 foobar; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.ui.Model; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
@Controller | |
public class TestController { | |
@RequestMapping("/test/foobar") |
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
private String filterParams(WorkerSearchParamsDto searchParamsDto, Locale locale) { | |
StringBuilder builder = new StringBuilder(); | |
SimpleDateFormat date = new SimpleDateFormat(getMessage("datePattern", locale)); | |
if(searchParamsDto.getActive() != null && searchParamsDto.getActive()) { | |
builder.append(TagUtils.concat(getMessage("search.status", locale), getMessage(WorkerStatus.ACTIVE.getLocalKey(), locale), ": ")); | |
} else if(searchParamsDto.getActive() != null && searchParamsDto.getActive()) { | |
builder.append(TagUtils.concat(getMessage("search.status", locale), getMessage(WorkerStatus.INACTIVE.getLocalKey(), locale), ": ")); | |
} | |
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
# case insensitive and recursive by default | |
-r | |
# follow symlinks | |
# --follow | |
# Smart Case | |
--smart-case | |
# Set pager to more (much better than piping) |
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.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import javax.inject.Inject; | |
import org.springframework.http.HttpHeaders; | |
import org.springframework.http.HttpOutputMessage; | |
import org.springframework.http.MediaType; |
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 co.ntier.mojo.first_mojo; | |
import java.io.File; | |
import org.apache.catalina.Context; | |
import org.apache.catalina.Manager; | |
import org.apache.catalina.startup.Tomcat; | |
import org.apache.maven.plugin.AbstractMojo; | |
import org.apache.maven.plugin.MojoExecutionException; | |
import org.apache.maven.plugin.logging.Log; |
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
function f(){ console.log(arguments.length, " => ", arguments); } | |
f() | |
// 0 " => " [] | |
f('a', 'b') | |
// 2 " => " ["a", "b"] | |
f(['a', 'b', 'c']) | |
// 1 " => " [ Array[3] ] |