题目如下:
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on screen.
Now given a string that you ...
分类:
其他好文 时间:
2015-08-17 19:32:43
阅读次数:
109
1.screen.availHeight/screen.availWidth返回显示屏幕的高度 (除 Windows 任务栏之外),也就是浏览器全屏时的外部高度。2.outerHeight/outerWidth返回窗口的外部高度。这个用来显示整个浏览器的高和宽。它也会随着窗口的放大缩小变化。3.in...
分类:
其他好文 时间:
2015-08-15 16:10:24
阅读次数:
145
android4.2系统增永不休眠同时隐藏休眠选项
1. android\frameworks\base\packages\SettingsProvider\res\values\defaults.xml中设置def_screen_off_timeout为-1,
-1
2. android\packages\apps\Settings\res\values\arrays...
分类:
移动开发 时间:
2015-08-15 13:33:21
阅读次数:
2731
1. nohup常见的nohup,用法比较简单,就不赘述了,可以参考相应的wiki百科。https://en.wikipedia.org/wiki/Nohup2. screenscreen也是常见的在shell中启动后台进程的方法。安装方法很简单:yum -y install screen。基本语法...
分类:
其他好文 时间:
2015-08-14 21:04:09
阅读次数:
122
html{ font-size: 62.5%;}@media only screen and (min-width: 481px) { html { font-size:94%!important }}@media only screen and (min-width: 5...
分类:
移动开发 时间:
2015-08-14 18:50:15
阅读次数:
178
js:
屏幕分辨率为:screen.width * screen.height
屏幕可用大小:screen.availWidth * screen.availHeight
网页可见区域宽:document.body.clientWidth
网页可见区域高:document.body.clientHeight
网页可见区域宽(包括边线的宽):document.body.offsetWidt...
分类:
Web程序 时间:
2015-08-14 15:46:52
阅读次数:
118
#include?"SDL/SDL.h"
#include?<string>
//屏幕属性
const?int?SCREEN_WIDTH?=?640;
const?int?SCREEN_HEIGHT?=?480;
const?int?SCREEN_BPP?=?32;
//能被使用到的面
SDL_Surface?*message?=?...
分类:
其他好文 时间:
2015-08-13 23:53:44
阅读次数:
471
/** * 获取当前屏幕亮度模式 * SCREEN_BRIGHTNESS_MODE_AUTOMATIC=1 为自己主动调节屏幕亮度 * SCREEN_BRIGHTNESS_MODE_MANUAL=0 为手动调节屏幕亮度 */ private int getScreenMode(...
分类:
移动开发 时间:
2015-08-13 21:44:36
阅读次数:
124
本来打算写博文的,但是奈何自己文笔实在不行还是上个视频吧 以下是测试的代码: #include?<SDL.h>
#include?<stdio.h>
const?int?SCREEN_WIDTH?=?640;
const?int?SCREEN_HEIGHT?=?480;
int?main(?...
分类:
其他好文 时间:
2015-08-13 10:10:09
阅读次数:
120
要想在UGUI上添加particleSystem,需要将Canvas的Render Mode设置为Screen Space - Camera,并为其Render Camera指定一个Orthographic相机。Render Camera的Culling Mask设置为UI。为了保证UI的渲染在最前...
分类:
编程语言 时间:
2015-08-12 16:11:18
阅读次数:
1776