Skip to content

Instantly share code, notes, and snippets.

View arjunkori's full-sized avatar

Arjun Kori arjunkori

  • Koricorp LTD
  • Mumbai,Maharastra,India
  • 14:19 (UTC +05:30)
View GitHub Profile
@arjunkori
arjunkori / Boottrap Validator
Created November 13, 2018 13:16
1.bootstrap password strengh validator
$('#change-password').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
'new-password': {
validators: {
identical: {
@arjunkori
arjunkori / CORSFilter.java
Created January 12, 2018 15:05 — forked from zeroows/CORSFilter.java
To enable CORS support in Spring MVC 4 - Access-Control-Allow-Origin
package com.elm.mb.rest.filters;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
@arjunkori
arjunkori / datatable_with_customised_button.html
Created October 3, 2017 14:50
datatable html5 upload codde with button customized at the bottom of datatable
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" />
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css" />
<!-- <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.10.16/b-1.4.2/b-colvis-1.4.2/b-flash-1.4.2/b-html5-1.4.2/b-print-1.4.2/datatables.min.css" /> -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<!-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script> -->
http://35.154.129.90:8080/user/ads?imei=9114572222810&slot=slot1,slot2
RESPONSE:
[
{
"_id": "58bd3bb53461131097598635",
"created_at": "2017-03-06T10:36:37.926Z",
"updated_at": "2017-03-06T10:36:37.926Z",
"expiry_time": 1488882997,
URL : http://35.154.129.90:8080/user/ads?imei=9114572222810
GET
RESPONSE :
[
{
"_id": "58bd3bb53461131097598635",
"created_at": "2017-03-06T10:36:37.926Z",
"updated_at": "2017-03-06T10:36:37.926Z",
http://35.154.129.90:8080/user/ads?imei=9114572222810
[
{
"_id": "58b8379a6090ef17abc69fae",
"created_at": "2017-03-02T15:17:46.424Z",
"updated_at": "2017-03-02T15:17:46.424Z",
"expiry_time": 1488554266,
"sourceId": "UYzwkUIfu5o",
"ad_view_type": "VA1",
URL : http://localhost:3000/user/ads?imei=9114572222810&slot=slot1&slot=slot2
METHOD:GET :
//*********************************** HINDI YOUTUBE CHANNEL RESPONSE ********************************************//
[
{
"_id": "589dd388920e7b25bce665f5",
"created_at": "2017-02-10T14:51:52.648Z",
"updated_at": "2017-02-10T14:51:52.648Z",
"expiry_time": 1486824712,
"sourceId": "HlAOZrst6fQ",
{
"_id" : ObjectId("587c77f3afc09f1c40677416"),
"created_at" : ISODate("2017-01-16T07:36:19.288Z"),
"updated_at" : ISODate("2017-01-16T07:36:19.288Z"),
"ad_view_type" : "VA1",
"publisher_id" : "com.mofirst.launcher",
"location" : 402,
"target" : "https://www.youtube.com/embed/9p9TGSUZ-cc",
"tags" : [
{
{
"_id": {
"$oid": "587c77f3afc09f1c40677416"
},
"created_at": {
"$date": "2017-01-16T07:36:19.288Z"
},
"updated_at": {
"$date": "2017-01-16T07:36:19.288Z"
},