Skip to content

Instantly share code, notes, and snippets.

SelvinPL SelvinPL

Block or report user

Report or block SelvinPL

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
SelvinPL / .cs
Created Dec 12, 2019
View .cs
var result = paymentCollections
.GroupBy(l =>
case "Status1":
return "Unit1";
case "Status2":
case "Status3":
return "Unit2";
View BuildConstant.targets
<Project xmlns="">
<Target Name="SetupBuildInfoProperty" BeforeTargets="CoreCompile">
<BuildInfoProperty Include="Configuration"/>
<BuildInfoProperty Include="ProjectDir"/>
<Target Name="GenereteBuildInfo" BeforeTargets="CoreCompile" >
SelvinPL /
Last active Jul 24, 2018
Terrible and stupid idea of passing Activity via Bundle
package pl.selvin.terribleidea;
public interface ISomeAction extends Serializable {
String KEY = "interface";
void sendAddress(String address);
SelvinPL / main.dart
Created Apr 13, 2018
Popular Movies in Dart/Flutter
View main.dart
import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
class MyTheme {
SelvinPL /
Last active Jun 27, 2017
Of course it will not work when Dev Options->Don't Keep Activitie is on
package pl.selvin.completelywrongsolution;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
public class TestFragment extends DialogFragment {
private static final String INNER_TAG = "TEST_INNER_TAG";
InnerFragment inner = null;
public void onCreate(@Nullable Bundle savedInstanceState) {
if (savedInstanceState == null) {
* Copyright (C) 2007 The Android Open Source Project
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
View build.gradle
apply plugin: ''
apply from: 'themes.gradle'
def colorDisabled = 0xADADAD
android {
productFlavors.whenObjectAdded { flavor ->
themes_createExtension(flavor, 0x244124, 0x0B280B, 0x3D5A3D, 0x92bc00, colorDisabled)
static volatile boolean isRunning = true;
void test() {
final int SIZE = 16 * 1024;
try {
final PipedOutputStream pipedOutputStream = new PipedOutputStream();
final PipedInputStream pipedInputStream = new PipedInputStream(SIZE);
final Object wait = new Object();
new Thread(new Runnable() {
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="" package="com.example" >
<!-- other Activities goes here -->
android:label="Some nice label"
You can’t perform that action at this time.