Skip to content

Instantly share code, notes, and snippets.

View crazyrohila's full-sized avatar
🏠
Working from home

Sanjay Rohila crazyrohila

🏠
Working from home
View GitHub Profile
@crazyrohila
crazyrohila / d8_basic.info.yml
Last active August 29, 2015 14:16
[Drupal8] simple info file
name: D8 custom theme
type: theme
description: 'D8 custom theme'
package: Custom
core: 8.x
# This is comment.
@crazyrohila
crazyrohila / SassMeister-input.scss
Created February 28, 2015 14:36
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
// @crazyrohila
// Global colors.
$colors: (
dark-gray: rgb(153, 153, 153),
hulk: rgb(119, 167, 109),
@crazyrohila
crazyrohila / Editable-stylesheet.markdown
Created February 27, 2015 19:39
Editable stylesheet
@crazyrohila
crazyrohila / SassMeister-input.scss
Created January 12, 2015 06:49
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
/**
* Color function.
*/
// Map to store color as key/values.
@crazyrohila
crazyrohila / SassMeister-input.scss
Created December 29, 2014 13:43
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
// Demo: Maps and Error handling in sass.
$colors: (
dark-gray: rgb(153, 153, 153),
gray: rgb(204, 204, 204),
@crazyrohila
crazyrohila / SassMeister-input.scss
Last active August 29, 2015 14:12
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
// Demo: @at-root and "&" selector
// Simple example with @at-root and & selector.
ul {
display: flex;
@crazyrohila
crazyrohila / hasExtension
Created November 13, 2014 20:01
has File Extension
/**
* Helper function to check file extension for <input type="file"> element.
* @param Array exts An array containing extension to check. eg. ['.png', '.zip'].
* @return Boolean returns ture only if all files are matched given extension otherwise returns false.
*/
$.fn.hasExtension = function(exts) {
var file_list = this[0].files;
for (var i = 0, file; file = file_list[i]; i++) {
var fileName = file.name;
@crazyrohila
crazyrohila / SassMeister-input.scss
Created September 14, 2014 18:07
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
.block {
foo: bar1;
@at-root {
$ref: &;
:not(#{$ref}--modifier) &__elem {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
function Person(name) {
@crazyrohila
crazyrohila / SassMeister-input.scss
Created August 4, 2014 09:44
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.0)
// ----
%header {
h2 {
color: yellow;
}
h3 {