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
<style> | |
/* Sticky footer styles | |
-------------------------------------------------- */ | |
html { | |
position: relative; | |
min-height: 100%; | |
} | |
body { | |
/* Margin bottom by footer height */ | |
margin-bottom: 60px; |
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
<style type="text/css"> | |
h2{ | |
text-align: center; | |
} | |
.filters{ | |
background-color: white; | |
height: 500px; | |
width: 1000px; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=="utf-8"> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/min/dropzone.min.js"></script> <!-- js for the add files area /-->i | |
<script> | |
var Dropzone = require("enyo-dropzone"); | |
Dropzone.autoDiscover = false; |
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
1.Install Bower | |
npm install -g bower | |
2.Add a bower.json file parallel to app.js/server.js file with following contents - | |
{ | |
"name": "your-project", | |
"dependencies": { | |
"sir-trevor-js": "0.4.3" | |
}, | |
"resolutions": { | |
"jquery": "~1.9.1" |
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
@POST | |
@Path("sendappnotification") | |
@Consumes(MediaType.APPLICATION_FORM_URLENCODED) | |
public static String sendSMS(@FormParam("order_id") String order_id, | |
@FormParam("template") String template, | |
@FormParam("appNotifData") String notif_json) { | |
} | |
reference - http://stackoverflow.com/questions/27957649/resteasy-formparam-returns-always-null | |
reference - http://postimg.org/image/iwbrdbilz/ |
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
<li><a id='dialog_trigger_operations' data="/csportalNew/operations_view/<?php echo $order->order_id ?>" data-toggle="tooltipOperationsView" >View and edit Operation view</a> </li> | |
<div id = 'dialog_operations'></div> | |
<script> | |
$(document).ready(function(){ | |
$("#dialog_operations").dialog({ |
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
module.exports = function(){ | |
var userServiceURL; | |
var blogServiceURL; | |
var contentServiceURL; | |
switch(process.env.NODE_ENV || 'development'){// other option is export NODE_ENV=development in console | |
case 'development': | |
userServiceURL = "http://localhost:9000/userService/"; | |
break; |
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
// SEND OTP | |
// ============================================== | |
router.post('/sendOTP',function(req, res){ | |
console.log('body: ' + JSON.stringify(req.body)); | |
} |
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
In your model simply add a field for the pdf - | |
Admission.add({ | |
name: { type: String, required: true }, | |
state: { type: Types.Select, options: 'draft, published, archived', default: 'published', index: true }, | |
author: { type: Types.Relationship, ref: 'User', index: true }, | |
publishedDate: { type: Types.Date, index: true }, | |
pdf: { type: Types.S3File }, | |
content: { | |
brief: { type: Types.Html, wysiwyg: true, height: 150 }, |
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
Lets say solr is located at /usr/local/solr-5.5.0 . | |
1. bin/solr start | |
2. bin/solr create -c test | |
3. location of new core is here /usr/local/solr-5.5.0/server/solr/test | |
4. location of solrconfig is here /usr/local/solr-5.5.0/server/solr/test/solrconfig.xml | |
5. Open solrconfig.xml - | |
You will find this | |
<schemaFactory class="ManagedIndexSchemaFactory"> | |
<bool name="mutable">true</bool> | |
<str name="managedSchemaResourceName">managed-schema</str> |
OlderNewer