Skip to content

Instantly share code, notes, and snippets.

View sudheesh001's full-sized avatar

Sudheesh Singanamalla sudheesh001

View GitHub Profile
@sudheesh001
sudheesh001 / keybase.md
Created February 17, 2019 10:58
Keybase Verification

Keybase proof

I hereby claim:

  • I am sudheesh001 on github.
  • I am sudheesh (https://keybase.io/sudheesh) on keybase.
  • I have a public key whose fingerprint is FAA0 909D 5262 3DBC F04D 4A01 1038 EE98 5FB9 0590

To claim this, I am signing this object:

@sudheesh001
sudheesh001 / templates.js
Created August 8, 2016 15:57
Sometimes when things break on loklak webclient
angular.module("templates", []).run(["$templateCache", function($templateCache) {$templateCache.put("about.html","<div class=\"content-wrapper\">\n <div class=\"container about-view-container \">\n <div class=\"row cms-view\">\n <div class=\"col-md-12 about-jumbotron\">\n <h1 class=\"page-header\">About <code>loklak</code></h1>\n <p>This is the front-end of <code>Loklak</code>, an application which is able to collect and analyse messages from various sources, including Twitter. The application is divided into two parts: <a href=\"http://loklak.net\"><code>loklak</code>.net</a>, the front-end (these pages) and <a href=\"http://loklak.org\"><code>loklak</code>.org</a>, the search- and collecting back-end.</p>\n <img src=\"../images/loklak_architecture_overview.png\" width=\"50%\" height=\"50%\">\n\n <p>The back-end is not only able to collect millions of messages anonymously from Twitter, it can also distribute the collection workload into a peer-to-peer network.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Lets Drag a Marker Ria</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
<script type="text/javascript">
var map = null;
function getMap()
@sudheesh001
sudheesh001 / scalingo_loklak_fail.log
Created May 2, 2016 07:51
Loklak server log for scalingo deployments
<-- Start deployment of loklak-server-alpha -->
-----> Cloning custom buildpack: 'https://github.com/aneeshd16/heroku-buildpack-ant-loklak.git'
-----> Installing Apache Ant 1.9.3..... [start]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5399k 100 5399k 0 0 10.6M 0 --:--:-- --:--:-- --:--:-- 10.6M
-----> Installing Apache Ant 1.9.3..... [done ]!
-----> executing /build/98a92a58ab12d204bd7ca28ebbcf264f/.buildpack/apache-ant-1.9.3/bin/ant -Duser.home=/build/98a92a58ab12d204bd7ca28ebbcf264f
@sudheesh001
sudheesh001 / file1.txt
Created November 23, 2015 14:45
Java file read to array, use collections to sort if needed. Just a sample
10
20
30
100 200
1001
221
@sudheesh001
sudheesh001 / statuses.json
Created May 22, 2015 15:22
Sample data for loklak.net
[ {
"key1" : "value",
"key2" : "value",
"key3" : [ "str1", "str2" ],
"key4" : {
"internalKey1" : "val1",
"internalKey2" : "val2"
}
},
{
@sudheesh001
sudheesh001 / TravisCI.log
Created May 1, 2015 11:24
Installation Travis run log for Loklak_webclient
Using worker: worker-linux-docker-be714d91.prod.travis-ci.org:travis-linux-2
Build system information
Build language: node_js
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
@sudheesh001
sudheesh001 / geoloc.md
Created April 3, 2015 10:19
Geolocation retrieval from loklak instead of hash based API

For a sample loklak query which is as follows http://loklak.net/api/search.json?q=sudheesh001 We get the following data

{
    "created_at" : "2015-04-01T06:21:44.000Z",
    "screen_name" : "sudheesh001",
    "text" : "Managed to integrate #loklak by @0rb1t3r into the GEAR Systems project for better governance #IEEE #EPICS",
    "link" : "https://twitter.com/sudheesh001/status/583152246340239361",
    "id_str" : "583152246340239361",
    "source_type" : "TWITTER",
@sudheesh001
sudheesh001 / heart.js
Created April 1, 2015 07:10
The heart that matters
var key, hash = {};
hash.x || (hash.x = hash.x ? ( key=key ? "\uD83D\uDC94":( _lock = (key ? "\u2661":"\uD83D\uDC99"))):(key=key?"\u2661":(_lock = (key?"\uD83D\uDE04":"\u2764"))))
key == _lock
// result of key :heart: