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 java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.HashSet; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Set; | |
| class CollectionExample { | |
| // Lets start collection... |
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 java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.HashSet; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Set; | |
| class CollectionExample { | |
| // Lets start collection... |
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 collections.shoppingcart; | |
| import java.util.Objects; | |
| /** | |
| * | |
| * @author Varun Shrivastava (vslala) | |
| */ | |
| class Product { |
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 collections.shoppingcart; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| /** | |
| * | |
| * @author Varun Shrivastava (vslala) | |
| */ |
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 collections.shoppingcart; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| /** | |
| * | |
| * @author Varun Shrivastava | |
| */ | |
| class Cart { |
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
| /* | |
| * Create a fully functional program to store and delete objects from the cart | |
| */ | |
| package collections.shoppingcart; | |
| /** | |
| * | |
| * @author Varun Shrivastava | |
| */ | |
| public class Main { |
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 collections.shoppingcart; | |
| import java.util.List; | |
| import java.util.Scanner; | |
| /** | |
| * | |
| * @author Varun Shrivastava (vslala) | |
| */ | |
| public class UI { |
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 (grunt) { | |
| grunt.loadNpmTasks('grunt-contrib-jshint'); | |
| grunt.loadNpmTasks('grunt-contrib-uglify'); | |
| grunt.loadNpmTasks('grunt-contrib-imagemin'); | |
| grunt.loadNpmTasks('grunt-contrib-sass'); | |
| grunt.loadNpmTasks('grunt-postcss'); | |
| grunt.loadNpmTasks('grunt-contrib-watch'); | |
| grunt.loadNpmTasks('grunt-contrib-connect'); | |
| grunt.loadNpmTasks('grunt-webpack'); |
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
| -- BeMyAficionado.com | |
| -- Backup Database to a .sql file | |
| mysqldump --opt --default-character-set=latin1 --skip-extended-insert --user root --password my-database-name -r exp-my-database-name-latin1.sql --log-error=log-mysqldump-my-database.txt | |
| -- Clean up post_content | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, ' </p>', '</p>'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, '“', '“'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, 'â€', '”'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, '’', '’'); |
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
| // Apply the java-library plugin to add support for Java Library | |
| apply plugin: 'java-library' | |
| // In this section you declare where to find the dependencies of your project | |
| repositories { | |
| // Use jcenter for resolving your dependencies. | |
| // You can declare any Maven/Ivy/file repository here. | |
| jcenter() | |
| } |
OlderNewer