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.bitsevn.azure.app.service.greeter.jar; | |
| import java.time.Duration; | |
| import java.time.LocalDateTime; | |
| import java.time.LocalTime; | |
| import java.time.ZoneId; | |
| import java.time.format.DateTimeFormatter; | |
| import java.util.*; | |
| import java.util.concurrent.ConcurrentHashMap; | |
| import java.util.concurrent.CountDownLatch; |
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.datastructures.problems; | |
| import java.util.*; | |
| import java.util.stream.Stream; | |
| /** | |
| * Dictionary = [ CAT, DOG, BYTE, TUBE, CAN, ANT, CAR, TANK ] | |
| * Boggle = { | |
| * C J Z E | |
| * V A X B |
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 in.cubestack.tree; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class TreeDemo { | |
| public static void main(String[] args) { | |
| List<Record> records = new ArrayList<>(); | |
| records.add(new Record(1, "Neelgiri Tea", "")); |
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 lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Tree Example</title> | |
| <style> | |
| .node { | |
| cursor: pointer; | |
| } |
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 cubestack.examples.mail; | |
| import java.io.IOException; | |
| import java.util.Properties; | |
| import javax.mail.Authenticator; | |
| import javax.mail.Message; | |
| import javax.mail.Message.RecipientType; | |
| import javax.mail.MessagingException; | |
| import javax.mail.PasswordAuthentication; |
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> | |
| <-- reference: https://www.html5rocks.com/en/tutorials/dnd/basics/ --> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title of the document</title> | |
| <style type="text/css"> | |
| body { padding: 50px; } | |
| /* Prevent the text contents of draggable elements from being selectable. */ |
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 createActionCreator from './createActionCreators' // path to the file | |
| const add = createActionCreator(ADD_TODO, { firstName: 'arun', lastName: 'kumar', addresses: ['mumbai', 'delhi'] }) | |
| const edit = createActionCreator(EDIT_TODO, { id: 10, firstName: 'arun', lastName: 'kumar', accounts: [{ accountType: 'saving' }, { accountType: 'current' }] }); | |
| const remove = createActionCreator(REMOVE_TODO, { id: 10 }) | |
| // Produces below output | |
| console.log('add', add()) | |
| // {type: "ADD_TODO", firstName: 'arun', lastName: 'kumar', addresses: ['mumbai', 'delhi']} |
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.cubestacklabs.arrow.files; | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.util.concurrent.ConcurrentHashMap; | |
| import java.util.stream.Stream; | |
| public class SerialParallelStreams { |
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 debug = process.env.NODE_ENV !== "production"; | |
| var webpack = require('webpack'); | |
| var path = require('path'); | |
| // get build version | |
| var pkg = require('./package.json'); | |
| // build timestamp | |
| var buildTimestamp = buildTime(); | |
| module.exports = { | |
| context: path.join(__dirname, "src"), |
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
| // webpack.config.js | |
| resolve: { | |
| alias: { | |
| "modules": __dirname + "/src/modules" | |
| } | |
| } | |
| // in src/modules folder | |
| modules | |
| |_ lib | |
| | |_ MyModule1.js |
NewerOlder