- 博客(74)
- 收藏
- 关注
原创 TypeScript Question Mark/问号 (?)
用于空值检查('undefined' and null)let account={id: 1} let deparmentid=account?.idconsole.log(deparmentid) // return id if an account is not null or undefined, else return undefinedlet account=null; let deparmentId=account??.idconsole.log(deparmentId) /..
2021-06-29 16:39:24
186
原创 MySQL学习笔记
MySQL学习笔记参加拉勾教育大数据训练营课程笔记1. 安装启动与配置1.1 安装与启动Win10下直接运行安装程序,按照提示安装即可。安装完成后可以运行MySQL 5.7 Command Line Client测试是否安装成功[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-5tQDd2a7-1624890267447)(image-20210601213459702.png)]输入密码,登录成功:[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直
2021-06-28 22:26:00
370
1
原创 Maven添加本地jar包
添加jar包到Maven本地库:mvn install::install-file -Dfile=/path/to/your/jar/file/jacob.jar -DgroupId=com.jacob -DartifactId=jacob -Dversion=1.20 -Dpackaging=jar -DgeneratePom=truepom.xml中添加依赖:<dependency> <groupId>com.jacob</groupId> &
2021-06-24 10:15:04
271
原创 Java核心类库(下)
Java核心类库(下)参加拉勾教育大数据训练营课程笔记Java异常机制Throwable类java.lang.Objectjava.lang.ThrowableAll Implemented Interfaces:SerializableDirect Known Subclasses:Error, Exception是所有Error,Exception的父类(超类)。Error是JVM遇到的无法解决的严重错误Exception是程序错误,或者偶然外在因素导致的错误,
2021-05-31 23:46:11
227
2
原创 Java核心类库(上)
Java核心类库(上)参加拉勾教育大数据训练营课程笔记学会查阅API文档,根据包索引,搜索等。常用类java.lang - 唯一一个Java虚拟机自动访问,所以System等不需要import就可以使用,例如:System, String等。java.util - 提供大量工具类和集合类等,例如:Scanner , List, Random等。java.io - 输入输出包,提供了文件读写,流读写等,例如:FileInputStream, FileOutputStream等。java.n
2021-05-23 14:33:01
662
原创 Java面向对象编程
参加拉勾教育大数据训练营课程笔记Java面向对象编程类和对象对象 - 现实生活中的具体的客观实体,Java语言中体现为内存中的一块区域类 - 抽象出具有相同特征和行为的多个对象的抽象描述。是蓝图,设计图类定义类的声明类名遵循Pascal命名 - 所有单词首字母大写,比如BigData,代码文件名与类名相同,比如BigData.javapublic class ClassName { }构造方法初始化类的成员变量(特征变量)与类名相同,无返回类型可以重载提供.
2021-05-09 22:21:29
219
2
原创 Windows通过使用命令行(CACLS)修改文件权限
Windows下类似Linux下chmod命令,修改文件(文件夹)权限:CACLS files /e /p {USERNAME}:{PERMISSION}参数:/p : Set new permission/e : Edit permission and kept old permission as it is i.e. edit ACL instead of replacing it.{USERNAME} : Name of user{PERMISSION} : Permission ca
2021-04-15 09:53:38
3664
原创 Python Ali Mirror
Create ~/pip/pip.ini[global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com
2020-09-17 14:04:58
251
原创 Openjfx Hello World
Create JavaFX Application project In IntelliJ.Right click on project folder, then click Add Framework Support...In the dialog window, choose Maven, hit OKEdit pom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.or.
2020-07-09 18:03:42
395
原创 Python Create EPUB
import loggingfrom ebooklib import epubimport urllib3import certififrom lxml import htmlimport relog = logging.getLogger(__name__)log.setLevel(logging.INFO)log_handler = logging.StreamHandler()formatter = logging.Formatter('%(asctime)s - %(level
2020-06-23 10:58:37
791
原创 Python Word Automation
# generate.pyimport win32com.client as win32from datetime import datetime, dateimport reimport osimport sysimport jsonimport loggingfrom enumerations import *logger = logging.getLogger(__name__)log_formater = logging.Formatter(fmt='%(asctime)s -
2020-06-05 11:02:04
427
原创 Oracle query table space statistics
select df.tablespace_name ,format_bytes(df.total_space) as total_space ,format_bytes(df.total_space - fs.free_space) as used_space ,format_bytes(fs.free_space) as free_spacefrom (se...
2020-05-04 11:15:25
227
原创 PL/SQL格式化字节
create or replace function format_bytes(pi_bytes in number) return varchar2is c_unit constant number := 1024; l_size number; l_unit_ind integer;begin l_size := pi_bytes; l_unit_ind := 0; ...
2020-05-04 11:03:49
278
原创 Compile & Intall Octave 5.1 on Ubuntu 18.04
Compile & Install Octave 5.1 on Ubuntu 18.04在Ubuntu 18.04上编译安装Octave 5.1.0# switch to rootsudo su# install dependenciesapt install -y bison byacc curl default-jdk epstool fftw3 fftw3-dev fl...
2019-10-08 23:35:58
447
原创 数据结构与算法复习-C语言回顾
C语言数组定义一维数组类型符 数组名[常量表达式];int a[10];int b[5] = {1, 2, 3, 4, 5};void func(int n){ int a[2 * n];}指定数组为静态static存储方式,则不能用“可变长数组”static int a[2 * n]; // 不合法,a数组指定为`static`存储方式指针存储地址的变量:类...
2019-10-06 22:21:14
492
原创 机器学习之路 - 微积分
机器学习之路 - 微积分持续更新中…路漫漫其修远兮,机器学习之路从数学开始,包括概率论与数理统计,微积分基础,线性代数(矩阵运算),本文总结了微积分相关的概念和性质文章目录机器学习之路 - 微积分1. 邻域2. 常用函数3. 函数性质4.极限4.1 数列极限4.1.1 定义4.1.2 数列极限的性质4.2 函数极限4.2.1 定义4.2.2 函数极限的性质4.3 无穷小和无穷大4.3.1...
2018-11-24 21:45:08
925
原创 Fun with Sorting Algorithms
About the Author: Alex, loves programming, reading, cooking and bikingCode'''sort.py'''import randomimport copydef insertion_sort(array: tuple): ''' it's like sort a hand of pokers b...
2018-11-02 22:08:15
200
原创 Sublime Java Build -在Sublime中编译执行Java程序
{ "shell_cmd": ["javac", "$file_name", "&&", "java", "$file_base_name"], "shell": true, "working_dir": "$file_path", "selector&qu
2018-10-30 21:13:57
918
原创 Sublime列对齐插件
演示:源码:import sublimeimport sublime_pluginclass AlignColCommand(sublime_plugin.TextCommand): def run(self, edit): most_right_pos = max(self.get_pos(self.view.sel())) for regio...
2018-10-29 21:01:46
1910
原创 TeraData Basics
TeraData Basics 持续更新中。。 插图画得很辛苦1. Basic concept1.1 Parallel ProcessingAMP(Access Module Processor)1.2 Linear ScalabilityAll Teradata tables are spread across ALL AMPs3. Fou...
2018-07-19 23:36:36
407
1
原创 Oracle PL/SQL Nutshell
Oracle PL/SQL Nutshell 持续更新中。。。Basic Syntax & VariablesBasic StructurePL/SQL can be executed from SQL PlusCalled PL/SQL blocksAnonymous blocks as they do not have a nameProcedure...
2018-07-19 23:31:30
320
原创 Count Business Days in A Month using Python
from datetime import date, timedeltaimport jsonPUBLIC_HOLIDAYS = (1, 3, 7)today = date.today()one_day = timedelta(days=1)first_of_month = today.replace(day=1)holidays = [date(year=today.year, m...
2018-07-18 14:23:10
249
原创 PowerShell play with Outlook & Excel
PowerShell play with Outlook & ExcelSearch, download attachments in Outlook$outlook = New-Object -ComObject Outlook.Application$namespace = $Outlook.GetNameSpace("MAPI")$folders = $namespa...
2018-07-18 14:16:11
813
1
原创 Python Logging Setup
import loggingLOG_FMT = '[%(levelname)s] %(asctime)s: %(message)s'LOG_DATE_FMT = '%Y-%m-%d %H:%M:%S'logging.basicConfig(filename='search_results.log', format=LOG_FMT, datefmt=LOG_DATE_FMT, level=l...
2018-07-17 16:35:56
959
原创 PowerShell Module
PowerShell ModuleDefine PowerShell module:# comm_func.psm1$ORA_CONNECTION = $nullFunction FileExist { param ([String] $path) If($path -eq $null) { Return $False } Else { ...
2018-07-06 09:00:12
1346
1
转载 Purge Data
Purge Data From IBM knowledge centerPurging is a process of moving records from the base or main database table to the history table. The base table is also referred as the key transactional ta...
2018-07-06 08:43:05
453
原创 PowerShell访问Oracle、SQL Server数据库,导出到CSV文件
PowerShell访问Oracle、SQL Server数据库,导出到CSV文件# query oracle# connect info# sql# parameters# scalar result# return an array of ordered HashTable or a scalar valuefunction Oracle-Query { param...
2018-06-21 12:14:16
2823
1
原创 高等数学系列一:中学回顾
高等数学系列一:中学回顾高等数学系列一:中学回顾1. 邻域2.初等特性①奇偶性②有界性③增减性3.几个特殊函数①符号函数②取整函数③Dirichlet函数1. 邻域U(a,δ)≜{x&nbsp;|&nbsp;&nbsp;|x−a|&lt;δ}=(a−δ,a+δ)U(a,δ)≜{x&nbsp;|&nbsp;&nbsp;|x−a|&l
2018-06-12 22:46:41
373
1
原创 PowerShell连接查询Oracle数据库
PowerShell连接查询Oracle数据库$USER = 'USER'$PASSWD = 'PASSWD'$SERVER = 'SERVER'$DB = 'DB'# create connection objectAdd-Type -AssemblyName 'System.Data.OracleClient'$CONNECTION_STR = "User Id=$USE...
2018-06-11 14:37:35
4055
2
原创 PowerShell读取JSON配置文件
使用Get-Content和ConvertFrom-Json读取JSON配置文件,以下是示例代码:// settings.json{ "RUN_DATE": null, "xl": { "xlWBATWorksheet": -4167, "xlUp": -4162, "xlCellTypeVisible": 12, "xlPasteValuesAndN.
2018-06-07 16:27:59
8688
1
转载 Nginx configuration for vue-router in history mode
nginx configuration for vue-router in history modeHere’s how I did it according to the official documentlocation / { root /webapp_home; try_files $uri $uri/ /index.html;}You can refer t...
2018-05-15 23:53:55
468
原创 Deploy Python Django Web Application with UWSGI and Nginx
1. Install Packages2. Configure uWSGI2.1 Loading configuration files2.2 Magic variables2.3 Placeholders2.4 Placeholders math2.5 Start & ReloadExampleuWSGINginx1. Install Pac...
2018-05-13 21:05:07
252
原创 程序员的数学系列(一)
第1章 0的故事10进制2进制指数法则0所起的作用第2章 逻辑兼顾完整性和排他性逻辑非逻辑与逻辑或异或相等蕴含—若A则B德·摩根定律三值逻辑的德·摩根定律本章小结逻辑的各种表现形式第3章 余数星期数问题直观地把握规律乘方得思考题黑白棋通信 程序员的数学系列阅读笔记,第一部分介绍数学基础,还有一些有趣的数学问题...
2018-05-13 09:47:10
6809
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅