Export data to CSV client side in IE without data URI link
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
wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/7u21-b11/jdk-7u21-linux-x64.tar.gz" |
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
<plugin> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.7</version> | |
<executions> | |
<execution> | |
<phase>generate-sources</phase> | |
<configuration> | |
<target name="building"> | |
<echo> | |
--------------------------------------------------- |
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
//State config | |
var letterSize = 72 | |
var letterXPadding = 20 | |
var letterYPadding = 2 | |
var soundSize = 48 | |
var backLocation = [575, letterSize] | |
console.log(c123) | |
console.log(sounds) |
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
//Lower number means need to be accurate and is harder | |
explodeDistance = 50 | |
//Lower number means moves faster and is harder | |
howFastDoesUFOMove = 450 | |
fill('nightsky') | |
//You can name a variable whatever you want | |
bob = stamp('rocket2', 375, 900) | |
ufo = stamp('ufo2', 37, 120) | |
shot1 = shotInit() | |
shot2 = shotInit() |
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
dragSpeed = 12 //9 | |
team = '' | |
me = '' | |
myCircle = '' | |
ball = initBall().hide() | |
stampSize = 100 | |
ballSpeed = 1000 | |
playerSpeed = 1000 | |
meter = 100 |
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
public enum Greetings implements CustomGreeting { | |
FORMAL("Hello. Pleasure to see you.") { | |
@Override | |
public String customGreeting() { | |
return Babelfish.get("i18n.dothraki.greeting.formal"); | |
} | |
}, CASUAL("Hey, what's up.") { | |
@Override | |
public String customGreeting() { | |
return Babelfish.get("i18n.dothraki.greeting.casual"); |
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
@TestConfiguration | |
class IntegrationTestMockingConfig { | |
private DetachedMockFactory factory = new DetachedMockFactory() | |
@Bean | |
ExternalRankingService externalRankingService() { | |
factory.Mock(ExternalRankingService) | |
} | |
} |
In Hibernate 5+ a change was made that requires an alternative naming strategy otherwise the name attribute on the Column annotation is ignored.
See
spring-projects/spring-boot#6264 (comment) https://stackoverflow.com/a/38875123/378151
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
//All of the fancy annotations are mostly here if you want to generate the DDL via Hibernate | |
@Size(min = 10) // If you want to limit the max size of the array | |
@ElementCollection(fetch = FetchType.EAGER) | |
@CollectionTable(name = 'IssueRequestor', joinColumns = [@JoinColumn(name = 'IssueID')], | |
uniqueConstraints = [ @UniqueConstraint(name = 'IssueRequestor_uc_issueId_requestor', | |
columnNames = ['IssueID', 'requestor'])]) | |
@Column(name = 'requestor', length = 150) | |
Set<String> requestors = [] |
OlderNewer