Skip to content

Instantly share code, notes, and snippets.

View ozcankrks's full-sized avatar
🏠
Working from home

özcan karakuş ozcankrks

🏠
Working from home
View GitHub Profile
0.0.0.0 adtago.s3.amazonaws.com
0.0.0.0 analyticsengine.s3.amazonaws.com
0.0.0.0 analytics.s3.amazonaws.com
0.0.0.0 advice-ads.s3.amazonaws.com
0.0.0.0 pagead2.googlesyndication.com
0.0.0.0 adservice.google.com
0.0.0.0 pagead2.googleadservices.com
0.0.0.0 afs.googlesyndication.com
0.0.0.0 stats.g.doubleclick.net
0.0.0.0 ad.doubleclick.net
@ozcankrks
ozcankrks / source.txt
Created November 18, 2024 19:55
llama_oguzhan
What I Worked On
February 2021
Before college the two main things I worked on, outside of school, were writing and programming. I didn't write essays. I wrote what beginning writers were supposed to write then, and probably still are: short stories. My stories were awful. They had hardly any plot, just characters with strong feelings, which I imagined made them deep.
The first programs I tried writing were on the IBM 1401 that our school district used for what was then called "data processing." This was in 9th grade, so I was 13 or 14. The school district's 1401 happened to be in the basement of our junior high school, and my friend Rich Draves and I got permission to use it. It was like a mini Bond villain's lair down there, with all these alien-looking machines — CPU, disk drives, printer, card reader — sitting up on a raised floor under bright fluorescent lights.
spaceNavigationView.setSpaceOnClickListener(new SpaceOnClickListener() {
@Override
public void onCentreButtonClick() {
Toast.makeText(MainActivity.this,"onCentreButtonClick", Toast.LENGTH_SHORT).show();
}
@Override
public void onItemClick(int itemIndex, String itemName) {
Toast.makeText(MainActivity.this, itemIndex + " " + itemName, Toast.LENGTH_SHORT).show();
}
SpaceNavigationView spaceNavigationView = (SpaceNavigationView) findViewById(R.id.space);
spaceNavigationView.initWithSaveInstanceState(savedInstanceState);
spaceNavigationView.addSpaceItem(new SpaceItem("HOME", R.drawable.yourDrawable));
spaceNavigationView.addSpaceItem(new SpaceItem("SEARCH", R.drawable.yourDrawable));
<com.luseen.spacenavigation.SpaceNavigationView
android:id="@+id/space"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"/>
try
{
// + Json verisi çekiliyor.
jsonData = GetJsonData(url);
// -
// + Gelen veri liste şeklinde olacağı için
// Modelimizin Liste tipinde olacağını belirtiyoruz.
Type postModelListType = new TypeToken<List<CardModal>>(){}.getType();
// -
public class CardModal {
@SerializedName("associatedCards")
@Expose
private List<Object> associatedCards = null;
@SerializedName("associatedCardRefs")
@Expose
private List<String> associatedCardRefs = null;
@SerializedName("assets")
@Expose
public String GetJsonData(String _url) throws IOException
{
StringBuilder sb = new StringBuilder();
URL uri = new URL(_url); // Veri urlniz
HttpURLConnection urlConnection = (HttpURLConnection) uri.openConnection();
try {
InputStream in = new BufferedInputStream(urlConnection.getInputStream());
BufferedReader bin = new BufferedReader(new InputStreamReader(in));
String inputLine;
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.squareup.okhttp:okhttp:2.7.2'
[
{
"associatedCards": [],
"associatedCardRefs": [],
"assets": [
{
"gameAbsolutePath": "http://dd.b.pvp.net/1_0_0/set1/en_us/img/cards/01IO012T2.png",
"fullAbsolutePath": "http://dd.b.pvp.net/1_0_0/set1/en_us/img/cards/01IO012T2-full.png"
}
],