ICode9

精准搜索请尝试: 精确搜索
  • Web 前端实战(五):Gitee 贡献图2022-07-24 01:00:06

    前言 这次要做的 Web 前端实战是一个 Gitee 个人主页下的贡献图(在线 Demo),偶尔做一两个,熟悉熟悉 JS 以及 jQ。整体来说这个案例并不难,主要是控制第一个节点以及最后一个节点处于星期几;且必须保持365个节点。 开始 布局设计 整体的布局是上下,顶部一个 div、下面一个 div。下面的 di

  • Baozi Training Leetcode solution 2320. Count Number of Ways to Place Houses2022-07-11 02:02:51

      Problem Statement  There is a street with n * 2 plots, where there are n plots on each side of the street. The plots on each side are numbered from 1 to n. On each plot, a house can be placed. Return the number of ways houses can be placed such th

  • LeetCode-473. 火柴拼正方形2022-06-01 21:02:19

    473. 火柴拼正方形 你将得到一个整数数组 matchsticks ,其中 matchsticks[i] 是第 i 个火柴棒的长度。你要用 所有的火柴棍 拼成一个正方形。你 不能折断 任何一根火柴棒,但你可以把它们连在一起,而且每根火柴棒必须 使用一次 。 如果你能使这个正方形,则返回 true ,否则返回 false

  • lua中self的意义2022-05-23 18:02:01

    原文链接 最近在用合宙的Air302开发物联网项目,因为合宙用的自家的luatOS操作系统,二次开发全都要用lua写,据说lua写起代码比C更方便,但是不会就是不会啊喂!!学不会就是不方便啊,例如这个self理解起来就有点困难。 lua中的数据类型lua中一共有8种基本的数据类型,而且变量不需要类型定义,也

  • [LeetCode] 1299. Replace Elements with Greatest Element on Right Side 将每个元素替换为右侧最大元素2022-05-18 13:00:58

    Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with -1. After doing so, return the array. Example 1: Input: arr = [17,18,5,4,6,1] Output: [18,6,6,6,1,-1] Exp

  • 定位元素2022-04-23 11:32:29

    相对定位     绝对定位 固定定位 粘滞定位 导航条-粘滞定位 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name=&

  • Side Channel Attack 侧信道攻击 Python 实现2022-03-26 20:32:25

    Side Channel Attack 通过使用所提供的漏洞代码 sidechannel.c,设计一个攻击代码,利用侧信道攻击的方式获取密码,并通过shellcode 来获取 root shell。 本文作者:zmzzmqa 源代码 要攻击的程序源代码 //sidechannel.c //s.pass root只读 //S1deCh4nnelAttack3r #include <stdio.h> #in

  • arguments 笔试题2022-03-18 22:30:33

    记录一道笔试题 function side(arr) { arr[0] = arr[2]; } function func1(a, b, c = 3) { c = 10; side(arguments); console.log(a + b + c); } function func2(a, b, c) { c = 10; side(arguments); console.log(a + b + c); } func1(1, 1, 1

  • POJ 1328 Radar Installation2022-03-01 19:00:31

    题面 Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, locating on the coasting, can only cover d distance, so an island in

  • Learn web development2022-02-17 02:31:53

    Learn web development Welcome to the MDN learning area. This set of articles aims to guide complete beginners to web development with all that they need to start coding websites. The aim of this area of MDN is not to take you from "beginner" to

  • [LeetCode] 1725. Number Of Rectangles That Can Form The Largest Square2022-02-04 15:02:07

    You are given an array rectangles where rectangles[i] = [li, wi] represents the ith rectangle of length li and width wi. You can cut the ith rectangle to form a square with a side length of k if both k <= li and k <= wi. For example, if you ha

  • 社区发现算法——KL算法2022-02-04 10:32:07

    K-L(Kernighan-Lin)算法 原始论文(An efficient heuristic procedure for partitioning graphs) K-L(Kernighan-Lin)算法是一种将已知网络划分为已知大小的两个社区的二分方法,它是一种贪婪算法。 它的主要思想是为网络划分定义了一个函数增益Q。 Q表示的是社区内部的边数与社区之

  • 同构渲染的认识2022-02-04 01:00:37

    同构CSR+SSR 同构 同一套js代码 运行在不同的环境下 CSR Client-Side Rendering SSR Server-Side Rendering Node中间层 用数据渲染动态页面   如何选择React服务端渲染方法? 纯静态页面:renderToStaticMarkup 可交互页面:renderToString   react 异步请求数据 请求发送库

  • 第六篇英语翻译2022-01-22 22:32:02

    重点单词: 1. radar n.雷达 2.installation n.安装 出处:https://acs.jxnu.edu.cn/contest/22/board/challenge/E Radar Installation 描述: Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point

  • HTML+CSS大作业HTML5期末大作业 旅游酒店网站设计——旅游酒店服务预订(1页) web网页设计—— 出游2022-01-07 22:03:36

    HTML5期末大作业:旅游酒店网站设计——旅游酒店服务预订(1页) web网页设计—— 出游 常见网页设计作业题材有 个人、 美食、 公司、 学校、 旅游、 电商、 宠物、 电器、 茶叶、 家居、 酒店、 舞蹈、 动漫、 明星、 服装、 体育、 化妆品、 物流、 环保、 书籍、 婚纱、 军

  • C#中的抽象类和抽象方法2021-12-12 17:31:15

    C#中的抽象类和抽象方法 抽象类和抽象方法概念抽象类和抽象方法特性示例 抽象类和抽象方法概念 使用abstract修饰符声明的类和方法称为抽象类和抽象方法。抽象类不能被示例化,只能作为其他类的基类使用。 抽象类和抽象方法特性 抽象类可以包含抽象方法和抽象属性。不能使

  • leetcode-753: 破解保险箱2021-12-06 15:05:48

    leetcode-753: 破解保险箱 题目解题方法一:Hierholzer 算法 题目 题目链接 有一个需要密码才能打开的保险箱。密码是 n 位数, 密码的每一位是 k 位序列 0, 1, …, k-1 中的一个 。 你可以随意输入密码,保险箱会自动记住最后 n 位输入,如果匹配,则能够打开保险箱。 举个例子,假

  • LSF0108 level shift设计使用及debug流程2021-11-22 12:06:00

    目录 初版设计 测试出现的问题1 解决问题(尝试1) 测试出现的问题2 解决问题2-1 解决问题2-2 单Port测试结果 所有Port均连接测试结果 初版设计 此电路的应用场景在于将LCD屏幕连接到FPGA上,进而通过FPGA中设计的硬件电路来驱动LCD屏幕,验证数字硬件电路设计的正确性。因此需要一个

  • python tkinter2021-11-20 21:04:51

      import tkinter as tk root = tk.Tk() root.title('tkinter') frm = tk.Frame(root) frm.pack(side = tk.LEFT) en = tk.Entry(frm) en.pack(side = tk.TOP, fill = tk.BOTH) def encallback(event): print(en.get()) print(type(en.get())) en.bind('

  • allure报告自定义logo和名称2021-11-14 02:01:21

    前言 根据pytest框架,做自动化测试的时候,选择的是allure测试报告,这个报告是目前所有报告中功能最强大最好用的测试报告之一 我们在使用这个测试报告的时候,怎么样去把allure的logo和名称替换成自己公司或者自己的logo呢? 操作 步骤一: 更换图片 找到本地安装的allure路径 我的路径

  • frame组件+pack()来布局定位组件,实例讲解2021-11-11 23:32:54

      今天要讲解用frame组件+pack()来布局定位各个组件。在tkinter编程中,如果只是一,两个等少量组件在一个窗体上布局,那用pack()来布局也够了,但是如果组件多了,只是用pack()来布局就显示不够了,或者说,根本没有办法实现。   但是,用frame组件来帮助pack()布局就相对容易多了。因为fr

  • 树莓派48/100 - 深入研究WS2812彩灯PIO汇编程序2021-11-11 13:07:16

    关于树莓派Pico里的PIO(Programmed I/O)编程,前面写过4篇文章: 初识Pico里的PIO,更高级的办法让小灯闪烁 深入研究PIO中的指令周期 看懂PWM里的汇编代码 用PIO的out指令控制七段数码管 以前的WS2812彩灯程序感觉像天书,根本看不懂,现在可以揭开它神秘的面纱了。 import machi

  • a这个词根2021-11-10 20:31:17

    a是个词根,有三种意思:1. 以某种状态或方式,如: ablaze, afire, aflame, alight, aloud, alive, afloat等2. at, in, on, to sth,如: abed, aboard, abroad, ahead, afoot, ashore等3. not/without, 如: amoral, asexual, atypical等 船的甲板和车厢的地板是板(board),所以aboard是上板

  • pytorch训练的时候遇到RuntimeError: CUDA error: device-side assert triggered2021-10-22 14:59:10

    RuntimeError: CUDA error: device-side assert triggered        在pytorch训练的时候遇到这个错误,查询一下原因的确是标签越界,这里与Python起始是从0有关。需要对标签进行细心的处理才可以。但是这里要讲解的不是这个,而是我是在预测位置点何来的标签越界??       下面讲

  • Algorithm for understanding pointer in C2021-10-20 12:00:24

    find the variable name translate the operator adjacent to the var name with prioirty translate anthor symbol adjacent to the var in the opposite direction go back to step 2 finally, deal with the class declarition such as int and so forth // only a * on

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有