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
{ | |
"builders": [ | |
{ | |
"type": "vagrant", | |
"provider": "virtualbox", | |
"source_path": "centos7.box", | |
"communicator": "ssh", | |
"pause_before_connecting": "2m" | |
} | |
], |
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 app; | |
import java.util.ArrayList; | |
import java.util.Stack; | |
/** | |
* Trie | |
*/ | |
public class Trie { | |
private TrieNode root; |
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 app; | |
public class BinarySearchTree { | |
BinaryTreeNode root; | |
public BinarySearchTree() { | |
this.root = null; | |
} | |
public void insert(int data) { |
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 com.company; | |
import java.util.Stack; | |
/** | |
* BinaryTree | |
*/ | |
public class BinaryTree { | |
BinaryTreeNode root; |
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 app; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
/** | |
* Sorter | |
*/ | |
public class Sorter { | |
public void radixSort(int[] nums) { |
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
var express = require('express'); | |
var path = require('path'); | |
var favicon = require('serve-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var index = require('./routes/index'); | |
var user = require('./routes/user'); | |
var auth = require('./routes/auth'); |
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
if($mobileNumber==8290238014){ | |
Auth::login(User::find(1)); | |
dump("Logged In User:". Auth::user()->id); | |
} else { | |
print_r("Not"); | |
} |
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 json | |
from flask import Flask, request, make_response | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello World!' |
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
//Single Promise Object | |
new Promise((resolve, reject) => { | |
// Your Code which you are unsure about execution time duration. | |
resolve();//OR reject(); | |
}) | |
.then(() => { | |
//If resolve() | |
console.log('Do this'); | |
}) |
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
this.$nextTick(function () { | |
if (_.isObject(this.summaryTable)) { | |
this.summaryTable.destroy(); | |
} | |
this.summaryTable = | |
$("#retailer-retention-table").DataTable({ | |
searching: false, | |
ordering: false, | |
info: false, |
NewerOlder