Skip to content

Instantly share code, notes, and snippets.

View jayrambhia's full-sized avatar

Jay Rambhia jayrambhia

View GitHub Profile
@jayrambhia
jayrambhia / barChart.js
Last active August 29, 2015 13:59
Multibar transition using d3
axis = function(){
var ldomain = 0, rdomain = 0, lrange = 0, rrange = 0;
var orientation = "left", ticks = 0;
var xpadding = 10, ypadding = 10;
var plotted = false;
var scale, Axis, AxisGroup;
function chart(selection){}
#include <stdio.h>
#include <jni.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <android/log.h>
#define APPNAME "Exposure jni"
Name Stmts Miss Cover Missing
--------------------------------------------------------------------------
simplecv 7 3 57% 23-25
simplecv.base 172 98 43% 12-13, 27-32, 83, 88-89, 96-97, 125, 133, 141-162, 184-185, 191, 203, 208, 212-227, 234-242, 262-285, 312-349, 360
simplecv.color 113 1 99% 364
simplecv.color_model 60 11 82% 34-37, 56-60, 170, 224, 240
simplecv.core 0 0 100%
simplecv.core.camera 0 0 100%
simplecv.core.camera.camera 151 78 48% 35, 117-121, 141-143, 150, 154-182, 187, 190, 194-195, 207, 235-245, 258-264, 289, 292, 298-299, 322-356
simplecv.core.camera.frame_source 133 40 70% 31, 37, 84, 134, 199-201, 208-214, 237, 262, 270, 309, 328-363, 366, 369
public class QueryObject {
private String queryTtile;
private String queryAlbum;
private String queryArtist;
private String queryDuration;
private String filepath;
private String _id;
public QueryObject(Cursor cursor) {
public class PlayList extends ArrayAdapter<AudioObject> {
private int layoutResource;
private LayoutInflater inflater;
private final Context context;
public PlayList(Context con, int resource) {
super(con, resource);
layoutResource = resource;
context = con;
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="60dp"
android:weightSum="3"
android:background="@color/orange_color_1"
android:orientation="horizontal">
<ImageView
android:layout_width="0dp"
public class SignUpActivity extends Activity {
private String nameString;
private String emailString;
private String fbID;
// some stuff
// onCreate, onPause, set layout, create buttons, etc
private void signUpUsingFacebook() {
Toast.makeText(this, "Connecting to facebook", Toast.LENGTH_LONG).show();
Session.openActiveSession(this, true, Arrays.asList("email", "user_birthday"), new Session.StatusCallback() {
<?php
require './inc/aws.phar';
use Aws\Ses\SesClient;
/**
* SESUtils is a tool to make it easier to work with Amazon Simple Email Service
* Features:
* A client to prepare emails for use with sending attachments or not
*
* There is no warranty - use this code at your own risk.
/*
* Copyright (C) 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jayrambhia
jayrambhia / ReceiverService.java
Last active August 29, 2015 14:16
AMQP chat/message server and client
package com.fenchtose.amqptest;
import android.app.Service;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.util.Log;