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
// | |
// EGOTitledTableViewCell.h | |
// EGOClasses | |
// | |
// Created by Shaun Harrison on 6/2/09. | |
// Copyright 2009 enormego. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
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
Experiments in running a headless OpenOffice as a document convertor for TiddlyDocs, etc. | |
Running OpenOffice Headless: | |
$ cd /Applications/OpenOffice.org.app/Contents/program #Mac OSX | |
$ cd /usr/lib/openoffice.org.app/program #CentOS | |
$ ./soffice.bin -headless -invisible -nofirststartwizard -accept="socket,port=8100;urp;" | |
init script: | |
see openoffice.sh xvfb.sh for init.d scripts |
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
// | |
// NSObject+PropertyListing.h | |
// PropertyFun | |
// | |
// Created by Andrew Sardone on 8/27/10. | |
// | |
#import <Foundation/Foundation.h> | |
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
<!-- Run the application using "mvn jetty:run" --> | |
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>maven-jetty-plugin</artifactId> | |
<version>6.1.9</version> | |
<configuration> | |
<scanIntervalSeconds>5</scanIntervalSeconds> | |
<contextPath>/</contextPath> | |
<connectors> | |
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> |
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
<project> | |
... | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<configuration> | |
<descriptorRefs> | |
<descriptorRef>jar-with-dependencies</descriptorRef> | |
</descriptorRefs> |
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
[Global flags] | |
uintx AdaptivePermSizeWeight = 20 {product} | |
uintx AdaptiveSizeDecrementScaleFactor = 4 {product} | |
uintx AdaptiveSizeMajorGCDecayTimeScale = 10 {product} | |
uintx AdaptiveSizePausePolicy = 0 {product} | |
uintx AdaptiveSizePolicyCollectionCostMargin = 50 {product} | |
uintx AdaptiveSizePolicyInitializingSteps = 20 {product} | |
uintx AdaptiveSizePolicyOutputInterval = 0 {product} | |
uintx AdaptiveSizePolicyWeight = 10 {product} | |
uintx AdaptiveSizeThroughPutPolicy = 0 {product} |
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
#!/usr/bin/python | |
# | |
# LICENSE: MIT | |
# | |
# Copyright (C) 2014 Samuel Stauffer | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to | |
# deal in the Software without restriction, including without limitation |
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
@interface UILabel (dynamicSizeMe) | |
-(float)resizeToFit; | |
-(float)expectedHeight; | |
@end |
Based on Configuring Jetty, Maven, and Eclipse together with Hot Swap
I've always been a bit jealous when it comes to the Play! framework and the great dev mode they have for hot swapping classes at runtime. Jetty has a configuration setting, scanIntervalSeconds, that mimics this when working with a more traditional WAR, but does so by looking for changes to a file and restarting the server.
Fortunately, Jetty also provides the ability to rapidly test code with hot swapping. No more server restarts. The trick to getting hot swapping to work is to attach a remote debugger to your Jetty process. The following instructions outline how to do this in IntelliJ (tested with IDEA 10.5 CE).
- Open your pom and locate the plugins section
OlderNewer