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 uk.co.belks.smartmovementmethod | |
import android.graphics.Color | |
import android.graphics.Point | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import android.os.Handler | |
import android.text.Selection | |
import android.text.SpanWatcher | |
import android.text.Spannable |
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
#!/bin/bash | |
src='/usr/src' | |
# Get current version | |
cur_ver="linux-`uname -r`" | |
# Get new version | |
ver=`ls $src | grep linux- | sort -V | tail -1` |
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
var stop = false; | |
var url = $('.browse-items-load-more-button').attr('data-uix-load-more-href'); | |
var objects = []; | |
function gett() { | |
$.getJSON(url, function (res) { | |
console.log(url); | |
var content = res.content_html.match(/class="yt-lockup-content".*?class="yt-lockup-meta-info"/g); | |
content.forEach(function (row) { |
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
<?php | |
function closeCutoff($text) | |
{ | |
static $closing = [ | |
'img', 'br', 'input', 'hr', 'area', 'base', 'basefont', 'col', | |
'frame', 'isindex', 'link', 'meta', 'param' | |
]; | |
$skip = []; | |
$add = []; | |
preg_match_all('/<\s*(\/?)\s*(\w+)/i', $text, $matches, PREG_SET_ORDER); |