Skip to content

Instantly share code, notes, and snippets.

View PaulTR's full-sized avatar

Paul Ruiz PaulTR

  • Google
  • Boulder, Colorado, USA
View GitHub Profile
[
{
"name": "Reticulated Giraffe",
"species": "Giraffa camelopardalis reticulata",
"description": "The reticulated giraffe (Giraffa camelopardalis reticulata), also known as the Somali giraffe, is a subspecies of giraffe native to Somalia, southern Ethiopia, and northern Kenya. Reticulated giraffes can interbreed with other giraffe subspecies in captivity or if they come into contact with populations of other subspecies in the wild. \nThe reticulated giraffe is among the most well-known of the nine giraffe subspecies. Together with the Rothschild giraffe, it is by far the giraffe most commonly seen in zoos. Its coat consists of large, polygonal, liver-colored spots outlined by a network of bright-white lines. The blocks may sometimes appear deep red and may also cover the legs. The extraordinary height of giraffes is attributed to a ritual known as \"necking\", where two males fight for reproduction rights by slamming their necks into one another. The giraffes with the tallest and
[
{
"name": "Elephants",
"latitude": 39.749157,
"longitude": -104.953616
},
{
"name": "Tigers",
"latitude": 39.749817,
"longitude": -104.949195
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="This is a test">
<PreferenceCategory
android:title="Inline Preference">
<CheckBoxPreference
android:key="checkbox_preference"
android:title="CheckboxPreference"
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mVideo = (Video) getActivity().getIntent().getSerializableExtra( EXTRA_VIDEO );
row = new DetailsOverviewRow( mVideo );
//addAction has been deprecated
row.setActionsAdapter(new SparseArrayObjectAdapter() {
private void detectBeacons() {
List<BeaconState.TypeFilter> filters = new ArrayList<>();
filters.add(BeaconState.TypeFilter.with(
//"2F234454F4911BA9FFA6",
"EDDYSTONE_UID",
"reflected-disk-355/Test2"));
Awareness.SnapshotApi.getBeaconState(mGoogleApiClient, filters )
.setResultCallback(new ResultCallback<BeaconStateResult>() {
@Override
import os
import time
import requests
from slackclient import SlackClient
# add bot id and slack bot token
BOT_ID =
SLACK_BOT_TOKEN =
# constants
AT_BOT = "<@" + BOT_ID + ">"
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.IOT_LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
public class MainActivity extends Activity implements HCSR501.OnMotionDetectedEventListener {
private HCSR501 mMotionDetector;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
try {
mMotionDetector = new HCSR501(BoardDefaults.getMotionDetectorPin() );