Skip to content

Instantly share code, notes, and snippets.

View FeherMarcell's full-sized avatar

Marcell Feher FeherMarcell

View GitHub Profile
class DropboxConnector : public RESTConnector
{
private:
bool cacheEnabled = false;
public:
// Reads and sets cache mode
<?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"
<?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 December 30, 2015 02:59
Számítási felhő alapú szoftverfejlesztés Google Web Toolkit / Google AppEngine gyakorlat kódrészletei
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 December 29, 2015 17:19
Budapest University of Technology - Mobile Software Development Android Practise #2 Persistent Data Storage (Todo application)
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 December 28, 2015 09:58
Mobile Software Development - Android practise
<activity android:name="EditTodoActivity" android:theme="@android:style/Theme.Holo.Light.Dialog"></activity>
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;
@FeherMarcell
FeherMarcell / activity_main.xml
Created June 5, 2013 11:22
ImplicitIntentDemoApp
<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" >
<?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"
part of dartpong;
class Ball {
Board board;
num x, y, r;
Ball(this.board, this.x, this.y, this.r) {
draw();