React ui
material ui http://www.material-ui.com/#/components/badge
react bootstrap http://gcanti.github.io/resources/tcomb-react-bootstrap/playground/playground.html
http://react-bootstrap.github.io/components.html#navbars
complementary tools https://github.com/facebook/react/wiki/Complementary-Tools
awesome-react https://github.com/enaqx/awesome-react#boilerplates
forms https://github.com/insin/newforms
kanban in js http://webix.com/demos/
react swal htt
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 http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
| <title>Node-Link Tree</title> | |
| <link href="interactive_tree.css" rel="stylesheet" type="text/css" /> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.27.2"></script> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.27.2"></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
| <!--<a href="./FreightCost/upload"><h3>UPLOAD FILE<h3>--> | |
| <head> | |
| <?php echo $this->Html->css('ag-grid.min'); ?> | |
| <?php echo $this->Html->css('ag-grid-theme-blue.min'); ?> | |
| <?php echo $this->Html->css('odometer-theme-car'); ?> | |
| <style> | |
| /* Paste this css to your style sheet file or under head tag */ | |
| /* This only works with JavaScript, | |
| if it's not present, don't show loader */ |
Download and install Solr from http://lucene.apache.org/solr/. You can access Solr admin from your browser: http://localhost:8983/solr/
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> |
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
| // 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
| 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
| <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
| @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/ |