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
{"lastUpload":"2020-05-22T09:35:51.187Z","extensionVersion":"v3.4.3"} |
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 main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"net/url" | |
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api" | |
"golang.org/x/net/proxy" |
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 | |
#Program: | |
# convert flv to mp3 | |
#History: | |
# #2013/07/02 lazybios@gmail.com First release | |
# PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/ffmpeg/bin | |
# export PATH | |
# 得先创建一个mp3文件夹 |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> | |
<meta name="keywords" content="" /> | |
<meta name="description" content="" /> | |
<meta name="robots" content="all" /> | |
<style type="text/css"> |
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
let done = false | |
const calculate = str => { | |
if (done) { | |
return '' | |
} | |
// 去除首尾[] | |
if (/^\[/.test(str)) { | |
str = str.replace(/^\[/, '').replace(/\]$/, '') | |
} |
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
1. 打开浏览器控制台 | |
2. 输入下面的代码 | |
3. 即可正常显示图片 | |
``` | |
$('img.image-loading').each(function() { | |
let image = $(this) | |
let parent = image.parent().parent() | |
parent.empty(); | |
image.attr("src",image.attr("data-original-src")) |
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
// App.js (new project) | |
import React, { Component } from 'react' | |
import { View, FlatList, Text } from 'react-native' | |
import ScrollableTabView, { | |
DefaultTabBar | |
} from 'react-native-scrollable-tab-view' | |
class List extends Component { | |
render() { | |
// 模拟列表数据 |
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
'#' + Math.floor(Math.random() * 16777215).toString(16) |
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
unicode的表示方式有两种,一种为web页面中使用的,一种为我们一般采用的编码方式 | |
第一种:"成都 "Unicode编码方式 &+编号是网页里引用unicode字符的方法,编号为十进制的在unicode中的编号 | |
第二种:\u6210\u90fd 表示的也是成都,采用的也是unicode编码格式,是java编程中使用的编码格式 | |
它以\u开头,后接四位16进制的数。 | |
js获取字符的unicode码: '测'.charCodeAt(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
It's my setting: (works for me) | |
devDependencies | |
``` | |
... | |
"@babel/plugin-proposal-decorators": "^7.2.2", | |
"metro-react-native-babel-preset": "0.50.0", | |
"babel-preset-mobx": "^2.0.0", | |
"jsc-android": "^236355.1.1", | |
"mobx": "^5.8.0", | |
"mobx-react": "^5.4.3", |