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
| // Author: Sokdara Cheng | |
| // Contact me for web or mobile app development using React or React Native | |
| // https://chengsokdara.github.io | |
| import React, { createContext, useContext, useReducer } from "react"; | |
| import initialState from "./initialState"; // object of initial states | |
| import reducer from "./reducer"; // https://reactjs.org/docs/hooks-reference.html#usereducer | |
| const Store = createContext({ | |
| dispatch: () => null, | |
| state: initialState, | |
| }); |
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.luv2code.springdemo; | |
| import java.util.logging.ConsoleHandler; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| import java.util.logging.SimpleFormatter; | |
| import org.springframework.context.annotation.AnnotationConfigApplicationContext; | |
| public class MyLoggerConfig { |
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.luv2code.springdemo.mvc; | |
| import java.util.LinkedHashMap; | |
| public class Student { | |
| private String firstName; | |
| private String lastName; | |
| private String favoriteLanguage; |
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
| // original from:https://codepen.io/mdd/pen/wGRqbw | |
| // Reducer | |
| const counter = (state = 0, actions) => { | |
| switch (actions.type) { | |
| case 'INCREMENT': return state + 1; | |
| case 'DECREMENT': return state - 1; | |
| default: return state | |
| } | |
| } |
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
| { | |
| "cells": [ | |
| { | |
| "cell_type": "markdown", | |
| "metadata": {}, | |
| "source": [ | |
| "# Active Contour Model Greedy Algorithm By William and Shah" | |
| ] | |
| }, | |
| { |
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
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |