- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
--To find the week and quarter from date column using T-SQL. | |
DECLARE @temp_tb TABLE (CreateDate DATETIME) | |
INSERT INTO @temp_tb SELECT '2012-08-15 07:22:56.000' | |
INSERT INTO @temp_tb SELECT '2012-11-16 10:10:00.000' | |
INSERT INTO @temp_tb SELECT '2013-04-22 08:47:37.000' | |
INSERT INTO @temp_tb SELECT '2013-12-31 23:59:38.000' | |
INSERT INTO @temp_tb SELECT '2013-01-29 16:26:25.000' |
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
USE master | |
GO | |
ALTER DATABASE DatabaseName | |
SET OFFLINE WITH ROLLBACK IMMEDIATE | |
ALTER DATABASE DatabaseName | |
SET ONLINE | |
GO |
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
/* | |
============================================== | |
CSS3 ANIMATION CHEAT SHEET | |
============================================== | |
Made by Justin Aguilar | |
www.justinaguilar.com/animations/ | |
Questions, comments, concerns, love letters: |
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
-------------------------------------------------------------------------------------------- | |
--To find the total counts of data types of the columns in all the databases. - SQL Server 2012.-- | |
-------------------------------------------------------------------------------------------- | |
USE tempdb | |
-- Result Table | |
CREATE TABLE DataTypeDetails ( | |
DataBaseName VARCHAR(30) | |
,IMAGE INT | |
,XML INT |
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
--To find the no. of active connections in sql server | |
SELECT db_name(dbid) as database_name, loginame, count(dbid) as no_of_connections | |
FROM sys.sysprocesses | |
WHERE spid > 50 | |
GROUP BY dbid, loginame |
I hereby claim:
- I am rajanand on github.
- I am rajanand (https://keybase.io/rajanand) on keybase.
- I have a public key whose fingerprint is CA06 4C4C 6EC5 654B B19D 6915 D34D E539 6E07 91B6
To claim this, I am signing this object:
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
#factorial in python using recursion | |
# visualize: http://go.rajanand.org/python_factorial_function | |
def fact(n): | |
if n==1: | |
return n | |
return n*fact(n-1) | |
print fact(5) |
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. Get all the session id for the database. | |
-- 2. Kill all the session id. | |
-- 3. Drop database | |
--================================================ | |
DECLARE @TOTAL_CONNECTIONS INT; | |
DECLARE @INDEX INT; | |
DECLARE @RESTORE_DB_NAME VARCHAR(100); | |
DECLARE @SQL_KILL_SESSION NVARCHAR(1000); | |
DECLARE @SQL_DROP_DB NVARCHAR(1000); |
In R programming #
is used to comment a code. If a particular line is commented in a script, when the script is executed, anything after a #
will be ignored. There is no separate multi-line (a block comment) comments unlike other languages like HTML, SQL, JavaScript, Java etc.
#Calculate 5 + 7
R can be used as a simple calculator. Consider the following arithmetic operators.
OlderNewer