Skip to content

Instantly share code, notes, and snippets.

View Mindstormer619's full-sized avatar
💭
Vibing ❄️

Siddarth Iyer Mindstormer619

💭
Vibing ❄️
View GitHub Profile
public class MainActivity extends AppCompatActivity implements SensorEventListener {
Socket socket;
SensorManager sensorManager;
Sensor accelerometer;
TextView textView;
String ip_addr;
String y_value;
boolean isRunning=true;
@Override
protected void onCreate(Bundle savedInstanceState) {
@Mindstormer619
Mindstormer619 / 0_reuse_code.js
Created September 11, 2016 15:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
/*
Shameless port of a shameless port
@defunkt => @janl => @aq
See http://github.com/defunkt/mustache for more info.