Skip to content

Instantly share code, notes, and snippets.

View Shridhad's full-sized avatar
:octocat:

Shridhar Deshmukh Shridhad

:octocat:
View GitHub Profile
@Shridhad
Shridhad / SpecRunner.html
Last active August 29, 2015 14:02
Testem CI
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Spec Runner</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-2.0.0/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="lib/jasmine-2.0.0/jasmine.css">
<script type="text/javascript" src="lib/jquery.js"></script>
@Shridhad
Shridhad / SassMeister-input.scss
Created November 6, 2014 05:34
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
/* Alias */
$active-tile-background-color: #4C9CEA;
$inactive-tile-background-color: #FFF;
$active-text-color: #FFF;
$inactive-text-color: #000;
@Shridhad
Shridhad / SassMeister-input.scss
Created November 6, 2014 05:37
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
/* Lists */
$states: active inactive;
$tile-types: business home;
%active-text-color {
@Shridhad
Shridhad / toDOM.js
Created November 15, 2014 17:38
Convert the string into DOM element
String.prototype.toDOM = function() {
var element = document.createElement("div"),
fragment = document.createDocumentFragment();
element.innerHTML=this;
fragment.appendChild(element.firstChild);
return fragment;
};
@Shridhad
Shridhad / dabblet.css
Created October 21, 2012 07:36
Untitled
div {
padding: 2px 5px;
margin: 2px;
background: red;
}
.div {
background: black;
}
@Shridhad
Shridhad / dabblet.css
Created October 21, 2012 10:10
Untitled
div {
padding: 5px;
margin: 2px;
background: black;
}
.one {
background: red;
display: run-in;
padding: 0px;
@Shridhad
Shridhad / dabblet.css
Created October 22, 2012 06:07
Untitled
.container {
color: white;
background: black;
}
h4 {
background: red;
display: inline-block;
margin: 0px;
padding: 5px;
@Shridhad
Shridhad / dabblet.css
Created October 22, 2012 11:37
Untitled
div {
background: black;
padding: 5px;
margin: 10px;
color: white;
}
.one {
background: red;
display: run-in;
@Shridhad
Shridhad / dabblet.css
Created October 22, 2012 11:51
Untitled
.container {
width: 600px;
height: 300px;
position: relative;
}
.top, .bottom {
position: absolute;
width: 100%;
}
@Shridhad
Shridhad / linear-gradient.scss
Created December 11, 2012 06:37 — forked from jmblog/linear-gradient.scss
linear-gradient.scss
$css3-ie-support: 0 !default;
@mixin linear-gradient($topColor, $bottomColor) {
background-image: -moz-linear-gradient(top, $topColor, $bottomColor);
background-image: -webkit-gradient(linear, left top, left bottom, from($topColor), to($bottomColor));
// If you set the output style as "compressed", it doesn't work well...
@if $css3-ie-support == 1 {
$ieTopColor: rgb(red($topColor), green($topColor), blue($topColor));
$ieBottomColor: rgb(red($bottomColor), green($bottomColor), blue($bottomColor));