Skip to content

Instantly share code, notes, and snippets.

View DarrienG's full-sized avatar
🦀
Writing Rust probably

Darrien Glasser DarrienG

🦀
Writing Rust probably
View GitHub Profile

The code called to initialize views in onCreate()

       youStockView.setAttributes(
            normalizedNamePair.first, game.getSelfCharacter(), game.getSelfStocksLeft());

        opponentStockView.setAttributes(
            normalizedNamePair.second, game.getOpponentCharacter(), game.getOpponentStocksLeft());
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_nav"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="16dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
sDirections{geocodedWaypoints=[], routes=[Route{bounds=com.darrienglasser.northstar.DirectionsBundle.Bounds@3e0c802, copyrights='Map data ©2016 Google', legs=[Leg{distance=com.darrienglasser.northstar.DirectionsBundle.Distance@731f513, duration=com.darrienglasser.northstar.DirectionsBundle.Duration@8a35350, endAddress='null', endLocation=null, startAddress='null', startLocation=null, steps=[Step{distance=Distance_{text='0.8 mi', value=1226, additionalProperties={}}, duration=Duration_{text='1 min', value=74, additionalProperties={}}, endLocation=null, htmlInstructions='null', polyline=Polyline{points='ssyaGhztrLUO{@k@s@]u@W]OYSeByAe@i@i@w@c@cAOq@OeAEkACyAAs@AYEgAE[CWQq@Se@[c@g@k@e@WoAg@w@YwCs@eBe@iAYsEmA_Bc@q@UOGe@SsAo@{@_@', additionalProperties={}}, startLocation=null, travelMode='null', maneuver='null', additionalProperties={}}, Step{distance=Distance_{text='2.6 mi', value=4116, additionalProperties={}}, duration=Duration_{text='5 mins', value=313, additionalProperties={}}, endLocation=null, htmlInstructio
{
"geocoded_waypoints":[
{
"geocoder_status":"OK",
"place_id":"ChIJ_b9z6W1l44kRHA2DVTbQxkU",
"types":[
"administrative_area_level_1",
"political"
]
},
// Copyright 2016 UMass Lowell Command and Data Handling Team
#include <sys/ioctl.h>
#include <fcntl.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
#include <unistd.h>
#include <iostream>
#include <string>
#include <vector>
/*!
* @file
*/
// Copyright 2016 UMass Lowell Command and Data Handling Team
#include "../include/spacehauc-i2c-dev.h"
#include <sys/ioctl.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
/*!
* @file
*/
// Copyright 2016 UMass Lowell Command and Data Handling Team
#ifndef INCLUDE_SPACEHAUC_I2C_DEV_H_
#define INCLUDE_SPACEHAUC_I2C_DEV_H_
#include <sys/ioctl.h>
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/mainView"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.darrienglasser.grouper.MainActivity">