假设我有一个简单的makefile,如:
hello:
echo "hello world"
bye:
echo "bye bye"
Run Code Online (Sandbox Code Playgroud)
然后在bash我想要的东西:
make h <tab>
所以它可以完成
打招呼
我发现了一种简单的方法,比如创建空文件hello,bye但我正在寻找更复杂的东西.
我想用scala 2.11编写一个插件
sbtPlugin := true
scalaVersion := "2.11.0"
Run Code Online (Sandbox Code Playgroud)
当前的sbt版本(0.13.9)是基于scala 2.10.5建立的 https://github.com/sbt/sbt/blob/0.13.9/build.sbt#L27
编辑: 在社区构建中构建 2.11 .
https://scala-ci.typesafe.com/job/scala-2.11.x-integrate-community-build/lastSuccessfulBuild/consoleFull
[sbt] --== Extracting dependencies for sbt ==--
[sbt] Fetching https://github.com/sbt/sbt.git
[sbt] into /home/jenkins/workspace/scala-2.11.x-integrate-community-build/target-0.9.1/clones/d12473907f59fe78661e5f2a758557fe14df3ac6
[sbt] Took: 00h 00m 02.3s
[sbt] Fetching /home/jenkins/workspace/scala-2.11.x-integrate-community-build/target-0.9.1/clones/d12473907f59fe78661e5f2a758557fe14df3ac6
[sbt] into /home/jenkins/workspace/scala-2.11.x-integrate-community-build/target-0.9.1/extraction/18f58ea36720e88c2e79edce7efe5b626fc09a5e/projects/c2c0436b24853ab78d6f35ecf52a77248da4e537
[sbt] Took: 00h 00m 01.3s
[sbt] The following subprojects will be built in project sbt: launcher-interface, test-agent, control, io, datatype-generator, process, scripted-framework, interface, launcher, precompiled-2_8_2, relation, classpath, api, precompiled-2_9_2, logging, compile, run, classfile, scripted-sbt, testing, incremental-compiler, persist, compiler-integration, precompiled-2_9_3, …Run Code Online (Sandbox Code Playgroud) 我需要遍历一个形状像树的API.例如,目录结构或讨论的线程.它可以通过以下流程建模:
type ItemId = Int
type Data = String
case class Item(data: Data, kids: List[ItemId])
def randomData(): Data = scala.util.Random.alphanumeric.take(2).mkString
// 0 => [1, 9]
// 1 => [10, 19]
// 2 => [20, 29]
// ...
// 9 => [90, 99]
// _ => []
// NB. I don't have access to this function, only the itemFlow.
def nested(id: ItemId): List[ItemId] =
if (id == 0) (1 to 9).toList
else if (1 <= id && id <= 9) ((id …Run Code Online (Sandbox Code Playgroud) 我正在运行Eclipse中需要大量内存的Java应用程序.
我在哪里可以放旗?-Xmms-xms
我想用干净的GUI设计新的Git客户端.
是否可以在Java应用程序中使用HTML,CSS和JavaScript的强大功能?
我想将Java + JGit用于模型,Java用于控制器,HTML + CSS + JavaScript用于视图.
我不想要客户端 - 服务器模型.我想很好地集成Java和HTML.DOM事件会直接将事件触发到Java控制器.这样就可以创建丰富的离线应用程序.
我想使用Akka Streams读取多个大文件来处理每一行.想象一下,每个键都包含一个(identifier -> value).如果找到新的标识符,我想将它及其值保存在数据库中; 否则,如果在处理行流时已找到标识符,我只想保存该值.对于这一点,我认为我需要某种形式的递归状态流量,以保持这种已经在发现标识符Map.我想我会在这个流程中收到一对(newLine, contextWithIdentifiers).
我刚刚开始研究Akka Streams.我想我可以管理自己做无状态处理的东西,但我不知道如何保持contextWithIdentifiers.我很欣赏指向正确方向的任何指示.
这是我的代码:
.state('profile',{
url : '/profile',
templateUrl: 'views/user.html',
controller: 'UserCtrl'
})
.state('profile.forgot',{
url : '/delivers',
templateUrl: 'views/user_forgot.html', <- this template not appear, when state is active
controller: 'forgotCtrl'
})
<a ui-sref="profile.forgot">Forgot your pasword?</a>
<div class="panel" ui-view=""></div>
Run Code Online (Sandbox Code Playgroud)
当我点击链接时,在ui-view中出现了父状态的模板和控制器.AngularJS版本是1.2.0-rc.2
我正在学习数据库课程,我必须编写一个命令行应用程序.教授希望我们编写一个ESQL(嵌入式SQL)应用程序.
我觉得这种技术是折旧的.
我们必须使用oracle预编译器来翻译c ++中的esql代码.这种应用程序看起来很糟糕.
php应用程序也可以正常运行,但是他们可能希望命令行应用程序更快地进行分级(使用输入源进行单元测试).您认为,Embed SQL是业内使用的,是否值得请教教授做一个java应用程序?还有其他技术更合适吗?
我知道你可以使用Apple + control + D来检查可可日食中的工作.是否可以将mac词典文件用于Eclipse内置拼写检查程序(Spelling)?
希望他们在这个问题上没有英语错误哈哈哈:P
我的c代码中有溢出的工具吗?
我的意思是看看哪些代码块可能会使寄存器移动到内存中.
编辑:什么是泄漏:
在某些时候编译代码的过程中,您必须进行寄存器分配.编译器将执行干扰图("变量"是节点,如果它们同时存在则它们是连接的).从这一点开始,有一个线性过程将进行图形着色:为每个变量分配一个不会干扰其他变量的寄存器......如果没有足够的寄存器来为图形着色,算法将失败并且变量(寄存器) )将被溢出(移动到记忆中).
从软件工程的角度来看,这意味着您应该始终最小化变量,以便最大限度地减少泄漏的可能性.
当您想要优化代码时,您应该寻找那些类型的东西,因为溢出会给予额外的时间来读/写内存.我正在寻找一个工具或编译器标志,可以告诉我哪里溢出,所以我可以优化.