Skip to content

Instantly share code, notes, and snippets.

View ShekharReddy4's full-sized avatar
💻
Graduated

Shekhar Reddy ShekharReddy4

💻
Graduated
  • WA, US
  • 15:27 (UTC -08:00)
View GitHub Profile
var lockHtml = "<div class='toggle' id='lockInfo'>You cannot modify this site. If you wish to claim ownership of this site, please contact the ";
lockHtml += "<a href='http://cl.openmrs.org/track/click.php?u=30039905&id=c4087a259d664e978fd6f3630b9188bb&url=";
lockHtml += "http%3A%2F%2Fgo.openmrs.org%2Fhelpdesk&url_id=04c52b64769a7567d21db835fcd45f51f99842bd' target='_blank'> OpenMRS HelpDesk.</a></div>";
var fadeHtml = "<div class='toggle' id='fadeInfo'> Sites that have not been updated for more than six months will begin to fade away. ";
fadeHtml += "Fading can be turned off through the controls on this page.</div>";
var uniqueMarker = null;
function initLegendChoice() {
$("#fadeCheckbox").prop('checked', true);
$("#group-checkbox").prop('checked', true);
@ShekharReddy4
ShekharReddy4 / multipass.js
Created July 8, 2016 21:11 — forked from tstachl/multipass.js
A multipass example written for Node.js.
var crypto = require('crypto')
// site name is your desk.com subdomain
, siteName = 'site_name'
// api key is generated here: https://your_subdomain.desk.com/admin/channels/support-center/auth_settings
, apiKey = 'multipass_token'
, data = JSON.stringify({
uid: '19238333',
expires: (new Date(Date.now() + 120000)).toISOString(),
customer_email: '[email protected]',
<!DOCTYPE html>
<html>
<head>
<link href="../styles.css" rel="stylesheet">
<script src="http://maps.google.com/maps/api/js"></script>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdn.jsdelivr.net/gmap3/7.1.0/gmap3.min.js"></script>
</head>
@ShekharReddy4
ShekharReddy4 / atlas.sql
Last active February 1, 2024 18:55
Populate the openmrs-contrib-atlas-node database
-- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: atlas
-- ------------------------------------------------------
-- Server version 5.5.49-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
#include <stdio.h>
int* transpose_matrix(int **matrix, int order){
int tmatrix[3][3];
int i,j,k;
for ( i = 0; i < order; i++) {
for ( j = 0; j < order; j++) {
matrix[i][j] = tmatrix[j][i];
}
}
return tmatrix;
@ShekharReddy4
ShekharReddy4 / getting-started.md
Created July 29, 2016 22:59 — forked from joepie91/getting-started.md
Getting started with Node.js

"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question.

And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)

Javascript refresher

Especially if you normally use a different language, or you only use Javascript occasionally, it's easy to misunderstand some of the aspects of the language.

These links will help you refresh your knowledge of JS, and make sure that you understand the OOP model correctly.

Project Title Student Display Name Organization Name Mentors
Key mapping GUI Tomasito665 Mixxx DJ Software RJ Ryan, Ferran Pujol Camins
YAPDNS system64 The Honeynet Project Pietro Delsante, Fedele Mantuano, Andrea De Pasquale
FFv1 P frame support sdolganov FFmpeg Reynaldo Verdejo, michaelni
coala: Integrating coala with the Eclipse IDE Sheikh Araf Python Software Foundation Harsh Dattani, Lasse Schuirmann (sils1297), AbdealiJKothari
User interfaces for Tracker Dilushi Sustainable Computing Research Group ( SCoRe ) Dinith Minura, Namal Jayasuriya, Rumesh
File Support izgzhen Mozilla Manishearth
KolibriOS. Development of TLS/SSL library DenisKarpenko KolibriOS Jeffrey A., Pathoswithin
IPFS friendly & distributed version of Amber skbly7 Berkman Center for Internet and Society Genève
Cache layer for jpf-nhandler Jayton Java Pathfinder Team franck, Nastaran, Cyrille Artho
import csv
import cStringIO
import codecs
import glob
import json
import requests
def fetch_jsons():
url = ('https://summerofcode.withgoogle.com/api/program/current/project/'
@ShekharReddy4
ShekharReddy4 / War Movies List
Created August 8, 2016 04:06 — forked from bastos/War Movies List
War Movies List
ok 25. The Pianist (2002)
24. Seargeant York (1941)
23. Stalag 17 (1953)
ok 22. The Thin Red Line (1998)
21. The African Queen (1951)
20. MASH (1970)
19. Downfall (2005)
18. Patton (1970)
17. All Quiet on the Western Front (1930)
ok 16. Letters from Iwo Jima (2006)
@ShekharReddy4
ShekharReddy4 / readme.md
Created August 21, 2016 07:47 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser