Skip to content

Instantly share code, notes, and snippets.

View sudheesh001's full-sized avatar

Sudheesh Singanamalla sudheesh001

View GitHub Profile
@sudheesh001
sudheesh001 / HelikarLabVisResponse.xml
Last active August 29, 2015 14:17
The XML response data for the graph visualization on the cellcollective
<?xml version='1.0' encoding='UTF-8'?>
<partial-response><changes><update id="realtimeSimulationGrowl"><![CDATA[<span id="realtimeSimulationGrowl"></span><script id="realtimeSimulationGrowl_s" type="text/javascript">widget_realtimeSimulationGrowl.show([]);</script>]]></update><update id="realtimeSimulation:plotSpeciesMessage"><![CDATA[<span id="realtimeSimulation:plotSpeciesMessage"><span style="font-size: 16px; font-weight: bold; color: red;"></span></span>]]></update><update id="javax.faces.ViewState"><![CDATA[e2s2]]></update><eval><![CDATA[var levels = [{"name":"A20","level":53},{"name":"AKT","level":0},{"name":"Apaf1","level":100},{"name":"APC","level":93},{"name":"BAD","level":100},{"name":"BclX","level":0},{"name":"BID","level":92},{"name":"Cas12","level":100},{"name":"Cas3","level":100},{"name":"Cas3_dummy","level":100},{"name":"Cas6","level":100},{"name":"Cas7","level":100},{"name":"Cas8","level":92},{"name":"Cas9","level":100},{"name":"cFLIP","level":7},{"name":"DNADamageEvent","level":100},{"name":"
@sudheesh001
sudheesh001 / npmlist.js
Created January 22, 2015 17:55
Lists the content of the node_modules/ being used so that they can be put up in the package.json file
var fs = require("fs");
function main() {
fs.readdir("./node_modules", function (err, dirs) {
if (err) {
console.log(err);
return;
}
dirs.forEach(function(dir){
if (dir.indexOf(".") !== 0) {
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
typedef struct node
{
char data[16];
struct node *link;
} NODE;
# LCD.rb
# Execution : ruby LCD.rb -s 2 12345
### option parsing ###
s = $*.size > 1 ? $*.slice!(0..1)[1] : '2'
num = $*[0]
unless s =~ /^[1-9]\d*$/ and num =~ /^\d+$/
puts "Usage: #$0 [-s SIZE] DIGITS"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int nLines;
int nColumns;
char lcdNumber[23][12];
char lcdNumbers[8][23][12];
@sudheesh001
sudheesh001 / te.js
Created August 17, 2014 08:58
L10N:TE keyboard for Gaia, Firefox OS
Keyboards.te = {
label: 'Telugu',
shortLabel: 'te',
imEngine: 'india',
menuLabel: 'తెలుగు',
secondLayout: true,
alternateLayoutKey: '?౧౨౩',
basicLayoutKey: 'అఆఇ',
types: ['text', 'url', 'email'],
width: 11,
@sudheesh001
sudheesh001 / errorlog
Created July 12, 2014 17:44
gaia-debug errors
2147942487JavaScript error: http://system.gaiamobile.org:8080/shared/js/dump.js, line 24: settings is null
JavaScript error: http://system.gaiamobile.org:8080/js/applications.js, line 85: apps.mgmt is null
JavaScript error: http://system.gaiamobile.org:8080/shared/js/settings_listener.js, line 28: settings is null
JavaScript error: http://system.gaiamobile.org:8080/shared/js/idletimer.js, line 101: navigator.addIdleObserver is not a function
JavaScript error: http://system.gaiamobile.org:8080/shared/js/settings_listener.js, line 28: settings is null
JavaScript error: http://system.gaiamobile.org:8080/js/icc.js, line 112: window.navigator.mozSettings is null
JavaScript error: http://system.gaiamobile.org:8080/js/airplane_mode.js, line 17: window.navigator.mozSettings is null
JavaScript error: http://system.gaiamobile.org:8080/js/cell_broadcast_system.js, line 15: settings is null
JavaScript error: http://system.gaiamobile.org:8080/js/value_selector/value_selector.js, line 82: navigator.mozSettings is null
Java
@sudheesh001
sudheesh001 / kuwait.json
Last active August 29, 2015 14:03
Kuwait JSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sudheesh001
sudheesh001 / palindrome.cpp
Created June 26, 2014 18:47
Palindrome check of a string.
#include <iostream>
#include <string>
#include <stdio.h>
using namespace std;
int isPalindrome(char* str)
{
static int length = strlen(str);
if (length<1)
@sudheesh001
sudheesh001 / index.html
Created May 28, 2014 12:44
Vibe - Mozilla India
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Event Portal | Mozilla Vibe</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
var dateToday = new Date();