Skip to content

Instantly share code, notes, and snippets.

@rahulsom
rahulsom / MXLCalendarManager.podspec
Last active August 29, 2015 14:02
MXLCalendarManager As Pod
Pod::Spec.new do |s|
s.name = 'MXLCalendarManager'
s.version = '1.0.0'
s.license = { :type => 'MIT License', :file => 'LICENSE.txt' }
s.summary = 'A set of classes used to parse and handle iCalendar (.ICS) files'
s.homepage = 'https://github.com/rahulsom/MXLCalendarManager'
s.author = { 'Kiran Panesar' => '[email protected]' }
s.source = { :git => 'https://github.com/rahulsom/MXLCalendarManager.git'}
s.platform = :ios, '4.0'
s.source_files = 'MXLCalendarManager/*.{h,m}'
@rahulsom
rahulsom / ACEDrawingView.podspec
Last active August 29, 2015 14:01
ACEDrawingView Rahul's fork
Pod::Spec.new do |s|
s.name = 'ACEDrawingView'
s.version = '1.3.0'
s.license = { :type => 'Apache 2.0 License', :file => 'LICENSE.txt' }
s.summary = 'An open source iOS component to create a drawing app.'
s.homepage = 'https://github.com/rahulsom/ACEDrawingView'
s.author = { 'Stefano Acerbetti' => '[email protected]' }
s.source = { :git => 'https://github.com/rahulsom/ACEDrawingView.git' }
s.platform = :ios, '4.0'
s.source_files = 'ACEDrawingView/*.{h,m}'
@rahulsom
rahulsom / README.md
Last active January 24, 2020 18:17
Translate text to all languages

Run Translations with your Message.

groovy Translations.groovy "Welcome\!"

Then point your browser to http://localhost:8000/.

You get something like this: Image

@rahulsom
rahulsom / AnonCcd.groovy
Created November 25, 2013 23:55
CDA Anonymizer
import groovy.xml.XmlUtil
import java.security.SecureRandom
import java.text.SimpleDateFormat
void anonymize(Reader reader, Writer writer) {
def xml = new XmlParser().parse(reader)
xml.recordTarget.patientRole.with { patientRole ->
patientRole.id.each {
@rahulsom
rahulsom / output.txt
Created November 14, 2013 06:53
Hapi & LigthHl7Lib Performance Benchmarks
Hapi: 2.604747 ms per cycle
LightHl7Lib: 0.00451332 ms per cycle
@rahulsom
rahulsom / jenkins.jelly
Last active April 3, 2019 20:13
Jelly Template for Jenkins.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- If you delete this tag, the sky will fall on your head -->
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>ZURBemails</title>
<style data-inline="true">
@rahulsom
rahulsom / README.md
Created December 11, 2012 17:40
Switching JVMs in Mountain Lion

Switching JVMs in Mountain Lion

Apple made it incredibly difficult to switch JVMs since Mountain Lion. This might make it slightly easier.

Installation

  1. Download jvm.sh to ~/bin
  2. Create an alias for jvm.sh to jvm in ~/.profile or ~/.zshrc or whatever
@rahulsom
rahulsom / Foo.groovy
Created July 19, 2012 16:31
Reloading Scripts in groovy, Erlang style
public class ReloadingScript {
/**
* The Class of the script
*/
Class clazz
/**
* Runs the script in a Erlang-ish loop
*
@rahulsom
rahulsom / nettest.sh
Created June 25, 2012 02:55
MacbookPro5,1 has a serious problem with it's wireless. Apple will not acknowledge it, but here's a fix
#!/bin/sh
#
# Tests network status and resets Airport if required
#
usage() {
cat << EOF
Usage: $0 options
-h HOST host to ping
-s <ON|OFF> say out loud: on or off default: OFF
@rahulsom
rahulsom / Demux.groovy
Created June 21, 2012 18:14
HL7 Demuxer
@Grapes([
@Grab('ca.uhn.hapi:hapi-base:1.2'),
@Grab('ca.uhn.hapi:hapi-structures-v26:1.2'),
@Grab('ca.uhn.hapi:hapi-structures-v251:1.2'),
@Grab('ca.uhn.hapi:hapi-structures-v25:1.2'),
@Grab('ca.uhn.hapi:hapi-structures-v24:1.2'),
@Grab('ca.uhn.hapi:hapi-structures-v231:1.2'),
@Grab('ca.uhn.hapi:hapi-structures-v23:1.2'),
@Grab('ca.uhn.hapi:hapi-structures-v22:1.2'),
@Grab('ca.uhn.hapi:hapi-structures-v21:1.2')