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 { createStore } from 'redux'; | |
| import reducers from '../reducers'; | |
| const initialState = {tech: "React JS"}; | |
| const store = createStore(reducers, initialState); | |
| export default store; |
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
| // Can you spot the "memory leak"? | |
| public class Stack { | |
| private Object[] elements; | |
| private int size = 0; | |
| private static final int DEFAULT_INITIAL_CAPACITY = | |
| 16; | |
| public Stack() { | |
| elements = new Object[DEFAULT_INITIAL_CAPACITY]; | |
| } | |
| public void push(Object e) { |
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.Arrays; | |
| import java.util.Date; | |
| import java.util.List; | |
| import com.bma.jwt.app.vo.JWTPayload; | |
| import com.bma.jwt.app.vo.User; | |
| import com.google.gson.Gson; | |
| import io.jsonwebtoken.Claims; | |
| import io.jsonwebtoken.Jws; |
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() | |
| } |
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
| 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
| 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
| /* | |
| * 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.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
| package collections.shoppingcart; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| /** | |
| * | |
| * @author Varun Shrivastava (vslala) | |
| */ |