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
image: my-docker-hub/my-pipeline-container | |
options: | |
docker: true | |
pipelines: | |
branches: | |
production: | |
- step: | |
caches: |
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 com.sjl.util; | |
import android.app.Activity; | |
import android.app.Application; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.util.Log; | |
import java.util.List; |
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 com.sjl.views; | |
/* | |
* Copyright (C) 2011 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 | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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
import React, {Component} from 'react' | |
import { connect } from 'react-redux' | |
// one-time init of the embedly platform.js, hidden behind | |
// typeof check not to blow up on server-side render | |
if (typeof window !== 'undefined') { | |
let init_embedly = function(w,d){ | |
var id='embedly-platform', n = 'script'; | |
if (!d.getElementById(id)){ | |
w.embedly = w.embedly || function() {(w.embedly.q = w.embedly.q || []).push(arguments);}; |
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
const { Editor, EditorState, CompositeDecorator, Modifier, SelectionState } = Draft; | |
const getMentionPosition = () => { | |
const range = window.getSelection().getRangeAt(0).cloneRange(); | |
const rect = range.getBoundingClientRect(); | |
return { top: rect.bottom, left: rect.left } | |
} | |
const getCaretPosition = (editorState) => { | |
return editorState.getSelection().getAnchorOffset() |
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 com.sjl.util; | |
import android.app.Activity; | |
import android.app.Application; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.util.Log; | |
import java.util.List; |
OlderNewer