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
func dingTalkMessage(_ message: String?) { | |
NotificationService .dingTalkMessage(message); | |
} | |
static func dingTalkMessage(_ message: String?) { | |
let date = Date() | |
let fmt = DateFormatter() | |
fmt.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS" |
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
- (NSArray *)objectProperties:(NSObject *)object { | |
// RCTLog(@"objectProperties %@ %@ Enter", object, object.class); | |
NSMutableArray* properties = [NSMutableArray new]; | |
unsigned int count; | |
Class cls = [object class]; | |
// RCTLog(@"objectProperties %@", cls); | |
do { | |
// RCTLog(@"objectProperties Current %@", cls); | |
objc_property_t* props = class_copyPropertyList(cls, &count); | |
for (int i = 0; i < count; i++) { |
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 phoneformat = require('phoneformat.js'); | |
console.log(phoneformat.formatInternational('VN', '+842743729050', )) |
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
status2: (place, options = {}) => { | |
if (!place.openingHours | |
|| (!place.openingHours.periods && !place.openingHours.specific) | |
|| (place.openingHours.periods && !place.openingHours.periods.length)) { | |
return { status: UNKNOWN, openingTime: null }; | |
} | |
const now = options.now || newDate(), |
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
function days(ds) { | |
const results = []; | |
for (let i = 0; i < ds.length;) { | |
// if (i === 0)results.push(days[i]); | |
console.log(i); | |
const s = i; | |
let t = i; | |
while (ds[t + 1] && ds[t] && ds[t + 1] - ds[t] === 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
const a = { | |
key: 'openingHours', | |
type: 'openingHours', | |
placeholder: 'form_opening_hours', | |
properties: { | |
// name: 'openingHours', | |
}, | |
}; | |
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
function getUrlParams() | |
{ | |
var url = window.location.toString(); | |
var qs = url.split("?")[1]; | |
if (!qs) return {}; | |
var params = {}; | |
qs.split('&').forEach(function(pair){ | |
var kv = pair.split('='); | |
params[kv[0]] = kv[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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* | |
* @format | |
* @flow strict-local | |
*/ | |
import React from 'react'; | |
import ReactAES from 'react-native-aes-encryption'; |
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/sh | |
# sample | |
# Sample: appcenter distribute release -f /Users/mingchen/workspace/apps/a4.86/android/app/build/outputs/apk/release/app-release.apk --silent -g Collaborators -a Perkd/Perkd4.86 -b 1985 | |
# Help: appcenter help distribute release | |
# | |
# Usage: appcenter distribute release -f|--file <arg> [--silent] [-R|--release-notes-file <arg>] [-r|--release-notes <arg>] [-s|--store <arg>] [-g|--group <arg>] [-n|--build-number <arg>] | |
# [-b|--build-version <arg>] [-a|--app <arg>] |
NewerOlder