编程笔记

  • 「2022/07」学习记录

    本地备份。学了 /(2/) 个月文化课,7.20 才差不多回来。 重新学了一遍字符串,感觉还可以。 痛みと痛み取り替えよう,糧にするんだ 落花の欠片。 放弃的话就到此为止了,但是你可以改变命运,无法回避的毁灭与叹息…

    编程笔记 2022年8月1日
  • 显示隐藏密码框

    <head> <style> .box{ position: relative; width: 300px; border-bottom: 1px solid #ccc; margin: 100px auto; } .box input{ width: 250px; height: 28px; border:0; outline: none; } .box img{ po…

    编程笔记 2022年8月1日
  • CSRF记录

    csrf(跨站请求伪造) 攻击者盗利用已登录验证过得受害者去访问恶意网页造成一些恶意操作。 探测方式: 最简单的就是删除referer再发送get/post请求若还能继续访问成功csrf大概率存在 自动化探测工具CSRFTester等 …

    编程笔记 2022年8月1日
  • 关于git使用ssh key认证github和gitee远程推送

    Git 是基于多种传输协议,最常用的是 Https 和 SSH 。两者都是为了数据传输安全 。 但是https或者是http都需要账户密码进行认证,有时很不方便,如果我们曾经使用账户密码进行认证 可以打开控制面板查看到以前的所…

    编程笔记 2022年8月1日
  • [Codeforces_gym_103469] D.Deleting

    传送门 Description You are given an array /([1,2,…,n]/), where the number of elements /(n/) is even. In one operation, you can delete two adjacent elements of the array. If these elements are /(i/) a…

    编程笔记 2022年8月1日
  • Soldlity0.8-ABI Decode

    abi.encode encodes data into bytes. abi.decode decodes bytes back into data. // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; contract AbiDecode { struct MyStruct { string name; uint[2] nums;…

    编程笔记 2022年8月1日
  • Soldity0.8-Hashing with Keccak256

    keccak256 computes the Keccak-256 hash of the input. Some use cases are: Creating a deterministic unique ID from a input Commit-Reveal scheme Compact cryptographic signature (by signing the hash inst…

    编程笔记 2022年8月1日
  • Soldlity0.8-Library

    Libraries are similar to contracts, but you can't declare any state variable and you can't send ether. A library is embedded into the contract if all library functions are internal. Otherwise the lib…

    编程笔记 2022年8月1日
  • 理论笔记3

    一些零散的做题笔记 影响主要计算机的因素 温度:过高不利散热 湿度:过大,元器件氧化 强磁场会照成数据干扰甚至丢失 电源稳定性 万维题库选D(电源稳定性) 机房三度 指:温度、湿度和洁净度。 升级软件包 升级软件…

    编程笔记 2022年8月1日
  • 工厂模式

    工厂模式 工厂模式(Factory Pattern)是 Java 中最常用的设计模式之一。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式。 在工厂模式中,我们在创建对象时不会对客户端暴露创建逻辑,并且是通…

    编程笔记 2022年8月1日