Skip to content

Instantly share code, notes, and snippets.

View sahilshekhawat's full-sized avatar

Sahil Shekhawat sahilshekhawat

  • Sunnyvale, California
View GitHub Profile
#include <Wire.h>
// The name of the sensor is "MPU-6050".
// For program code, I omit the '-',
// therefor I use the name "MPU6050....".
// Register names according to the datasheet.
// According to the InvenSense document
@sahilshekhawat
sahilshekhawat / Testing.ipynb
Created January 4, 2015 16:26
(500) Internal Server Error while converting IPython Notebook to Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
import os
import sys
import signal
import webbrowser
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
class Server(object):
#!/usr/bin/env python
import os
import webbrowser
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
def run_server(port=8000, scene_file="Null", directory="static/"):
#change dir to static first.
os.chdir(directory)
from sympy import symbols, Symbol, acos
from sympy.physics.mechanics import *
from sympy.physics.vector import dot
from numpy import linspace
from pydy.system import System
from numpy import pi, sqrt
from pydy.viz.shapes import Cylinder, Sphere
from pydy.viz.scene import Scene
@prefix : <http://www.semanticweb.org/shubham/ontologies/2015/9/untitled-ontology-5#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://www.semanticweb.org/shubham/ontologies/2015/9/untitled-ontology-5> .
<http://www.semanticweb.org/shubham/ontologies/2015/9/untitled-ontology-5> rdf:type owl:Ontology .
package com.example.sahil.pcsma_ass1_android;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.AsyncTask;
import android.os.Environment;
import android.support.design.widget.Snackbar;
Get the following required documents when you visit branch.
1.Visa application form (Form 14 A) duly filled i.e. Date, Sign, Occupation, Address as per passport, hotel
complete details with telephone number and pin code
2.Passport valid for 6 months
3.Two recent color photographs undamaged, matt finish sized 35 mm x 45 mm with front view on a white
background, without borders. The face should cover 80% of the photograph. Avoid wearing light color shirt/
top in order to have better and clear picture. It is mandatory to write applicants name and passport number
on back of photograph provided with the application
4.Covering letter from the applicant stating purpose of visit
5.Invitation Letter from your Family / Friends in Singapore with their NRIC No or Fin No. mentioned on the

Keybase proof

I hereby claim:

  • I am sahilshekhawat on github.
  • I am sahilshekhawat (https://keybase.io/sahilshekhawat) on keybase.
  • I have a public key whose fingerprint is 8D6E 374D 58FC 046A BABC C6FF 829E D817 F43D BC83

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<style-scheme id="plain" _name="Plain" version="1.0">
<author>Sahil Shekhawat</author>
<_description>Just plain text for interview practice.</_description>
<color name="comment_color" value="#000000"/>
<color name="number_color" value="#000000"/>
<color name="string_color" value="#000000"/>
<color name="boolean_color" value="#000000"/>