Skip to content

Instantly share code, notes, and snippets.

View o3661606's full-sized avatar

Michael Lam o3661606

View GitHub Profile
@o3661606
o3661606 / Activate Office 2019 for macOS VoL.md
Created November 3, 2020 05:39 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@o3661606
o3661606 / XsiNilPrecedenceTest.java
Created March 2, 2020 05:50
Test Case for jackson-dataformat-xml #385
import com.ctc.wstx.stax.WstxInputFactory;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.dataformat.xml.XmlFactory;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;
import org.junit.Test;
@o3661606
o3661606 / ColorTextViewHandles.java
Created February 23, 2017 17:04 — forked from jaredrummler/ColorTextViewHandles.java
Set the color of the handles shown when you select text in a TextView on Android
// Tested on Android Nougat. Should work on previous versions of Android.
// It's ugly but should get the job done
/**
* Set the color of the handles when you select text in a
* {@link android.widget.EditText} or other view that extends {@link TextView}.
*
* @param view
* The {@link TextView} or a {@link View} that extends {@link TextView}.
* @param color