This file contains hidden or 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
This is a paragraph 1¶This is a paragraph 2 length = 43 | |
<---------------------> 000 -> 022 : (1) GutenbergCommentSpan | |
<---------------------> 000 -> 022 : (2) ParagraphSpan | |
>--------------------< 022 -> 043 : (1) GutenbergCommentSpan | |
>--------------------< 022 -> 043 : (2) ParagraphSpan |
This file contains hidden or 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 org.wordpress.aztec | |
import android.text.Spanned | |
import android.text.TextUtils | |
import java.util.* | |
/** | |
* Created by hypest on 11/01/17. | |
*/ | |
object SpanLogger { |
This file contains hidden or 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
/** @format */ | |
// For React Native version 0.52 or later | |
var upstreamTransformer = require( 'metro/src/transformer' ); | |
// For React Native version 0.47-0.51 | |
// var upstreamTransformer = require("metro-bundler/src/transformer"); | |
// For React Native version 0.46 | |
// var upstreamTransformer = require("metro-bundler/build/transformer"); |
This file contains hidden or 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
> Task :example:connectedDebugAndroidTest | |
Starting 269 tests on Nexus 5X - 7.1.2 | |
org.wordpress.android.fluxc.mocked.MockedStack_UploadStoreTest > testUploadMedia[Nexus 5X - 7.1.2] FAILED | |
java.lang.StringIndexOutOfBoundsException: length=5; index=-1 | |
at java.lang.String.substring(String.java:1926) | |
org.wordpress.android.fluxc.mocked.MockedStack_UploadTest > testUploadMediaInCancelledPost[Nexus 5X - 7.1.2] FAILED | |
java.lang.StringIndexOutOfBoundsException: length=5; index=-1 | |
at java.lang.String.substring(String.java:1926) |
This file contains hidden or 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
private val EXAMPLE = | |
IMG + | |
HEADING + | |
IMG + | |
IMG + | |
IMG + | |
IMG + | |
IMG + | |
IMG + | |
IMG + |
This file contains hidden or 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
hypest-mbposx:~/proj/a8c/android/wp$ ./gradlew clean | |
Parallel execution with configuration on demand is an incubating feature. | |
> Configure project :WordPress | |
Configuration 'compile' in project ':WordPress' is deprecated. Use 'implementation' instead. | |
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) | |
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) | |
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) | |
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) | |
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) |
This file contains hidden or 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
private val EXAMPLE: String by lazy { | |
val sb = StringBuilder() | |
for (i in 0..10000) { | |
sb.append("word$i ") | |
} | |
sb.toString() | |
} |
This file contains hidden or 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
diff --git a/aztec/build.gradle b/aztec/build.gradle | |
index 3f8fa81..9dbaba7 100644 | |
--- a/aztec/build.gradle | |
+++ b/aztec/build.gradle | |
@@ -1,6 +1,24 @@ | |
+buildscript { | |
+ ext.kotlin_version = '1.0.6' | |
+ repositories { | |
+ jcenter() | |
+ mavenCentral() |
This file contains hidden or 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
loginname=hypest; git fetch --all; latest_release=`git branch -r --sort=version:refname | grep 'origin/release' | tail -n1`; repo=`git remote -v | grep "^origin" | grep "fetch" | sed -n -e 's/.*github.com:\(.*\)\.git .*$/\1/gp'`;git log --merges --oneline $latest_release.. | grep "pull request" | sed -n -e 's/.* pull request #\([0-9]*\) .*$/\1/gp' | xargs -I PRNUM ok.sh _get https://api.github.com/repos/$repo/pulls/PRNUM | jq -r "if .user.login == \"$loginname\" then .title else empty end" |
This file contains hidden or 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
#!/bin/sh | |
echo oAuth2 app id: | |
read appid | |
echo oAuth2 app secret: | |
read -s appsecret | |
echo Username: | |
read username |
NewerOlder