This file contains 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
DROP TABLE TOY_STORE_1579349 CASCADE CONSTRAINTS; | |
DROP TABLE TOY_DTLS_1579349 CASCADE CONSTRAINTS; | |
DROP TABLE TOY_REL_1579349 CASCADE CONSTRAINTS; | |
--DROP SEQUENCE TOY_STORE_SN_1579349; | |
--DROP SEQUENCE TOY_DTLS_SN_1579349; | |
CREATE TABLE TOY_STORE_1579349 | |
( | |
TOY_STORE_ID NUMBER(3) PRIMARY KEY, | |
TOY_STORE_NAME VARCHAR2(30) NOT NULL, |
This file contains 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
--1. | |
SET AUTO OFF; | |
DROP TABLE TOY_STORE_1579349 CASCADE CONSTRAINTS; | |
DROP TABLE TOY_DTLS_1579349 CASCADE CONSTRAINTS; | |
DROP TABLE TOY_REL_1579349 CASCADE CONSTRAINTS; | |
DROP SEQUENCE TOY_STORE_SN_1579349; | |
DROP SEQUENCE TOY_DTLS_SN_1579349; | |
CREATE TABLE TOY_STORE_1579349 |
This file contains 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.example.project; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; | |
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; | |
import org.springframework.security.config.annotation.web.builders.HttpSecurity; | |
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; |
This file contains 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.example.project; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import org.springframework.security.core.AuthenticationException; |
This file contains 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.example.project; | |
import javax.persistence.Entity; | |
import javax.persistence.Id; | |
@Entity | |
public class Hospital { | |
public int getId() { | |
return id; | |
} |
This file contains 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.example.project; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Service; | |
@Service |
This file contains 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.example.project; | |
import java.util.List; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.web.bind.annotation.PathVariable; | |
import org.springframework.web.bind.annotation.RequestBody; | |
import org.springframework.web.bind.annotation.RequestMapping; |
This file contains 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.example.project; | |
import java.util.Map; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.http.HttpEntity; | |
import org.springframework.http.HttpHeaders; |
This file contains 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
# Using lists as stacks | |
stack = [3, 4, 5] | |
stack.append(6) ## Same as push | |
stack.pop() | |
## Custom implementation of stack using LinkedList (See LinkedList) | |
class Element(object): | |
def __init__(self, value): | |
self.value = value | |
self.next = None |
This file contains 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
public class BooleanTable | |
{ | |
public static void main( String[] args ) { | |
final int n = 3; | |
final int col = (int) Math.pow( 2, n ); | |
ArrayList<char[]> charMatrix = new ArrayList<>(); | |
char[][] transposedMatrix = new char[n][col]; | |
ArrayList<char[]> charArr; |
NewerOlder