Skip to content

Instantly share code, notes, and snippets.

View adityab's full-sized avatar

Aditya Bhatt adityab

View GitHub Profile
@adityab
adityab / keybase.md
Created June 29, 2015 11:51
Keybase verification

Keybase proof

I hereby claim:

  • I am adityab on github.
  • I am adityab (https://keybase.io/adityab) on keybase.
  • I have a public key whose fingerprint is A8CC 4D25 3BF1 BA6C F6D7 EDAE 5A01 4368 94BF EC2C

To claim this, I am signing this object:

diff --git a/webodf/tests/ops/transformationtests.xml b/webodf/tests/ops/transformationtests.xml
index ab2d49b..2796d0c 100644
--- a/webodf/tests/ops/transformationtests.xml
+++ b/webodf/tests/ops/transformationtests.xml
@@ -1294,6 +1294,21 @@
<office:text><text:p>a</text:p><text:p>bc</text:p></office:text>
</after>
</test>
+ <test name="MergeParagraphSplitParagraph_sameSourcePos">
+ <before>
<html>
<head>
<meta name="viewport" content="width=device-width, target-densityDpi=device-dpi, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script>
</script>
<style>
#toolbar {
text-align: center;
overflow: hidden;
top: 0;
@adityab
adityab / gist:4274846
Created December 13, 2012 07:50
A mostly minimal vimrc
set nocompatible
syntax on
set backspace=eol,indent,start
set autoindent
set smartindent
set cursorline
set incsearch
@adityab
adityab / gist:2648645
Created May 9, 2012 20:43
Sample CSS theme for Awwation
@import url(http://fonts.googleapis.com/css?family=Berkshire+Swash);
text {
font-family: 'Berkshire Swash', cursive;
text-shadow: 0px 0px 8px rgba(150, 150, 150, 1);
}
rect {
stroke: #AEAEFF;
}
@adityab
adityab / gist:2648105
Created May 9, 2012 19:11
Out-Of-Bounds SVG example
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100" height="100">
<rect x="10" y="10" width="50" height="80" rx="-10" ry="-10" fill="red"/>
</svg>
@adityab
adityab / soziframes.js
Created May 9, 2012 10:06 — forked from chaosct/soziframes.js
sozi frame generator using phantomjs
/*
soziframes.js : transforming sozi SVG animations
to a sequence of PNG images, so you can make
a proper video without capturing the screen.
author: Carles F. Julià < chaos.ct _AT_ gmail com >
You need phantomjs to run it!
*/
var page = require('webpage').create(),
@adityab
adityab / app.js meme publishing
Created December 29, 2011 00:16
memecached code
// publish meme
everyone.now.publish = function(meme) {
if(meme.name && meme.text.line1 && meme.text.line2) {
db.collection('memes', function(err, collection) {
// add a date field and save
meme.date = Date.now();
collection.insert(meme, function(err) {
if(!err)
everyone.now.receiveMeme(meme);
});