Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
🇰🇵我们晚上去

crapthings crapthings

😎
🇰🇵我们晚上去
View GitHub Profile
View gist:59e3d0cc415c02d7afede490b160c2b6

https://blog.csdn.net/zhongshanyishi/article/details/80619101

if (action.equals("openNotificationSettings")) {
            cordova.getActivity().runOnUiThread(new Runnable() {
                @Override
                public void run () {
                    Context context = cordova.getActivity().getApplicationContext();
                    Intent intent = new Intent();
                    intent.setAction(Settings.ACTION_APP_NOTIFICATION_SETTINGS);
View NotificationsUtils.java
package cn.hhjjj.mobpush;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.provider.Settings;
@crapthings
crapthings / Ontology.md
Last active Aug 23, 2020
semantic web best answer
@crapthings
crapthings / FAQ.md
Last active May 16, 2020
sparql 查询 cheatsheet
@crapthings
crapthings / 机翻.md
Last active May 6, 2020
物权法拆解
View 机翻.md

用益物权

['用益物权', '物权']

一般规定

['一般', '规定']

View gist:b50dfc8f8b1bd8c5bdde07a8d6dc559f
49d939c5-33b9-4387-9e46-9aae8a645022 49d939c5-33b9-4387-9e46-9aae8a645022 0.01mb Wed Mar 18 2020 19:32:49 GMT+0800 (CST)
c676c333-db29-49e6-a701-46a55a58a591 c676c333-db29-49e6-a701-46a55a58a591 0mb Wed Mar 18 2020 19:32:42 GMT+0800 (CST)
719401bb-6612-4f01-a92b-fc998796c962 719401bb-6612-4f01-a92b-fc998796c962 0.08mb Wed Mar 18 2020 09:31:53 GMT+0800 (CST)
a61952cd-a1a4-4051-a4c9-dfbd10311f13 a61952cd-a1a4-4051-a4c9-dfbd10311f13 0.16mb Tue Mar 17 2020 21:17:53 GMT+0800 (CST)
0aedcc2d-b1c1-405e-8962-c34855caff4c 0aedcc2d-b1c1-405e-8962-c34855caff4c 0.16mb Tue Mar 17 2020 18:29:53 GMT+0800 (CST)
c0e92c13-5b18-41a6-8295-48f27cc03293 c0e92c13-5b18-41a6-8295-48f27cc03293 0.04mb Tue Mar 17 2020 15:43:49 GMT+0800 (CST)
7073aaf1-e44b-484d-a2f5-ab86a86fd038 7073aaf1-e44b-484d-a2f5-ab86a86fd038 0.04mb Tue Mar 17 2020 15:43:30 GMT+0800 (CST)
5891c048-dd08-45e9-8fc9-c108921cf7ff 5891c048-dd08-45e9-8fc9-c108921cf7ff 0.02mb Tue Mar 17 2020 13:49:10 GMT+0800 (CST)
06d1fad3-b72d-41bf-86f7-2db1539d0111 06d1fad3-b72d-41bf-86f
View gist:2c76828218e2cfbd97ca5ee9c433e73e
01-03 10:29:10.684 1557 4901 D HwConnectivityServiceEx: set cache by key is 10158 interfaceName iswlan0 value is false
01-03 10:29:11.169 27724 27724 I aptouch_daemon: filter_touch_detect, down, in: 1, out: 1
01-03 10:29:11.170 1557 1852 D libfingersense_wrapper: Calling fingersense_classify_touch()
01-03 10:29:11.174 1557 1852 D libfingersense_wrapper: fingersense_classify_touch() finished
01-03 10:29:11.277 3379 10242 I HwCommBoosterService: reportBoosterPara enter: com.android.server.dns
01-03 10:29:11.278 3379 10242 I HwCommBoosterManager: reportBoosterPara exit: com.android.server.dns
01-03 10:29:11.279 3379 3492 I OllieBoosterPlugin: receiveAPModuleData
01-03 10:29:11.279 3379 3492 I DollieDcTracterAdapter: onReceiveAPModuleData dataType801
01-03 10:29:11.302 27724 27724 I aptouch_daemon: filter_touch_detect, all_touch_up
01-03 10:29:11.307 633 20784 I netd : trafficSwapActiveStatsMap() <10.34ms>
View gist:d1f4027723c13178da6cc79060c3d600
=> Started your app.
=> App running at: http://localhost:3000/
=> Errors executing Cordova commands:
While running Cordova app for platform Android with options --buildConfig,/Users/monsterstep/dev/sandbox2020/mobileauth/.meteor/local/cordova-build/build.json,--device:
Error: Command failed: /Users/monsterstep/dev/sandbox2020/mobileauth/.meteor/local/cordova-build/platforms/android/cordova/run --buildConfig /Users/monsterstep/dev/sandbox2020/mobileauth/.meteor/local/cordova-build/build.json --device
/Users/monsterstep/dev/sandbox2020/mobileauth/.meteor/local/cordova-build/platforms/android/app/src/main/AndroidManifest.xml:73:9-91 Error:
Element meta-data#JPUSH_APPKEY at AndroidManifest.xml:73:9-91 duplicated with element declared at AndroidManifest.xml:15:9-91
/Users/monsterstep/dev/sandbox2020/mobileauth/.meteor/local/cordova-build/platforms/android/app/src/main/AndroidManifest.xml Error:
View express.md
const nodersa = require('node-rsa')
const axios = require('axios')
const express = require('express')

const server = express()

const PRIVATE_KEY = "-----BEGIN PRIVATE KEY-----YOUR KEY HERE-----END PRIVATE KEY-----"
const key = new nodersa(PRIVATE_KEY, 'pkcs8-private-pem', { encryptionScheme: 'pkcs1' })
View parser.js
const parser = str => {
let ops = []
let method, arg
let isMethod = true
let open = []
for (const char of str) {
// skip whitespace
if (char === ' ') continue