Skip to content

Instantly share code, notes, and snippets.

View shah-smit's full-sized avatar
🎯
Focusing

Smit Shah shah-smit

🎯
Focusing
View GitHub Profile
@shah-smit
shah-smit / Readme.md
Created June 9, 2016 17:03
GIT Beginner Course Day - 1

Day 1 of GIT

lets get started

  • open terminal or command prompt(cmd)
  • go to the directory that u would like to get started
  • type git clone https://github.com/raja95shah/test.git
@shah-smit
shah-smit / php.ini
Created June 23, 2016 17:53
Increase upload size of the file in phpmyadmin
php_value upload_max_filesize 120M //file size
php_value post_max_size 120M
php_value max_execution_time 200
php_value max_input_time 200
@shah-smit
shah-smit / .gitignore
Last active June 24, 2016 04:11
step by step to generate .gitignore file
# VS / NTVS stuff
*.dat
*.suo
bin
obj
# Logs
logs
*.log
@shah-smit
shah-smit / importanceofUnitTesting.md
Last active June 28, 2016 11:07
Importance of Unit Testing

Importance of Unit Testing

  • It effective
  • Detect bugs
  • It keeps the developers away from fear of breaking code.
  • Changes made in tests does not break or change the development code.
  • Its cost effective
@shah-smit
shah-smit / Readme.md
Last active August 29, 2016 02:49
University Answer Format

#Answer Writing Format

###Never use First Person writings i.e I or We or In my opinion or My or According to me

#Format:

Introduction:

        1. Provide background info of the problem statement.
  1. Define key terms.
@shah-smit
shah-smit / SimpleFrame.java
Created September 27, 2016 12:10
A simple GUI with one panel contained in a frame
import java.awt.*;
import javax.swing.*;
public class SimpleFrame {
public static void main(String[] args) {
// TODO Auto-generated method stub
JFrame frame = new JFrame("A simple Frame");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
@shah-smit
shah-smit / TabbedFrame.Java
Created September 27, 2016 13:19
Tabbed Panel Java Application
import javax.swing.*;
public class TabbedFrame {
public static void main(String[] args) {
// TODO Auto-generated method stub
JFrame frame = new JFrame("ButtonClickPanel Demo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTabbedPane tp = new JTabbedPane();
@shah-smit
shah-smit / genericArrayPrint.java
Created December 18, 2016 03:30
Generic Array Print
class Printer
{
//Write your code here
<T> void printArray(T[] anyType)
{
for(int i = 0; i<anyType.length; i++)
{
System.out.println(anyType[i]);
}
}
[
{
"productId": 1,
"productName": "Leaf Rake #1",
"productCode": "GDN-0011",
"releaseDate": "March 19, 2016",
"description": "Leaf rake with 48-inch wooden handle.",
"price": 19.95,
"starRating": 3.2,
"imageUrl": "http://openclipart.org/image/300px/svg_to_png/26215/Anonymous_Leaf_Rake.png"
@shah-smit
shah-smit / filey.java
Created February 17, 2017 11:39
File Reader, its own in JAVA
import java.io.*;
public class filey
{
public static void bling(String s)throws Exception
{
BufferedReader inone = new BufferedReader(new FileReader(s));
int t = inone.read();
while(t != -1)
{