为BParking分析量身定制的nanoAOD生产商重点是RK/K*/phi分析。
入门cmsrelCMSSW_10_2_15cdCMSSW_10_2_15/srccmsenvgitcms-init添加低pT能量ID并进行回归ID模型为2020Sept15月15日(深度=15,ntrees=1000)。
gitcms-merge-topicCMSBParking:from-CMSSW_10_2_15_2020Sept15gitclone--single-branch--branchfrom-CMSSW_10_2_15_2020Sept15git@github.com:CMSBParking/RecoEgamma-ElectronIdentification.git$CMSSW_BASE/external/$SCRAM_ARCH/
2024/2/2 18:35:15 8.05MB C++
1
Go的SDL2绑定go-sdl2是为Go用户包装的SDL2。
它实现了Go和用C编写的SDL2库之间的互操作性。
这意味着需要原始的SDL2安装才能正常工作。
目录文献资料例子packagemainimport"github.com/veandco/go-sdl2/sdl"funcmain(){ iferr:=sdl.Init(sdl.INIT_EVERYTHING);err!=nil{ panic(err) } defersdl.Quit() window,err:=sdl.CreateWindow("test",sdl.WINDOWPOS_UNDEFINED,sdl.WINDOWPOS_UNDEFINED, 800,600,sdl.WINDOW_SHOWN) iferr!=nil{ panic(err) } deferwindow.Destroy() surface,err:=window.GetSurface
2024/1/28 5:21:12 29.56MB go binding sdl2 GoC
1
#includesbitpwm=P3^7;sbitjia=P3^0;sbitjian=P3^5;sbitled=P3^2;chartt0,zkb;voidinit();voidmain(){ init(); while(1) { if(jia) { ysms(80); if(jia) { zkb--; if(zkb8) { zkb=8; } while(jian); } } if(zkb==8) { TR0=0; pwm=1; } else { TR0=1; } }}voidinit(){ P3M1=0X21; //00100001P350SHURU TMOD=0X01; TH0=0XFF; //6MHZ100uS TL0=0XCE; ET0=1; EA=1; TR0=1; zkb=8; led=0; ysms(200); led=1; ysms(200); led=0; ysms(200); led=1; ysms(200); led=0; ysms(200); led=1; ysms(200); led=0;}voidtime0()interrupt1{ tt0++; if(tt0>zkb) { pwm=0; } if(tt0>8) { tt0=0; pwm=1; } TH0=0XFF; //6MHZ100uS TL0=0XCE;}
2024/1/16 4:54:28 956B STC单片机触摸C程序
1
terraform-aws-ec2-instance这个terraform模块创建一个ec2实例。
它支持以下配置:n个AWSEC2实例数(可选)创建ec2密钥对(可选)创建EC2实例自动恢复cloudwatch警报可选的cloud-initgzip+base64userdata输入可选的cloud-init纯文本userdata输入通过本地执行程序供应器支持推送供应推送配置支持来自本地执行配置器的节点定位。
实例上下文属性作为local-exec环境变量公开。
切换api终止保护将标签映射应用于所有可标签资源地形版本v0.12提供者名称版ws〜>2.3输入项名称描述类型默认需要add_num_suffix将计数器索引作为后缀添加到实例Name标签booltrue没有ami_idamiidstrin
2023/12/18 2:03:06 370KB HCL
1
intmain(void){u16t;u16len;u16times=0;delay_init();//延时函数初始化NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);//设置NVIC中断分组2:2位抢占优先级,2位响应优先级uart_init(115200);//串口初始化为115200LED_Init();//LED端口初始化KEY_Init();//初始化与按键连接的硬件接口while(1){if(USART_RX_STA&0x8000;){len=USART_RX_STA&0x3fff;//得到此次接收到的数据长度printf("\r\n您发送的消息为:\r\n\r\n");for(t=0;t<len;t++){USART_SendData(USART1,USART_RX_BUF[t]);//向串口1发送数据while(USART_GetFlagStatus(USART1,USART_FLAG_TC)!=SET);//等待发送结束}printf("\r\n\r\n");//插入换行USART_RX_STA=0;}else{times++;if(times0==0)printf("请输入数据,以回车键结束\n");if(times0==0)LED0=!LED0;//闪烁LED,提示系统正在运行.delay_ms(10);}}}
2023/12/16 20:02:36 1.99MB STM32 UART
1
一张图片中的Python3[语言:]在线版本笔记本预览相关项目进一张照片(准备中)去做使用IPython笔记本,真的很棒!importthis基本语法本机数据类型数字细绳布尔型没有字节列表元组放辞典操作员与铸造流量控制if/elif/elsefor...in...whilebreak并continue迭代器和发电机理解力功能定义争论拉姆达文献资料@装饰器班级(OOP)class__init__()和self实例遗产覆写模块import搜索路径包裹Pythonic标准库os,sysdatetime捐款如果您认为此项目有帮助,请考虑使用或捐款:clinking_beer_mugs:参考编写惯用的Python3.3执照有关许可证权利和
2023/12/7 13:28:10 3.23MB JupyterNotebook
1
leetcodepython题解,包含大量leetcode题目的解法,源代码,python实现CourseSchedule21.4.4Numberofislands14.5HeapsMergeKSortedLinkedLists1.5.1KthLargestElementinanArray1.5.2Arrays1.62sum‖l1.62SumⅢ1.6.2ContainsDuplicate1.6.3RotateArray1.643SumSmaller1.653Sumclosest1.663Sum1.6.7TwoSum1.68PlusOne1.6.9BestTimetoBuyandSellStock1.6.10Shortestworddistance1.6.11Movezeroes1.6.12ContainsDuplicate1.6.13MajorityElement1.6.14RemoveDuplicatesfromSortedArray1.6.15NestedListWeightSum1.6.16NestedListWeightedSumIl1.6.17Removeelement1.6.18IntersectionofTwoArraysll1.6.19MergeSortedArrays1.6.20ReverseVowelsofaString1.6.21IntersectionofTwoArrays1.6.22Containerwithmostwater1.6.23ProductofArrayExceptSelf1.6.24TrappingRainWater1.6.25MaximumSubarray1.6.26BestTimetoBuyandSellStockIl1.6.27FindMinimuminRotatedSortedArray1.6.28Pascal'sTriangle1.6.29Pascal'sTriangle‖l1.6.30SummaryRanges1.6.31MissingNumber1.6.32StringsValidAnagram1.7.1Validpalindrome1.7.2WordPattern1.7.3ValidParentheses1.7.4IsomorphicStrings1.7.5ReverseString1.7.6BitManipulationSumofTwoIntegers18.1SingleNumber18.2Singlenumber‖18.3SingleNumberIll1.8.4Maths1.9ReverseInteger1.9.1Palindromenumber19.2Pow(x,n)19.3Subsets1.94Subsets‖195FractiontoRecurringDecimal19.6Excelsheetcolumnnumber19.7Excelsheetcolumntitle19.8FactorialTrailingzeros199HappyNumber1.9.10Countprimes1.9.11Plusone19.12DivideTwoIntegers19.13MultiplyStrings1.9.14MaxPointsonaline1.9.15ProductofArrayExceptSelf19.16Powerofthree19.17IntegerBreak1.9.18Poweroffour9.19Adddigits1.9.20UglyNumber1.9.21glyNumberll1.9.22SuperUglyNumber19.23FindKpairswithsmallestsums1.924SelfCrossing1.9.25Paintfence1.9.26Bulbswitcher19.27Nimgame1.9.28Matrix1.10RotateImage1.10.1SetmatrixZeroes1.10.2Searcha2DMatrix1.10.3Searcha2dMatrixl1.10.4SpiralMatrix1.10.5SpiralMatrix‖l1.10.6DesignLRUCache1.11.1IntroductionMyLeetcodeSolutionsinPythonThisbookwillcontainmysolutionsinPythontotheleetcodeproblems.Currently,willjusttrytoposttheacceptedsolutions.TheplanistoeventuallyincludedetailedexplanationsofeachandeverysolutionamdoingthisjustforfunLinkedListCycleLinkedListCvcleGivenalinkedlist,determineifithasacycleinitFollowup:Canyousolveitwithoutusingextraspace?Url:https://leetcode.com/problems/linked-list-cycle/Definitionforsingly-linkedlistclassListNodeobject)###definit(self,x)self,val=xself,nextNoneclassSolution(object):defhasCycle(self,head)IItypehead:ListNodertype:boolIIIIifhead=nonereturnfalseelsefastheadslow=headWhilefastnoneandfast.nextnonesloW=slownextfastfast.nextnextiffast=slow:breaki千fastNoneorfast.next=nonereturnFalseeliffast=slowreturntruereturnfalseLinkedListCycleReverseLinkedListReverseLinkedlistReverseasinglylinkedlistUrl:https://eetcode.com/problems/reverse-linked-list/definitionforsingly-linkedlist#tclassListNode(object):##def-init(self,x)self.∨al=xselfnextnoneclassSolution(object):defreverseList(self,head)11IIl1typehead:ListNodertype:ListNodeifhead=nonereturnnoneelifhead!=noneandheadnext=nonereturnheadelsetempNonenextnodenoneWhileheadNonenextnodeheadnexthead.nexttemptemp=headheadnextnodereturntempDeletenodeinalinkedlistDeletenodeinalinkedlistWriteafunctiontodeleteanode(exceptthetail)inasinglylinkedlist,givenonlyaccesstothatnodeSupposedthelinkedlistis1->2->3->4andyouaregiventhethirdnodewithvalue3,thelinkedlistshouldbecome1->2->4aftercallingyourfunctionUrl:https://eetcode.com/problems/delete-node-in-a-linked-list/Definitionforsingly-linkedlistclassListNode(object):#def-init(self,x)#self,valxself,nextNoneclasssolution(object):defdeleteNode(self,node):IIlIItypenode:ListNodertype:voidDonotreturnanythingmodifynodein-placeinsteadI111fnode=nonepasse⊥se:nextnodenode.nextnodevalnextnodevalnode.nextnextnode,next
2023/11/8 17:06:47 574KB leetcode python题解
1
spi主机程序STM32CubeMx生成Hal库DMA发送接收intmain(void){/*USERCODEBEGIN1*//*USERCODEEND1*//*MCUConfiguration--------------------------------------------------------*//*Resetofallperipherals,InitializestheFlashinterfaceandtheSystick.*/HAL_Init();/*USERCODEBEGINInit*//*USERCODEENDInit*//*Configurethesystemclock*/SystemClock_Config();/*USERCODEBEGINSysInit*//*USERCODEENDSysInit*//*Initializeallconfiguredperipherals*/MX_GPIO_Init();MX_DMA_Init();MX_USART1_UART_Init();MX_SPI5_Init();/*USERCODEBEGIN2*/// HAL_UART_Receive_DMA(&huart1,rxBuffer,BUFFER_SIZE); /*USERCODEEND2*//*Infiniteloop*//*USERCODEBEGINWHILE*/while(1){ HAL_GPIO_WritePin(GPIOF,GPIO_PIN_6,GPIO_PIN_RESET); spi_tx[0]=6; spi_tx[1]=7; spi_tx[2]=8; spi_tx[3]=9; memset(spi_rx,0,BUFFER_SIZE); HAL_SPI_TransmitReceive_DMA(&hspi5,spi_tx,spi_rx,BUFFER_SIZE); HAL_GPIO_WritePin(GPIOF,GPIO_PIN_6,GPIO_PIN_SET); HAL_Delay(1000);/*USERCODEENDWHILE*//*USERCODEBEGIN3*/}/*USERCODEEND3*/}
2023/11/1 6:11:26 33.37MB spi DMA 主机 STM32CubeMX
1
C#inDepth,FourthEditionisyourkeytounlockingthepowerfulnewfeaturesaddedtothelanguageinC#5,6,and7.FollowingtheexpertguidanceofC#legendJonSkeet,you’llmasterasynchronousfunctions,expression-bodiedmembers,interpolatedstrings,tuples,andmuchmore.Thepowerful,flexibleC#programminglanguageisthefoundationof.NETdevelopment.Evenaftertwodecadesofsuccess,it’sstillgettingbetter!ExcitingnewfeaturesinC#6and7makeiteasierthanevertotakeonbigdataapplications,cloud-centricwebdevelopment,andcross-platformsoftwareusing.NETCore.There’sneverbeenabettertimetolearnC#indepth.C#inDepth,FourthEditionisarevisededitionofthebestsellerwrittenbyC#legendJonSkeet.Thisauthoritativeandengagingguideisyourkeytounlockingthispowerfullanguage,includingthenewfeaturesofC#6and7.Init,Jonintroducesexpression-bodiedmembers,interpolatedstrings,patternmatching,andmore.Real-worldexamplesdriveitallhome.Bytheendofthisawesomebook,you’llbewritingC#codewithskill,style,andconfidence.
2023/10/28 18:14:35 4.81MB C#
1
这是用XS128驱动OLED的程序。
------------------------------------CodeWarrior5.0/1Target:MC9S12XS128Crystal:16.000Mhzbusclock:16.000MHzpllclock:32.000MHz============================================使用说明:OLED电源使用5V。
----------------G电源地3.3V接5V电源,电源跟模块之间串接100欧姆电阻,并加3.3V钳位二极管D0PORTE_PE2单片机跟模块之间串接2k-3.3k电阻D1 PORTE_PE3单片机跟模块之间串接2k-3.3k电阻RSTPORTE_PE4单片机跟模块之间串接2k-3.3k电阻DCPORTE_PE5单片机跟模块之间串接2k-3.3k电阻CS已接地,不用接============================================如果用户使用的是5V单片机,请看用户手册,切勿烧毁模块!============================================*/#include"derivative.h"#include#include#include"OLED12864.h"//PLL初始化子程序BUSClock=16MvoidSetBusCLK_48M(void){CLKSEL=0X00;//disengagePLLtosystemPLLCTL_PLLON=1;//turnonPLLSYNR=0xc0|0x05;REFDV=0x80|0x01;POSTDIV=0x00;//pllclock=2*osc*(1+SYNR)/(1+REFDV)=96MHz;_asm(nop);//BUSCLOCK=48M_asm(nop);while(!(CRGFLG_LOCK==1));//whenpllissteady,thenuseit;CLKSEL_PLLSEL=1;//engagePLLtosystem;}voidDly_ms(intms){intii,jj;if(ms<1)ms=1;for(ii=0;ii<ms;ii++)for(jj=0;jj<1335;jj++);//16MHz--1ms//for(jj=0;jj<4006;jj++);//48MHz--1ms//for(jj=0;jj<5341;jj++);//64MHz--1ms}//============================MAIN()===========================/*********************主函数************************************/voidmain(void){bytei=0;SetBusCLK_48M();DDRB=0XFF;DDRE=0XFF;PORTB=0XFF;LCD_Init();DisableInterrupts;for(;;){//LCD_Fill(0xff);//Dly_ms(100);//LCD_Fill(0x00);//Dly_ms(2000);//LCD_CLS();//LCD_Print(12,0,"广州Beyond科技");//LCD_Print(15,2,"飞思卡尔智能车");//LCD_Print(43,4,"专营店");//LCD_Print(15,6,"智能车首选液晶");//LCD_P8x16Str(48,4,"OLED");//LCD_P6x8Str(16,6,"b
2023/10/17 14:34:33 255KB OED例程
1
共 86 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡