This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.narod.dimzon541.utils.pooling; | |
import java.util.concurrent.ConcurrentLinkedQueue; | |
import java.util.concurrent.Semaphore; | |
public class EasyPool<E> { | |
private final ConcurrentLinkedQueue<PoolSocket> sockets = new ConcurrentLinkedQueue<>(); | |
private final Semaphore semaphore = new Semaphore(1,true); | |
public EasyPool(int poolSize) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.narod.dimzon541.utils.reflect; | |
import sun.reflect.ConstructorAccessor; | |
import sun.reflect.FieldAccessor; | |
import sun.reflect.MethodAccessor; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
* Inspired by https://github.com/EsotericSoftware/reflectasm | |
* the main idea is to take away introspection from ReflectASM | |
* | |
* You must obtain reflection member (Constructor,Method or Field) | |
* yourself then pass it to FastReflection.of() method to obtain | |
* code generated access-object... | |
* | |
* Also (since it operate per-member basis) it takes away ugly switches | |
* into generated bytecode, supports parametrized constructors and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Runtime.Remoting.Proxies; | |
using System.Drawing; | |
using System.Runtime.Remoting.Messaging; | |
using System.Runtime.Remoting; | |
using System.ComponentModel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Reflection; | |
using System.Text; | |
using System.Text.RegularExpressions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/obj | |
/bin | |
*.suo | |
*.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hey guys, so I found this cool fix to change the function of the USB to mass storage instead of MTP. | |
Open up terminal emulator and enter in: | |
su | |
setprop persist.sys.usb.config mass_storage,adb | |
reboot | |
If you want to go back to MTP, open terminal emulator and enter: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Text; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Utilities; | |
namespace Newtonsoft.Json.MessagePack | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Reflection.Emit; |
OlderNewer