Skip to content

Instantly share code, notes, and snippets.

RJ722 / basic_server.js
Created Jan 16, 2017 — forked from iamareebjamal/basic_server.js
Basic Node Server to capture images and display in multipart using boundary
View basic_server.js
/* Node Server
* Captures image and displays them using multipart and boundary headers
* 16th Jan 2016
* Author : Areeb Jamal, Rahul Jha
var fs = require('fs'),
http = require('http'),
express = require('express'),
NodeWebcam = require("node-webcam");
RJ722 / livecam.js
Last active Jan 19, 2017
Enables live streaming of webcam on a webserver which can furthur be harnessed for access over LAN
View livecam.js
// This would enable the user to stream webcam's output to a URL which could be accessed over a network
// Major code from:
var ip = ''; // Please Replace with your IP, otherwise you would not be able to serve it over on network!
const LiveCam = require('livecam');
const webcam_server = new LiveCam
// address and port of the webcam UI
'ui_addr' : ip,
RJ722 / livecam.js
Last active Jan 19, 2017
changes in livecam module for windows support
View livecam.js
// Original File:
// Revised, because it was not working on widows, so I just wanted the author to know wethet it was me or something else is broken.
* @class GstLaunch
* @brief Class that encapsulates "gst-launch" executable.
function GstLaunch() {
const gst_launch_executable = 'gst-launch-1.0';
RJ722 /
Last active Mar 21, 2017
This file contaics all the gsoc projects I want to contribute to along with any reviews and notes

Potential Organisations

Organisations Notes
Coala Beginner friendly
Ceph           Can also work with outreachy, so pretty centralized for me
Cadasta         Outreachy Page link
Open Astronomy Ideas Page - Look into Jupyter widgets for Astronomy
from itertools import chain
import unittest
class AspectInstanceTest(unittest.TestCase):
def test_tastes(
self, SubAspect, SubAspect_tastes, SubAspect_taste_values
View coala_errors.log
===================================================================================== test session starts ======================================================================================
platform linux -- Python 3.5.2, pytest-3.0.6, py-1.4.32, pluggy-0.4.0
rootdir: /home/im_ishan/Desktop/Rahul/coala, inifile: setup.cfg
plugins: xdist-1.15.0, timeout-1.2.0, mock-1.5.0, env-0.6.0, cov-2.4.0
timeout: 35.0s method: signal
collected 613 items
coalib/bearlib/ ..
coalib/bearlib/abstractions/ .
coalib/bearlib/aspects/ .
from RPi.GPIO import *
import time
# Physical Pins:
low_pins =
# Physocal Pins:
RJ722 /
Created Jun 1, 2017
Source range acquisition from a given node
st='''import things\nclass foo:\n #There are comments\n print "hello" \n\ndef bla():\n a = 1\n b = 2\n c= a+b\n print c'''
import ast
tree = ast.parse(st)
for entry in tree.body:
if isinstance(entry, ast.FunctionDef):
lastBody = entry.body[-1]
while isinstance (lastBody,(ast.For,ast.While,ast.If)):
lastBody = lastBody.Body[-1]
View bodhi_bootstrap_error
Bootstrapping bodhi...
Trying 'rm -rf bodhi-python2.7'
Trying 'virtualenv --no-site-packages -p /usr/bin/python2.7 bodhi-python2.7'
New python executable in /Users/rahuljha/Documents/bodhi/bodhi-python2.7/bin/python
Installing setuptools, pip, wheel...done.
Running virtualenv with interpreter /usr/bin/python2.7
View bodhi_develop_output
running develop
running egg_info
writing bodhi.egg-info/PKG-INFO
writing top-level names to bodhi.egg-info/top_level.txt
writing dependency_links to bodhi.egg-info/dependency_links.txt
reading manifest file 'bodhi.egg-info/SOURCES.txt'
reading manifest template ''
writing manifest file 'bodhi.egg-info/SOURCES.txt'
running build_ext
Creating /Users/rahuljha/Documents/bodhi/bodhi-python2.7/lib/python2.7/site-packages/bodhi.egg-link (link to .)