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
/* | |
* LogUtil.h | |
*/ | |
// Comment for hide | |
#define LOG_INFO | |
#define LOG_ERROR | |
#define LOG_DEBUG | |
//#define LOG_FINE_DEBUG |
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 | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
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
// More info: http://code.martinrue.com/posts/the-singleton-pattern-in-swift | |
import UIKit | |
class ItemStore { | |
class var sharedInstance: ItemStore { | |
struct Static { | |
static var instance: ItemStore? |
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
// More Info: https://developer.apple.com/swift/blog/?id=15 | |
func assert(condition: @autoclosure () -> Bool, _ message: String = "", file: String = __FILE__, line: Int = __LINE__) { | |
#if DEBUG | |
if !condition() { | |
println("assertion failed at \(file):\(line): \(message)") | |
abort() | |
} | |
#endif | |
} |
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
rem | |
rem 15/12/2014 - jdom | |
rem | |
rem ------------------------------------------------------------------ | |
rem OBJECTIUS: | |
rem | |
rem Ejemplo de como leer un fichero y cargar en clob, y de como | |
rem escribir un clog a fichero. | |
rem ------------------------------------------------------------------ | |
rem NOTES: |
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
-- Como obtener offset de timezone: | |
select tz_offset('US/Eastern') from dual; | |
-- Como obtener timestamp para una determinada zona horaria: | |
select (SYSTIMESTAMP AT TIME ZONE tz_offset('US/Eastern')) from dual; | |
-- Obtener date a partir de timestamp: | |
select CAST((SYSTIMESTAMP AT TIME ZONE tz_offset('US/Eastern')) AS DATE) from dual; | |
-- Date en formato unix: |