Skip to content

Instantly share code, notes, and snippets.

View SammyVimes's full-sized avatar
🗿
I am a teapot

Semyon Danilov SammyVimes

🗿
I am a teapot
  • Nebius (working on YDB distributed database)
  • block-4-2 static blobstorage group
View GitHub Profile
@SammyVimes
SammyVimes / gist:b292e844216277beb189
Created May 25, 2015 13:05
DatabaseOptions.java
package com.danilov.mangareaderplus.core.database;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Created by Semyon Danilov on 05.07.2014.
public static MyCardFragment create(CharSequence title, CharSequence text, int iconRes) {
MyCardFragment fragment = new MyCardFragment();
Bundle args = new Bundle();
if (title != null) args.putCharSequence("CardFragment_title", title);
if (text != null) args.putCharSequence("CardFragment_text", text);
if (iconRes != 0) args.putInt("CardFragment_icon", iconRes);
fragment.setArguments(args);
return fragment;
@SammyVimes
SammyVimes / gist:46b0c181ff97ac981b2b
Created February 27, 2015 11:02
Deriving from CardFragment
public static MyCardFragment create(CharSequence title, CharSequence text, int iconRes) {
MyCardFragment fragment = new MyCardFragment();
Bundle args = new Bundle();
if (title != null) args.putCharSequence("CardFragment_title", title);
if (text != null) args.putCharSequence("CardFragment_text", text);
if (iconRes != 0) args.putInt("CardFragment_icon", iconRes);
fragment.setArguments(args);
return fragment;
}
<build>
<defaultGoal>package</defaultGoal>
<finalName>wp2</finalName>
<resources>
<resource>
<directory>${isframework.conf.src}</directory>
<targetPath>${isframework.conf.tmp}</targetPath>
<filtering>true</filtering>
<includes>