Skip to content

Instantly share code, notes, and snippets.

View arkus7's full-sized avatar
🦀

Arkadiusz Żmudzin arkus7

🦀
View GitHub Profile
@arkus7
arkus7 / kinks_v6.5.0.geojson
Last active June 19, 2024 12:12
@turf/kinks v6.5.0 vs v7.0.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Merging Rubygems and Bundler

1.sh:

#!/bin/sh
set -eux
rm -rf rubygems bundler
git clone https://github.com/rubygems/rubygems
git clone https://github.com/rubygems/bundler
@arkus7
arkus7 / ColumnNumberPreferences.java
Last active November 21, 2016 11:07
Android 21.11
package com.example.myapplication;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Exercise 1.
*
* Implement saveSelectedNumberOfColumns and getSelectedNumberOfColumns methods. Use SharedPreferences as a storage.
*/
package pl.amu.service.rest;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import pl.amu.service.repository.UserRepository;
import pl.amu.service.rest.dao.ErrorMessage;
import pl.amu.service.rest.dao.User;
import pl.amu.service.rest.exception.UsersAppExceptions;
import javax.validation.Valid;
package com.example.myapplication;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
private void initializeList() {
ListView recipesList = (ListView) findViewById(R.id.recipes_list);
recipesList.setAdapter(new RecipesAdapter(this));
}
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="80dp"
xmlns:tools="http://schemas.android.com/tools">
<ImageView
android:id="@+id/recipe_photo"
android:layout_width="80dp"
android:layout_height="match_parent"
android:scaleType="centerCrop"