Skip to content

Instantly share code, notes, and snippets.

@d9j
d9j / Activate Office 2019 for macOS VoL.md
Created December 6, 2022 05:54 — 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

@d9j
d9j / gist:a9199d4ddb23582eb691d6998f835a1c
Created March 5, 2017 06:10 — forked from adamgit/gist:3705459
Automatically create cross-platform (simulator + device) static libraries for Objective C / iPhone / iPad
##########################################
#
# c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4
#
# Version 2.82
#
# Latest Change:
# - MORE tweaks to get the iOS 10+ and 9- working
# - Support iOS 10+
# - Corrected typo for iOS 1-10+ (thanks @stuikomma)
@d9j
d9j / HomeActivity.java
Created April 24, 2015 07:07
HomeActivity
public class HomeActivity extends ActionBarActivity {
SlidingTabLayout mSlidingTabLayout;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
mSlidingTabLayout = (SlidingTabLayout)findViewById(R.id.sliding_tabs);
ViewPager viewPager = (ViewPager) findViewById(R.id.pagerFragments);
viewPager.setAdapter(new MyPagerAdapter(getSupportFragmentManager()));
@d9j
d9j / main_layout.xml
Created April 24, 2015 06:53
SlidingTabLayout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".HomeActivity">
<com.al.unicp.widgets.SlidingTabLayout
android:id="@+id/sliding_tabs"
android:background="@color/theme_primary"
android:layout_width="match_parent"
@d9j
d9j / SlidingTabLayout.java
Last active August 29, 2015 14:19
The modified SlidingTabLayout
package com.al.unicp.widgets;
import android.content.Context;
import android.graphics.Typeface;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.util.TypedValue;
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')