Skip to content

Instantly share code, notes, and snippets.

@badri
badri / SassMeister-input-HTML.html
Created March 19, 2014 11:46
Generated by SassMeister.com.
<div id="page-wrapper">
<div id="page">
<div class="content-left">
<h2>content left</h2>
<div class="left-bar">
<h2>1. left bar</h2>
<div>
<p>dsfsadfsa safasdfsadf</p>
</div>
</div>
@badri
badri / SassMeister-input-HTML.html
Created March 26, 2014 01:21
Generated by SassMeister.com.
<div id="page">
<div class="right">
<h2> right, fixed</h2>
</div>
<div class="left">
<h2> left, scrollable</h2>
</div>
</div>
@badri
badri / SassMeister-input-HTML.html
Created July 3, 2014 14:44
Generated by SassMeister.com.
<body>
<header>
<div id="header-top">
<img src="http://placehold.it/40x40&text=logo">
<h1>Kalvi</h1>
</div>
<div id="masthead">
Kalvi is an open source LMS.
</div>
</header>
@badri
badri / SassMeister-input-HTML.html
Created July 9, 2014 17:54
Generated by SassMeister.com.
<div id="cover">
<textarea placeholder="Share what's new"></textarea>
</div>
@badri
badri / SassMeister-input-HTML.html
Created July 30, 2014 03:30
Generated by SassMeister.com.
<div class="service">
<div class="container">
<h2><span>Auditing Services</span></h2>
<span class="text">We make sure you comply with the law</span>
</div>
<img src="https://farm4.staticflickr.com/3052/2824190020_e5e53ff7ac_o.jpg" />
</div>
data = {}
c2t = re.compile('to Text Ratio\s+: ([\d\.]+) %\s+</td>')
page_size = re.compile('Page Size</span></td>\s+<td class="linkcrfill1" width="98%" style="padding:0px 7px 0px 7px;" >\s+: (\d+) Bytes')
code_size = re.compile('Code\s+Size </span></td>\s+<td class="linkcrfill1" style="padding:0px 7px 0px 7px;">\s+: (\d+) Bytes')
text_size = re.compile('Text\s+Size </span></td>\s+<td class="linkcrfill1" style="padding:0px 7px 0px 7px;" >\s+: (\d+) Bytes')
words = words.strip().split("\n")
for word in words:
word = re.sub(' ', '%2520', word)
<html>
<style type="text/css">
a:link, a:visited {
text-decoration: none;
}
div
{
border-style: dashed;
border-color: grey;
border-width: 1px;
#!/usr/bin/python
import itertools
import networkx as nx
import random
class Node(object):
def __key__(self):
return str(self.line) + str(self.prev) + str(self.data) + str(self.next)
def __init__(self, char, prev, next, line):
@badri
badri / default_theme.php
Created June 22, 2011 08:57
enabling default theme in drupal
function install_default_theme($theme) {
theme_enable(array($theme));
variable_set('theme_default', $theme);
}
install_default_theme('urban_solice');
@badri
badri / oho.make
Created July 1, 2011 06:55
drushmake.me oho makefile
; ----------------
; Generated makefile from http://drushmake.me
; Permanent URL: http://drushmake.me/file.php?token=a597073754ce
; ----------------
;
; This is a working makefile - try it! Any line starting with a `;` is a comment.
; Core version
; ------------
; Each makefile should begin by declaring the core version of Drupal that all