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 `retail_db`.`retail_master` ( | |
`transaction_id` INT NOT NULL AUTO_INCREMENT, | |
`customer_name` VARCHAR(45) NOT NULL, | |
`bought_products` VARCHAR(255) NOT NULL, | |
`amount` INT NULL, | |
PRIMARY KEY (`transaction_id`)); | |
INSERT INTO `retail_db`.`retail_master` (`customer_name`, `bought_products`, `amount`) VALUES ('prashantkhunt', 'laptop,headphones,watch,mobile', '70000'); | |
INSERT INTO `retail_db`.`retail_master` (`customer_name`, `bought_products`, `amount`) VALUES ('harsh savani', 'book,sunglasses,tshirt,pen', '85000'); | |
INSERT INTO `retail_db`.`retail_master` (`customer_name`, `bought_products`, `amount`) VALUES ('chiragloliyana', 'laptop,headphones,watch', '45000'); | |
INSERT INTO `retail_db`.`retail_master` (`customer_name`, `bought_products`, `amount`) VALUES ('vivekpatel', 'mobile,book,tshirt', '30000'); |
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
##Search "blah" in file FROMDEV.txt | |
grep “blah” FROMDEV.txt |
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
#include<stdio.h> | |
#include<conio.h> | |
void main() | |
{ | |
Printf("Hello World!"); | |
getch(); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<p>This is the page content.</p> | |
</body> | |
</html> |
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
<style> | |
body { | |
font-weight:bold; | |
text-align:center; | |
background:yellow; | |
} | |
h1 { | |
text-shadow: 5px 5px 5px; | |
} | |
</style> |
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 browser.util; | |
public class BrowserUtil { | |
public static enum BrowserType { | |
INTERNET_EXPLORER, MOZILA_FIREFOX, SAFARI, NETSCAPE, GOOGLE_CHROME, FLOCK, UNKNOWN | |
} | |
/** | |
* Each browser sends a the user-agent field with different content | |
* |
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 browser.util; | |
import javax.servlet.http.HttpServletRequest; | |
import browser.util.BrowserUtil.BrowserType; | |
public class TestBrowserUtil { | |
public static void sample(HttpServletRequest request) { |
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
function validateVin(vin) { | |
var re = new RegExp("^[A-HJ-NPR-Z\\d]{8}[\\dX][A-HJ-NPR-Z\\d]{2}\\d{6}$"); | |
return vin.match(re); | |
} |
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 MyClass { | |
public Data getData() { | |
// some remote processing code | |
}; | |
} |
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
MyClass myobject = new MyClass(); | |
Data dataObject = myobject.getData(); |
OlderNewer