Skip to content

Instantly share code, notes, and snippets.

View sambhav2612's full-sized avatar
👋
Building Suitable AI

Sambhav Jain sambhav2612

👋
Building Suitable AI
View GitHub Profile
// XML -- JPG file >> https://github.com/sambhav2612/Android-PortfolioApp/tree/patch-1
<ImageView
android:id="@+id/headerImage"
android:src="@drawable/image"
android:scaleType="fitXY"
android:adjustViewBounds="true"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_marginTop="12dp"
@sambhav2612
sambhav2612 / starting-open-source.md
Created November 13, 2017 08:39
Pushing to Github
  1. install git on your machine
  2. signup on github.com, get a username and remember your password
  3. make a repository on github.com
  4. get the push link to repo (must end with .git ex)
  5. go to terminal, and to the folder from where you want to upload your files
  6. run command : git init
  7. this will create a empty local repo in your local space (in pwd)
  8. now write command:
git pull THE-LINK-YOU-COPIED-FROM-STEP-4.git master
- [Activity Transisions](https://developer.android.com/guide/components/activities/activity-lifecycle.html#saras)
@sambhav2612
sambhav2612 / PHP
Last active January 4, 2018 09:27
PHP notes from college
#04/01/2018
Client Server
- html - php
- css - ruby
- javascript - ruby on rails
- ASP.NET
- JSP
> desktop computing
> client-server computing
Create Table emp33(
eno char(3) not null,
ename varchar(50) not null,
job_type varchar(50) not null,
manager char(3),
hire_date date not null,
dno integer,
commission decimal(10,2),
salary decimal(7,2) not null,
primary key(eno),
Create Table dept33(
Dno Integer not null,
Dname varchar(50),
location varchar(50) Default 'New Delhi',
primary key(Dno)
);
DNO DNAME LOCATION
10 Accounting New York
30 Sales Chicago
Verifying my Blockstack ID is secured with the address 1MqxMfm7R9E91dWL9uUUgRru55j32YyxxA https://explorer.blockstack.org/address/1MqxMfm7R9E91dWL9uUUgRru55j32YyxxA
@sambhav2612
sambhav2612 / railway-information-portal.md
Last active January 25, 2018 04:27
software engineering project writeup

railway-information-portal

Overview: The project aims at providing extensive services to the end-user by using the present railway backbone and train network. Having a portal could help both end-user and railway department:

  • End-user gets more services before and after booking a ticket.
  • Railway Department receives wide appreciation for incorporating an end-user portal in the batch of it's current services being provided. Working at both providing better services and end-user satisfaction with happier investors. Every user goes through a sign-up procedure followed by email verfication on the provided email address following with log-in on the portal. As soon as being logged-in on the portal, the portal starts providing extensive services in real-time with features including:

Search for train number: Users can search for train number given they provide the route information like departure and arrival stations. Train route information: Given the train number known to the end-user, the portal can now prov

select * from emp33;
update dept33
set DNAME = 'Accounting'
where DNO = 10;
delete from dept33 where DNO = 60;
select ENO, ENAME from emp33 where MANAGER = null;
select ENO, ENAME from emp33 order by ENAME, ENO;
select * from emp33, dept33 where emp33.DNO = dept33.DNO;
ENO
ENAME
JOB_TYPE
MANAGER
HIRE_DATE
DNO
COMMISSION
SALARY
783