Lebyte Java reflection II: instantiation object, interface and parent class, modifier and attribute
Hello everyone, Xiaole continues to the previous episode: lebyte Java reflection: Reflection concept and access to reflection source Class
This time it's two: instantiating objects, interfaces and parents, modifiers, and properties
One: instanced object
We explained how to create objects before, including new, clone, deserialization, and anothe ...
Posted by jassikundi on Fri, 01 Nov 2019 10:08:03 -0700
The application of inheritance relationship in JS
Preface
An important aspect of object-oriented programming is object inheritance. By inheriting B object, A object can directly own all the properties and methods of B object. This is very useful for code reuse. Traditionally, the inheritance of JavaScript language is not through class, which needs to be implemented by prototype mechanism or by ...
Posted by sheriff on Fri, 01 Nov 2019 09:30:39 -0700
js password generator
Password Generato
Recently, referring to some password generators on the Internet, a similar password generator has been imitated. The password is mainly composed of "uppercase", "lowercase", "number" and "symbol". The specific style is as follows:
development process
This paper mainly records the js de ...
Posted by itisme on Fri, 01 Nov 2019 08:36:17 -0700
Wechat applet note 3
2019/04/17
1. Data binding
Simple data binding
Write in the weekly.js file
Page({
/**
* Initial data of the page
*/
data: {
thisWeekMovie:{
name:"A Star Is Born",
comment:"SUGA's Recommended, absolutely perfect",
imagePath:"/images/star.jpg"
},
count:1 ...
Posted by BrentNorin on Thu, 31 Oct 2019 22:44:50 -0700
Using zrender.js to draw temperature list
Today, let's draw a line chart.
The following are simulation data
[{"time":19,"text":"enter\n courtyard\n19\n Time\n11\n branch","position":42,"cellMin":29.0,"cellSplit":0.2,"type":"text","color":"red","shape":null},{"time":22,"text":"hand\n art","position":42,"cellMin":29.0,"cellSplit":0.2,"type":"text","color":"red","shape":null},{"time ...
Posted by tomd79 on Thu, 31 Oct 2019 13:14:21 -0700
__Detail of dict attribute
1. Attribute of class and attribute of class object
class Parent(object):
a = 'a'
b = 1
def __init__(self):
self.a = 'A'
self.b = 1.1
def print_info(self):
print('a = %s , b = %s' % (self.a, self.b))
@staticmethod
def static_test(self):
print
'a static func.'
...
Posted by ThunderAI on Thu, 31 Oct 2019 12:33:17 -0700
Verification and data processing
Verification and data processing
1. URL verification
// 1. verify url
function isURL(str_url) {
var strRegex = "^((https|http|ftp|rtsp|mms)?://)"
+ "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" // user@ of ftp
+ "(([0-9]{1,3}\.){3}[0-9]{1,3}" // URL in IP form ...
Posted by backie on Thu, 31 Oct 2019 08:55:24 -0700
Create a broadcaster component in react
Create a broadcaster component
Problems to be solved:
Make sure the format of the passed props parameter is correct
Manipulate the DOM elements created by React in React
Operation of setInterval function during component state switching to ensure no error is reported
Problem solvingThe props paramet ...
Posted by lipun4u on Thu, 31 Oct 2019 04:04:14 -0700
On the difference between stream.foreach() and stream.peek().
Change thinking comes from daily work, so remember this experience.
Thinking: how to quickly change the internal attribute value of each item in the list and perform other fluid operations?
Here's a test: how to get the object in the list according to the minimum value of a property
1: create any new test bean:
1 package com.dev ...
Posted by alasxdair on Thu, 31 Oct 2019 01:39:54 -0700
Using Python to train network -- garbage classification, (resnet18)
The data set contains six kinds of garbage, namely, cardboard, glass, metal, paper, plastic and other waste products. The amount of data is small and only for learning.
The preparation of data set label includes dividing data set into training set and test set, and making label file. Code utils.py ...
Posted by Goon on Thu, 31 Oct 2019 00:56:05 -0700