Skip to content

Instantly share code, notes, and snippets.

@rahulsom
rahulsom / README.md
Created June 3, 2015 14:55
Confluence Calendar for Dashing

Confluence Calendar for Dashing

This is designed to pull out .ics representations of your calendar from confluence and render upcoming events.

@rahulsom
rahulsom / lgtm.coffee
Created April 12, 2015 03:35
Hubot lgtm script
# Description:
# When someone says LGTM, presents an image from LGTM.in
#
# Will ignore users set in HUBOT_LGTM_IGNORE_USERS (by default, none).
#
# Dependencies:
# None
#
# HUBOT_LGTM_IGNORE_USERS (optional, format: "user1|user2", default "lgtm|jira")
#
@rahulsom
rahulsom / aliases.sh
Last active August 29, 2015 14:16
Get Sprint Notes from JIRA
alias releaseNotes="groovy https://gist.githubusercontent.com/rahulsom/a7da12c7956ab08fce4b/raw/release-notes.groovy"
alias sprintNotes="groovy https://gist.githubusercontent.com/rahulsom/a7da12c7956ab08fce4b/raw/sprint-notes.groovy"
@rahulsom
rahulsom / MMPReactiveStompClient.podspec
Created February 28, 2015 00:02
Podspec for Reactive Sockets
Pod::Spec.new do |s|
s.name = "MMPReactiveStompClient"
s.version = "0.1.4"
s.summary = "A reactive WebSocket/STOMP client based on ReactiveCocoa"
s.description = <<-DESC
MMPReactiveStompClient is a reactive WebSocket/STOMP client library based on ReactiveCocoa and SocketRocket.
Features:
* Signal for raw WebSocket.
* Signal for STOMP frames, messages, and subscription.
@rahulsom
rahulsom / Ele.groovy
Last active November 29, 2016 13:58
Mahout with Groovy - the faster way
@Grab(group = 'org.apache.mahout', module = 'mahout-core', version = '0.9')
import org.apache.mahout.cf.taste.impl.common.FastByIDMap
import org.apache.mahout.cf.taste.impl.common.FastIDSet
import org.apache.mahout.cf.taste.impl.model.file.FileDataModel
import org.apache.mahout.cf.taste.impl.recommender.GenericItemBasedRecommender
import org.apache.mahout.cf.taste.impl.similarity.TanimotoCoefficientSimilarity
def mlDir = '/Users/rahulsomasunderam/Downloads/ml-100k'
def f = new File("$mlDir/u.data")
@rahulsom
rahulsom / FirstPass.groovy
Last active August 29, 2015 14:08
CCD Analyzer
/*
* GPars (pronounced Jeepers) is a groovy library that offers multiple concurrency models - executors, parallel
* collections, actors, message passing, etc.
* So you can choose one depending on what you need.
*
* We just happen to use parallel collections
*/
@Grab("org.codehaus.gpars:gpars:1.2.1")
import groovyx.gpars.GParsPool
@rahulsom
rahulsom / keybase.md
Created September 30, 2014 04:02
keybase.md

Keybase proof

I hereby claim:

  • I am rahulsom on github.
  • I am rahulsom (https://keybase.io/rahulsom) on keybase.
  • I have a public key whose fingerprint is 901A 4B49 02BC AFF3 916D A7EF EF06 1F25 9237 B7B4

To claim this, I am signing this object:

@rahulsom
rahulsom / JSONModel.podspec
Created September 5, 2014 15:48
Support for Extreme nesting and key mappers in JSONModel
Pod::Spec.new do |s|
s.name = "JSONModel"
s.version = "1.0.2"
s.summary = "Magical Data Modelling Framework for JSON. Create rapidly powerful, atomic and smart data model classes."
s.homepage = "http://www.jsonmodel.com"
s.license = { :type => 'MIT', :file => 'LICENSE_jsonmodel.txt' }
s.author = { "Marin Todorov" => "touch-code-magazine@underplot.com" }
s.source = { :git => "https://github.com/rahulsom/JSONModel.git" }
@rahulsom
rahulsom / unjamf.sh
Last active February 11, 2023 08:35
UnJamf a machine
#!/bin/bash -e
USERNAME=$(whoami)
sudo /usr/sbin/jamf removeFramework
sudo dscl . -mcxdelete /Computers/localhost || echo "No /Computers/localhost"
sudo dscl . -mcxdelete /Users/${USERNAME}
sudo rm -rf /Users/${USERNAME}/Library/Preferences/com.apple.finder.plist
echo "..Done"
@rahulsom
rahulsom / EBPhotoPages.podspec
Last active August 29, 2015 14:02
EBPhotoPages
Pod::Spec.new do |s|
s.name = 'EBPhotoPages'
s.version = "0.9.3"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = "A photo gallery for iOS with a modern feature set. Similar features as the Facebook photo browser."
s.homepage = 'https://github.com/bjong-nliven/EBPhotoPages'
s.author = "Eddy Borja"
s.source = { :git => 'https://github.com/bjong-nliven/EBPhotoPages.git' }
s.platform = :ios, '7.0'
s.source_files = 'EBPhotoPagesController/*.{h,m}'