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
| # Remove the file metadata included in TAR files | |
| gci . -r -include ._* -force | remove-item -r -force | |
| # Remove SVN files from a project directory tree | |
| # http://stackoverflow.com/questions/2210193/powershell-how-to-recursivelly-delete-all-svn-files | |
| gci . -r -include .svn -force | remove-item -r -force |
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
| cat error.log | select-string "\tat" -context 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
| package uk.co.diffa.ssltest; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.net.MalformedURLException; | |
| import java.net.URL; | |
| import javax.net.ssl.HttpsURLConnection; |
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
| $(document).on('keyup input paste', 'textarea[maxlength]', function() { | |
| var limit = parseInt($(this).attr('maxlength')); | |
| var text = $(this).val(); | |
| var chars = text.length; | |
| if (chars > limit) { | |
| var new_text = text.substr(0, limit); | |
| $(this).val(new_text); | |
| } | |
| }); |
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
| libraries.add( | |
| { text: 'My Libraries', | |
| scripts: [ {text: 'h5validate', url: 'https://raw.github.com/dilvie/h5Validate/master/jquery.h5validate.js' } ] | |
| } | |
| ); |
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.test; | |
| import java.io.File; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.WebDriver; | |
| import org.openqa.selenium.WebElement; | |
| import org.openqa.selenium.ie.InternetExplorerDriver; | |
| public class SeleniumTest { |
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.sample.osgi; | |
| import java.util.Map; | |
| import org.apache.felix.scr.annotations.Activate; | |
| import org.apache.felix.scr.annotations.Component; | |
| import org.apache.felix.scr.annotations.Modified; | |
| import org.apache.felix.scr.annotations.Property; | |
| @Component(label = "Service Label", description = "Service Description", metatype = true, immediate = true) |
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.Map; | |
| import javax.ws.rs.core.MediaType; | |
| import javax.ws.rs.core.MultivaluedMap; | |
| import com.fasterxml.jackson.annotation.JsonCreator; | |
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
| import com.fasterxml.jackson.annotation.JsonProperty; | |
| import com.sun.jersey.api.client.Client; | |
| import com.sun.jersey.api.client.WebResource; |
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 org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.junit.runners.JUnit4; | |
| import static org.junit.Assert.*; | |
| @RunWith(JUnit4.class) | |
| public class TestNullify { | |
| @Test |