我目前在github上有一个私有存储库,我想公开它.但是,一些初始提交包含我不想公开的信息(硬编码的创意等).
在不包含部分或全部提交历史记录的情况下,将最新提交公开(我真的不需要或想要公共存储库中的先前提交)的最简单路由是什么?
当我使用a wait时AsyncTask,我得到了ERROR/AndroidRuntime(24230): Caused by: java.lang.IllegalMonitorStateException: object not locked by thread before wait()
是否有可能使用Asynctask等待?怎么样?
谢谢
class WaitSplash extends AsyncTask<Void, Void, Void> {
protected Void doInBackground(Void... params) {
try {
wait(MIN_SPLASH_DURATION);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
protected void onPostExecute() {
waitSplashFinished = true;
finished();
}
}
Run Code Online (Sandbox Code Playgroud) 上周在 Google I/O '17 期间,Google 宣布 Google Assistant 将很快在其他国家/地区推出(例如法国、德国、日本......)我是一名法国开发人员,我想为 Google 开发一个新的 Action助手。
目前只能用英语进行,但有人知道国际化系统是否可用,或者我是否必须开发我当前的英语代理的副本并在法国人可以使用 Google 助理时将其翻译成法语?
如果创建了一个国际化系统,它是否仅在 API.ai 上可用,仅在 Actions SDK 上可用还是在两者上可用?
提前致谢 :)
编辑:Google Assistant 目前正在部署到法国用户 (29/05/2017),现在真的需要一个国际化系统。
当我尝试删除CSPunsafe-inline源时script-src,我的 Angular Web 应用程序不再工作。
在 Angular@12+ 中使用 SCSS 时,Angularonload在index.html
<link rel="stylesheet" href="styles.672c1ac3d6da8cc311a2.css" media="print" onload="this.media='all'">
这会导致头违反 CSPunsafe-inline源script-src。
如何解决此问题并消除我的 Angular Web 应用程序上的此“安全漏洞”?
styles content-security-policy angular unsafe-inline script-src