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 <Foundation/Foundation.h> | |
@interface NSString (LBToolbox) | |
- (CGSize) sizeWithWidth: (CGFloat) width andFont: (UIFont*) font; | |
@end |
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
<?php | |
/** @file | |
* Base classes for OO-Drupal 7 - DOO7 :) | |
* | |
* @author atchijov | |
* | |
*/ | |
/** | |
* Poor man mixins. |
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 <UIKit/UIKit.h> | |
typedef void (^LB_ALERT_BLOC)(UIAlertView* alertView, int buttonIndex); | |
@interface LBAlertView: UIAlertView<UIAlertViewDelegate> | |
@property(strong, nonatomic) LB_ALERT_BLOC onClickBlock_; | |
- (void) setOnClickBlock: (LB_ALERT_BLOC) aBlock; |
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
Ext.define('LB.store.SqlJoinProxy', { | |
alias: 'proxy.sqljoin', | |
extend: 'Ext.data.proxy.Sql', | |
config: { | |
/** | |
* config below will join table image ON image_id = i.id and will select field image_thumbnail as thumbnail and | |
* field image_full_size as full_size | |
* | |
* joins: [{ |
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
Caret cr = me.reachTextField.getCaret(); | |
int position = cr.getDot() | |
Element e = me.reachTextField.getStyledDocument().getCharacterElement(position); | |
AttributeSet attributes = e.getAttributes(); | |
Enumeration attributeNames = attributes.getAttributeNames(); | |
while(attributeNames.hasMoreElements()) { | |
Object name = attributeNames.nextElement(); | |
System.out.println("attributes : " + name + " : " + attributes.getAttribute(name)); | |
} |
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
<subsystem xmlns="urn:jboss:domain:undertow:1.1"> | |
<buffer-cache name="default"/> | |
<server name="default-server"> | |
<http-listener name="default" socket-binding="http" always-set-keep-alive="false"/> | |
<https-listener name="default-s" socket-binding="https" security-realm="UndertowRealm" always-set-keep-alive="false"/> | |
<host name="default-host" alias="localhost"> | |
<location name="/" handler="welcome-content"/> | |
<access-log prefix="access"/> | |
<filter-ref name="connection-close"/> | |
<filter-ref name="server-header"/> |
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
This solution is based on comment https://issues.jboss.org/browse/UNDERTOW-282?focusedCommentId=12986535&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12986535 | |
This fix was tested with Wildfly 8.1.0 Final. | |
NOTE: io.undertow.servlet.ServletExtension file should go into META-INF/services/io.undertow.servlet.ServletExtension |
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
@Singleton | |
@Startup | |
public class SettingsManagerImpl implements SettingsManager { | |
... | |
@Schedule(hour = "*", minute = "*", second="13") | |
public void checkSettingsProviders() { | |
... | |
} | |
... | |
} |
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
<beans | |
xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"> | |
<!-- Allows us to use system properties as variables in this configuration file --> | |
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> | |
<property name="locations"> | |
<value>file:${activemq.conf}/credentials.properties</value> |
OlderNewer