以http://jsfiddle.net/为例;此外也可以选择run.js开通博客园后请求js权限,邮件发送至contact@cnblogs.com,简单写明开通原因;注册jsfiddle或run.js,并写好demo;简单的可以按下面格式在,工具栏中点击HTML,显示当前页面的HTML之后插入即可...
分类:
其他好文 时间:
2014-12-27 16:07:37
阅读次数:
234
最近使用android studio碰到个莫名其妙的问题,就是在run的时候无法加载到虚拟机或者是真机,对此我google和百度了下,有的说删除data里面的数据,有的说手机回复出厂设置,但是对我 来说这些都不行。 重装了好几次as,问题依然存在,求各位支个招,能不重装系统就尽量不重装。以下是错.....
分类:
移动开发 时间:
2014-12-27 00:09:57
阅读次数:
192
We can run a Gradle build without any of the task actions being executed. This is a so-called dry run of our build. We can use the dry run of a build ...
分类:
其他好文 时间:
2014-12-26 22:49:13
阅读次数:
342
If we run a Gradle build and one of the tasks fails, the whole build stops immediately. So we have fast feedback of our build status. If we don't want...
分类:
其他好文 时间:
2014-12-26 21:31:21
阅读次数:
262
制作简单的安装包的时候可以简单的用cat命令连接两个文件,然后头部是脚本文件,执行的时候把下面的文件分解出来就行了。一般这个后部分的文件是个压缩 包,那样,就能够打包很多文件了,在脚本中解压出来即可。这就是Linux那些bin啊run啊等安装脚本的简单制作了。下面来看看两个简单的例子:——————....
分类:
系统相关 时间:
2014-12-26 18:06:31
阅读次数:
179
进入/etc/logrotate.d目录创建tomcat文件,内容如下:/usr/local/java/tomcat7/logs/catalina.out{dailyrotate15missingoknotifemptycopytruncatecompressnodelaycompresssharedscriptspostrotate/bin/kill-HUP`cat/var/run/syslogd.pid2>/dev/null`2>/dev/null||true/bi..
分类:
系统相关 时间:
2014-12-26 14:50:41
阅读次数:
296
备份, 原文:http://rocry.com/2012/12/17/xcode-tips/让代码中的TODO和FIXME变成Warning选中某个Target > Build Phase > Add Build Phase > Add Run Script然后输入1234KEYWORDS="TOD...
分类:
其他好文 时间:
2014-12-26 14:30:38
阅读次数:
116
1.通过debug命令进行调试node debug app.js运行的结果:在debug状态下输入"repl"命令可以评估变量和表达式的值按下'CTRL+C'可以退出repl状态,进入debug状态。在debug状态有一下命令可以进行使用:命令功能run执行脚本,在第一行暂停restart重新执行脚...
分类:
Web程序 时间:
2014-12-26 06:08:19
阅读次数:
208
经典的滑雪问题。
代码如下:
#include
#include
#include
using namespace std;
int m[110][110],d[110][110],r,c;
int dx[]={1,-1,0,0},dy[]={0,0,1,-1};
int dp(int i,int j)
{
if(d[i][j]>0)
return d[i]...
分类:
其他好文 时间:
2014-12-25 23:41:17
阅读次数:
192
要实现后台任务,需要实现IBackgroundTask接口1 public sealed class SimpleTask : IBackgroundTask2 {3 public void Run(IBackgroundTaskInstance taskInstan...