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
(function() { | |
'use strict'; | |
angular | |
.module('loanDoxApp') | |
.controller('DocumentDialogController', DocumentDialogController); | |
DocumentDialogController.$inject = ['$timeout', '$scope', '$stateParams', '$uibModalInstance', 'entity', 'Document', 'Exam']; | |
function DocumentDialogController ($timeout, $scope, $stateParams, $uibModalInstance, entity, Document, Exam) { |
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
$scope.schema = { | |
"type": "object", | |
"title": "Comment", | |
"properties": { | |
"picture": { | |
"title": "Picture", | |
"type" : "object" | |
}, | |
"email": { | |
"title": "Email", |
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
formlyConfigProvider.setType({ | |
name: 'fileField', | |
template: '<input ng-file-select ng-model="model[options.key]" type="file">', | |
wrapper: ['bootstrapLabel', 'bootstrapHasError'] | |
}); |
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
class Domain < ActiveRecord::Base | |
belongs_to :user | |
attr_accessible :name | |
# Validation | |
validates :name, :presence => true | |
validates :name, :uniqueness => { :scope => self.user.id, | |
:message => "Domain already added to your account" } | |
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
group :development, :test do | |
gem 'sqlite3' | |
end | |
group :production do | |
gem 'pg' | |
gem 'thin' | |
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
class Comment < ActiveRecord::Base | |
attr_accessible :invitation_id, :comment | |
belongs_to :invitation | |
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
Models | |
---------------------------------------- | |
Invitation | |
has_many :comments | |
Comment | |
belongs_to :invitation | |
Controller |
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
CREATE EXTERNAL TABLE domain_name_export_hdfs ( | |
dn string, td string, h int, r bigint, g string | |
) | |
ROW FORMAT DELIMITED | |
FIELDS TERMINATED BY '|' | |
location 'hdfs://namenode:9001/hadoop/data/201204/'; |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> | |
<title>TEst</title> | |
<script src="http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js"></script> | |
<STYLE TYPE="text/css" MEDIA=screen> | |
.yui3-overlay-content { | |
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25); | |
background: none repeat scroll 0 0 rgba(82, 82, 82, 0.7); | |
border-radius: 7px; |
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
YUI_config = { | |
filter: "raw", | |
groups: { | |
gallery: { | |
combine: false, | |
debug: true, | |
filter: "raw", | |
base: "/invitation/js/", | |
patterns: { | |
"gallery-": {}, |
NewerOlder