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
// | |
// NSDate+InternetDateTime.swift | |
// | |
// Objective-C Version created by Michael Waterfall on 07/10/2010. | |
// Copyright 2010 Michael Waterfall. All rights reserved. | |
// | |
// Swift Version created by Alexander Sparkowsky on 19/07/14. | |
// Copyright (c) 2014 Alexander Sparkowsky. All rights reserved. | |
// |
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
# | |
# Basic .gitignore file for Java projects using eclise, IntelliJ and maven | |
# | |
# Eclipse | |
.classpath | |
.project | |
.settings/ | |
# Intellij |
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 <Foundation/Foundation.h> | |
@interface MySingeltonClass : NSObject | |
+ (instancetype)sharedInstance; | |
@end |
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
class TreeModel < ActiveRecord::Base | |
has_many :children, class_name: "TreeModel", | |
foreign_key: "parent_id" | |
belongs_to :parent, class_name: "TreeModel" | |
end |
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 de.roamingthings.crypto; | |
public class RandomToken { | |
private static final SecureRandom rand = new SecureRandom(); | |
public static String generateRandomToken(int bits) { | |
return new BigInteger(bits, rand).toString(32); | |
} | |
public static main(String[] args) { |
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
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:h="http://java.sun.com/jsf/html" | |
xmlns:c="http://java.sun.com/jstl/core" | |
xmlns:ui="http://java.sun.com/jsf/facelets" | |
xmlns:f="http://java.sun.com/jsf/core" | |
xmlns:s="http://jboss.com/products/seam/taglib" | |
xmlns:t="http://myfaces.apache.org/tomahawk" | |
contentType="text/html"> | |
<t:selectOneRadio id="mySelect" value="#{target.value}" layout="spread" required="true"> | |
<s:selectItems |
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
<?xml version='1.0' encoding='UTF-8' ?> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:f="http://java.sun.com/jsf/core" | |
xmlns:h="http://java.sun.com/jsf/html" | |
xmlns:ui="http://java.sun.com/jsf/facelets"> | |
<f:view> | |
<head> | |
<ui:remove>********** Richfaces 3.3 / jQuery Voodoo Spell **********</ui:remove> | |
<script> |
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
<html> | |
<head> | |
<meta name="robots" content="noindex,nofollow"/> | |
<meta http-equiv="cache-control" content="max-age=0"/> | |
<meta http-equiv="cache-control" content="no-cache"/> | |
<meta http-equiv="expires" content="0"/> | |
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT"/> | |
<meta http-equiv="pragma" content="no-cache"/> | |
</head> | |
<body> |
NewerOlder