Skip to content

Instantly share code, notes, and snippets.

@draekko
draekko / manifest.xml
Created February 14, 2019 09:28 — forked from filiprrs/manifest.xml
universal7880 manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="https://github.com/TheMuppets/" name="TheMuppets" revision="lineage-15.1" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" revision="lineage-15.1" />
<project name="LineageOS/android_device_samsung_a7y17lte" path="device/samsung/a7y17lte" revision="lineage-16.0" />
<project name="LineageOS/android_device_samsung_a5y17lte" path="device/samsung/a5y17lte" revision="lineage-16.0" />
<project name="LineageOS/android_device_samsung_universal7880-common" path="device/samsung/universal7880-common" revision="lineage-16.0" />
<project name="LineageOS/android_kernel_samsung_universal7880" path="kernel/samsung/universal7880" revision="lineage-16.0" />
<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" revision="lineage-16.0" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
@draekko
draekko / cherrypick_list.txt
Created February 14, 2019 09:27 — forked from filiprrs/cherrypick_list.txt
cherry-pick list
https://github.com/TeamNexus/android_frameworks_native/commit/eb315db646ffca7bd5e02eb82b680d2cb3a4981f
https://github.com/TeamNexus/android_hardware_interfaces/commit/4fa05e6ab7a1219dd33432abe653ad027fd93413
https://github.com/LineageOS/android_device_samsung_universal7880-common/commit/74292bbfcc88e1d0cdeaf89b3dcf042486898bb0
https://github.com/LineageOS/android_kernel_samsung_universal7880/commit/aeb5bcc6ce6e77e880f97f2bcf5f535c7ca99cda
@draekko
draekko / CachedDocumentFile.java
Created April 26, 2018 14:55 — forked from bubbleguuum/CachedDocumentFile.java
Improve DocumentFile performance
package android.support.v4.provider;
import android.net.Uri;
import android.support.v4.provider.DocumentFile;
public class CachedDocumentFile extends DocumentFile {
final DocumentFile mWrapped;
final boolean mCacheChildren;
@draekko
draekko / darktable-workflow.md
Created July 26, 2016 18:16 — forked from eimajtrebor/darktable-workflow.md
My Darktable Workflow

My Darktable Workflow

Basic workflow

  • Copy a film roll (a directory of RAW images) into a directory on the machine running Darktable.
  • Import the film roll into Darktable.
  • Review the images using lighttable mode and remove any images that are beyond repair.
  • Take a snapshot of the image so we can do a before and after comparison.
  • Adjust the white balance.
  • Exposure compensation and recovery.
import com.google.android.gms.maps.CameraUpdate;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.GoogleMap.OnMapClickListener;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
import android.app.Activity;
import android.content.Context;
@draekko
draekko / Readme.txt
Created November 29, 2015 23:54 — forked from endolith/Readme.txt
Gnome to Wine color scraper
This is a Python script to extract GNOME/GTK's color scheme and apply it to Wine, so that the themes (approximately) match.
Instructions:
1. Set your Gnome theme as you would like it
2. Run with a command like "python wine_colors_from_gtk.py"
3. Restart any apps running in Wine. They should match the Gnome theme colors now.
Better description with screenshots here: http://www.endolith.com/wordpress/2008/08/03/wine-colors/
This is also stored on https://code.launchpad.net/~endolith/+junk/wine-color-scraper
@draekko
draekko / gist:14683a211a896bd3b556
Created November 15, 2015 00:15 — forked from paulczar/gist:5493708
Patch to fix libiconv for glibc >= 2.16 - originally found at http://www.itkb.ro/kb/linux/patch-libiconv-pentru-glibc-216
--- srclib/stdio.in.h.orig 2011-08-07 16:42:06.000000000 +0300
+++ srclib/stdio.in.h 2013-01-10 15:53:03.000000000 +0200
@@ -695,7 +695,9 @@
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning. Assume it is
always declared, since it is required by C89. */
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif
@draekko
draekko / PermissionsHelper.java
Created November 7, 2015 12:32 — forked from odedhb/PermissionsHelper.java
A simple class for Android Marshmallow. Showing a list of permissions, and allowing the user to change them. This was created to be implemented in http://wheredatapp.com, android's greatest search engine.
package com.nextstagesearch;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
@draekko
draekko / qt5-fusion-dark.cpp
Created September 23, 2015 22:52 — forked from skyrpex/qt5-fusion-dark.cpp
Qt5 Fusion style (dark color palette)
qApp->setStyle(QStyleFactory::create("fusion"));
QPalette palette;
palette.setColor(QPalette::Window, QColor(53,53,53));
palette.setColor(QPalette::WindowText, Qt::white);
palette.setColor(QPalette::Base, QColor(15,15,15));
palette.setColor(QPalette::AlternateBase, QColor(53,53,53));
palette.setColor(QPalette::ToolTipBase, Qt::white);
palette.setColor(QPalette::ToolTipText, Qt::white);
palette.setColor(QPalette::Text, Qt::white);
@draekko
draekko / Readme.md
Last active August 25, 2015 20:43 — forked from gabrielemariotti/Readme.md
A SimpleSectionedRecyclerViewAdapter: use this class to realize a simple sectioned `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned RecyclerView.Adapter without changing your code.

The RecyclerView should use a LinearLayoutManager. You can use this code also with the TwoWayView with the ListLayoutManager (https://github.com/lucasr/twoway-view)

This is a porting of the class SimpleSectionedListAdapter provided by Google

Screen

Example: