Skip to content

Instantly share code, notes, and snippets.

Sreyantha Chary Sreyanth

Block or report user

Report or block Sreyanth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am sreyanth on github.
  • I am sreyanth (https://keybase.io/sreyanth) on keybase.
  • I have a public key ASAS8PsKjju9YBXLDcwhah8yoE46zTm3gBsmofMoW2GnCgo

To claim this, I am signing this object:

@Sreyanth
Sreyanth / error.log
Created Sep 21, 2015
Cloud 9 ImageMagick Error
View error.log
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... yes
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
View development.log
This file has been truncated, but you can view the full file.
Connecting to database specified by database.yml
OpenIdAuthentication.store is nil. Using in-memory store.
 (7.0ms) select sqlite_version(*)
 (134.0ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author" varchar(255), "email" varchar(255), "body" text, "x" integer, "y" integer, "spectrum_id" integer, "created_at" datetime, "updated_at" datetime, "spectra_set_id" integer DEFAULT 0, "user_id" integer DEFAULT 0, "wavelength" integer, "intensity" integer)
 (71.6ms) CREATE TABLE "devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "description" varchar(100) DEFAULT '' NOT NULL, "height" integer, "width" integer, "calibration_id" integer, "user_id" integer, "range_start" decimal, "range_end" decimal, "created_at" datetime, "updated_at" datetime, "key" varchar(255) DEFAULT '' NOT NULL) 
@Sreyanth
Sreyanth / development.log
Created Sep 17, 2015
SWB Spectrum creation error
View development.log
Started POST "/spectrums" for 127.0.0.1 at 2015-09-08 09:26:38 +0530
Processing by SpectrumsController#create as HTML
Parameters: {"spectrum"=>{"title"=>"dasfladksfjlkj", "notes"=>"qsdlkjsdlgkj", "calibration_id"=>"calibration"}, "tags"=>"dlkfjdflk", "dataurl"=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAACWCAYAAABO3TmMAAAgAElEQVR4XmS9aZNs6ZactWPIc24jQFPfFmqZpFYLJNOEhMEXDOP//xyMwaSqkxkRmD+P+44sKFmpbp+TGbH3O6zBly9fl//0j/78ulyfx3H7PF6vr+P5fB7P13E8Lq/jec1/j+N1vR3P14U/zz+XS/7wceT/fFwux+U4jtvrddwu1+N1PI/84C3/5u9ex3G5Hsflln8vx+V6OZ6P1/H49cwHH8/8xut1PC/HcX0dx/Xx8r/52cuFP38cx/H1fB6P/Mozn3M7vvJDl/6s//N45UGu/vvMH+RZXz7Drc+ev7tdr8fl+Tqej3z7lc9/HL53Hv9+XI97fufy4tn3ea88+4vXO16vl8+R58+zX3y/r6xL3v11PX68LsfPZ57xxXfm33z+r6/H8fvzeXxdL8frnrV9Hsfx4n3zub7Hlee75uHyzz3v8Tquzxfvs/W5X6/HIwvDPl2O5z2LfRyvX4/j43k5fjwux+3p8z0fjyO7lef9uuYb8775shefxzv0617H5cgOv3IO8hNZ68vluL4ux+3If/MT73XPZ2UtPl+v4/F8Ha/n5bhdbwdni/2/9iGenLHX68nfZ01e1zzP6/jKOnztPPDpx/125Xuz6Pkv5+H5PD5zhlgLn5izxfO8jo/r9bg/juPy9Txu+fs8XNb6ejke12/n+vk67seFs3F/+v6v+4Uff
@Sreyanth
Sreyanth / TweakedAutoCalib.js
Last active Aug 29, 2015
Tweaked AutoCalib Code. This is fun!
View TweakedAutoCalib.js
attempt_autocalibrate = function(min_required_intensity) {
//The following two are copied from end; before calling attempt_autocalib
flotoptions.grid.markings = []
$W.plot = $.plot($("#graph"),$W.data,flotoptions);
var max_limit = 5
//min_required_intensity = 20
var max_green = -1000 // We need to find the maximum value of G first
@Sreyanth
Sreyanth / AutoCalib.js
Last active Aug 29, 2015
AutoCalib code for SWB.
View AutoCalib.js
attempt_autocalibrate = function(min_required_intensity) {
//The following two are copied from end; before calling attempt_autocalib
flotoptions.grid.markings = []
$W.plot = $.plot($("#graph"),$W.data,flotoptions);
var max_limit = 5
//min_required_intensity = 20
var max_green = -1000 // We need to find the maximum value of G first
You can’t perform that action at this time.