Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcell Feher FeherMarcell

View GitHub Profile
View DropboxConnector.h
class DropboxConnector : public RESTConnector
{
private:
bool cacheEnabled = false;
public:
// Reads and sets cache mode
View item_row.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="10dp"
>
<LinearLayout
android:id="@+id/itemData"
View activity_layout.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
android:id="@+id/activityTitleTextview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@FeherMarcell
FeherMarcell / StockPrice.java
Last active Dec 30, 2015
Számítási felhő alapú szoftverfejlesztés Google Web Toolkit / Google AppEngine gyakorlat kódrészletei
View StockPrice.java
public class StockPrice implements Serializable{
private String symbol;
private double price;
private double change;
public StockPrice() {
}
public StockPrice(String symbol, double price, double change) {
@FeherMarcell
FeherMarcell / DatabaseHelper.java
Last active Dec 29, 2015
Budapest University of Technology - Mobile Software Development Android Practise #2 Persistent Data Storage (Todo application)
View DatabaseHelper.java
package hu.bute.daai.mytodoapp.datastorage;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DatabaseHelper extends SQLiteOpenHelper {
public DatabaseHelper(Context context, String name) {
super(context, name, null, DbConstants.DATABASE_VERSION);
@FeherMarcell
FeherMarcell / AndroidManifest.xml - EditTodoActivity node
Last active Dec 28, 2015
Mobile Software Development - Android practise
View AndroidManifest.xml - EditTodoActivity node
<activity android:name="EditTodoActivity" android:theme="@android:style/Theme.Holo.Light.Dialog"></activity>
View MainActivity.java
package com.example.cameraphoto2;
import java.io.File;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
View activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
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"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
View activity_layout.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
android:id="@+id/activityTitleTextview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
View Ball.dart
part of dartpong;
class Ball {
Board board;
num x, y, r;
Ball(this.board, this.x, this.y, this.r) {
draw();