pic

优化博客园界面——添加正方体特效和音乐播放器,再加一个动态背景

十年热恋 提交于 2019-12-04 18:42:06
一、准备工作 我们有些特效需要js代码,所以我们要首先获得js使用权 1、在博客原后台找到设置 2、我是已经申请过了,没有申请的话这个红线位置有一个申请标志,点一下就可以 二、展示效果 三、代码实现 页面定制CSS代码: 1 /*动态背景*/ 2 * { 3 margin: 0; 4 padding: 0; 5 } 6 7 body,html { 8 height: 250%; /*改这里的话让js动态效果全局覆盖*/ 9 width: 100%; 10 } 11 12 13 #github-iframe { 14 position: fixed; 15 left: 32px; 16 top: 32px; 17 } 18 19 #area-render { 20 position: fixed; 21 width: 320px; 22 height: 100px; 23 right: 4px; 24 bottom: 100px; 25 border: dashed 1px #ccc; 26 } 27 /* 定制公告栏音乐插件的样式 */ 28 .aplayer { 29 font-family: Arial,Helvetica,sans-serif; /*音乐插件字体*/ 30 margin: 0px; /*音乐插件与公告栏左边的边距,0px就是直接抵到公告栏左边的边上*/ 31

JavaScript面向对象初步认识

主宰稳场 提交于 2019-12-04 08:29:03
一、面向对象初步认识 1.什么是对象? 一句话解释: 万物皆对象 对象是有属性的:用{ }来写入! 2.对象的应用(接口) json 接口简单的说就是后台提供给前端提供数据的,让我们进行渲染! 请求接口的时候我们会用到一个boom函数 fetch() 3.小例子 代码如下: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> ul { list-style: none; } ul li { float: left; width: 224px; margin: 0 20px 20px 0; } .pic { width: 224px; height: 291px; } .pic img { width: 100%; height: 100%; } .qian { overflow: hidden; } .left { float: left; font-size: 16px; color: #f36;

操作word

£可爱£侵袭症+ 提交于 2019-12-04 08:11:44
package com.gwt.flow.task; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.apache.commons.lang3.StringUtils; import org.apache.poi.POIXMLDocument; import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.util.Units; import org.apache.poi.xwpf.model

base64文件上传后台处理

橙三吉。 提交于 2019-12-04 07:30:36
jscanvas前端画图 <canvas id="myCanvas" width="500" height="300"></canvas> unction DrawPic() { // Get the canvas element and its 2d context var Cnv = document.getElementById('myCanvas'); var Cntx = Cnv.getContext('2d'); // Create gradient var Grd = Cntx.createRadialGradient(150, 150, 20, 140, 200, 330); Grd.addColorStop(0, "#c96513"); Grd.addColorStop(1, "#861d33"); // Fill with gradient Cntx.fillStyle = Grd; Cntx.fillRect(0, 0, 500, 300); // Write some text for (i=1; i<10 ; i++) { Cntx.fillStyle = "white"; Cntx.font = "36px Microsoft YaHei"; Cntx.globalAlpha = (i-1) / 9; Cntx.fillText("jQuery之家

pronounce a color based on the bits values with the pic 18f4550

好久不见. 提交于 2019-12-04 07:23:00
问题 update 2 I want to make a program that can play sound (that can say red, green and blue) on my pic 18f4550 there is a speaker connected to the picdem, that part works fine, I wrote the following program with microchip version 6.83 with the C compiler. I need to retrieve the bits value of a .wav file, when I say red (this has a bit pattern). My right question, how can a get the bit value of my .wav file. void main (void) { TRISD = 0x00; // PORTD als uitgang TRISB = 0b00110000; // RB4 en RB5

python 链接kafka

北战南征 提交于 2019-12-04 06:36:11
1.创建生产者 from kafka import KafkaProducer from kafka.errors import KafkaError producer = KafkaProducer( bootstrap_servers=['127.0.0.1:5000', '127.0.0.1:5001', '127.0.0.1:5002']) future = producer.send("pic_collect", b'I am rito yan') try: record_metadata = future.get(timeout=10) print(record_metadata) except KafkaError as e: print(e) 2.创建消费者: from kafka import KafkaConsumer consumer = KafkaConsumer( "pic_collect", group_id="pic_consumer", bootstrap_servers=['127.0.0.1:5000', '127.0.0.1:5001', '127.0.0.1:5002']) for message in consumer: print("%s:%d:%d: key=%s value=%s" % (message.topic, message

Linker file unselected

試著忘記壹切 提交于 2019-12-04 06:21:25
问题 I am dealing with a problem in my application with the linker file. What's happening is in the explorer tab it seems the linker file it's not "selected" I have to refer that I also have a bootloader. I'm getting an error of "(944) data conflict at address 1FC02FF8h" and I think it's related with that. Can anyone help me on that? Many Thanks. 回答1: Right click your linker files folder and make sure that the file is not excluded in your current config. Edit: Right Click "Linker Files"-

Can I make a function that accepts both ram and rom pointers in Microchip C18?

元气小坏坏 提交于 2019-12-04 02:38:38
When I declare a function that accepts const char* and I pass a string literal, I get a Warning: [2066] type qualifier mismatch in assignment because string literals are rom const char* . It's the same the other way around. Though the PIC is Harvard architecture, the memory is mapped into one contiguous address space, so theoretically it should be possible to support both ram and rom pointers the same way. Probably I have to use rom pointers because they are 24 bit while ram pointers are 16 bit. However, just casting a const char* to a const rom char* does not work. mizo Unfortunately, this is

页面旋转立方体图片

自作多情 提交于 2019-12-03 17:02:01
<style> /*最外层容器样式*/ .wrap { width: 100px; height: 100px; margin: 150px; position: absolute; bottom: 100px; right: 80px; } /*包裹所有容器样式*/ .cube { width: 50px; height: 50px; margin: 0 auto; transform-style: preserve-3d; transform: rotateX(-30deg) rotateY(-80deg); animation: rotate linear 20s infinite; } @-webkit-keyframes rotate { from { transform: rotateX(0deg) rotateY(0deg); } to { transform: rotateX(360deg) rotateY(360deg); } } .cube div { position: absolute; width: 200px; height: 200px; opacity: 0.8; transition: all .4s; } /*定义所有图片样式*/ .pic { width: 200px; height: 200px; } .cube .out_front {

Free alternative to MPLAB (PIC development)

穿精又带淫゛_ 提交于 2019-12-03 16:16:20
问题 I started using MPLAB recently, but for someone that works with Eclipse and VS the IDE it's very limited. Do you know any free IDE or how to configure Ecplise or Netbeans to PIC development? Thanks all 回答1: The underlying toolchain (compiler/linker etc.) can be used from any environment including Eclipse and Visual Studio, though Eclipse is probably the more flexible in this respect. MPLAB has a feature to export a project as a makefile that can be used with GNU make, although you may rather