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
import React, { Component, useState } from "react"; | |
import TextField from "@material-ui/core/TextField"; | |
const WAIT_INTERVAL = 1000; | |
const ENTER_KEY = 13; | |
class TextSearch extends Component { | |
state = { | |
value: "", | |
isTyping: false |
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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: cip | |
* Date: 11/7/17 | |
* Time: 11:23 PM | |
*/ | |
namespace patients\risk; |
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
#!/bin/bash -x | |
# script to download the package source and calls Slackbuild automatically. | |
# | |
# Requirements | |
# | |
# you should have a cloned repository of slackbuilds | |
# git clone git://git.slackbuilds.org/slackbuilds.git | |
# | |
# uses | |
# [wget] to download |
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
numbers = [1, 5, 7, 2, 4, 3] | |
def swap(i, j): | |
t = numbers[i] | |
numbers[i] = numbers[j] | |
numbers[j] = t | |
size = len(numbers) | |
for i in range(0, size): | |
min = i |
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
CREATE TABLE `PRODUCT_PARTS` ( | |
`PRODUCT_ID` varchar(255) NOT NULL, | |
`PART_ID` bigint(20) NOT NULL, | |
PRIMARY KEY (`PRODUCT_ID`,`PART_ID`), | |
UNIQUE KEY `PART_ID` (`PART_ID`), | |
KEY `FK42C3C7507B2D661E` (`PRODUCT_ID`), | |
KEY `FK42C3C75071CA5096` (`PART_ID`), | |
CONSTRAINT `FK42C3C75071CA5096` FOREIGN KEY (`PART_ID`) REFERENCES `Part` (`id`), | |
CONSTRAINT `FK42C3C7507B2D661E` FOREIGN KEY (`PRODUCT_ID`) REFERENCES `PRODUCT` (`serialNumber`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 containers; | |
import java.util.Iterator; | |
public class Stack<T> implements Iterable<T>{ | |
private Node first; | |
private int size; | |
private class Node { |