This file contains hidden or 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.skywell.car.myapplication.tanklevel; | |
| import android.content.Context; | |
| import android.graphics.Camera; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Matrix; | |
| import android.graphics.Paint; | |
| import android.util.AttributeSet; | |
| import android.view.View; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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'; |
NewerOlder