Skip to content

Instantly share code, notes, and snippets.

diff --git a/app/assets/javascripts/beak/widgets/event-traffic-control.coffee b/app/assets/javascripts/beak/widgets/event-traffic-control.coffee
index b80aed6..3131c38 100644
--- a/app/assets/javascripts/beak/widgets/event-traffic-control.coffee
+++ b/app/assets/javascripts/beak/widgets/event-traffic-control.coffee
@@ -116,6 +116,13 @@ window.controlEventTraffic = (controller) ->
ractive.set('hasFocus', document.activeElement is node)
return
+ # (_, Number, Boolean) => Unit
+ unregisterWidget = (_, id, wasNew) ->
@TheBizzle
TheBizzle / fixups.diff
Created February 8, 2018 21:09
Fixups to my `export-world` PR, between its first and second versions
diff --git a/compiler/shared/src/main/scala/Compiler.scala b/compiler/shared/src/main/scala/Compiler.scala
index 0ee680e..945087f 100644
--- a/compiler/shared/src/main/scala/Compiler.scala
+++ b/compiler/shared/src/main/scala/Compiler.scala
@@ -70,8 +70,7 @@ object Compiler extends CompilerLike {
val interfaceInit = JsStatement("interfaceInit", interfaceGlobalJs, Seq("world", "procedures", "modelConfig"))
TortoiseLoader.integrateSymbols(init ++ plotConfig ++ procedures
:+ outputConfig :+ dialogConfig
- :+ fileReaderConfig :+ worldConfig
- :+ importExportConfig
This file has been truncated, but you can view the full file.
<html><head>
<meta charset="UTF-8">
<base target="_parent">
<style>/* BASICS */
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font-family: monospace;
height: 300px;
color: black;
<html>
<head>
<link rel="stylesheet" media="screen" href= "http://netlogoweb.org/assets/lib/codemirror/lib/codemirror.css">
<link rel="stylesheet" media="screen" href= "http://netlogoweb.org/assets/stylesheets/netlogo-syntax.css">
<script src="http://netlogoweb.org/assets/lib/codemirror/lib/codemirror.js"></script>
<script src="http://netlogoweb.org/assets/lib/codemirror/addon/mode/simple.js"></script>
<script src="http://netlogoweb.org/assets/javascripts/codemirror/mode.js"></script>
</head>
<div id="nl-code" style="height: 700px;">breed [ rockets rocket ]
breed [ frags frag ]
diff --git a/tortoise/src/main/scala/Compiler.scala b/tortoise/src/main/scala/Compiler.scala
index b8bff4d..492e0b7 100644
--- a/tortoise/src/main/scala/Compiler.scala
+++ b/tortoise/src/main/scala/Compiler.scala
@@ -114,7 +114,8 @@ object Compiler extends CompilerLike {
compileMoreProcedures(model, prog, procs)
}
- val compiledProcedures = new ProcedureCompiler(handlers)(compilerFlags = compilerFlags, compilerContext = new CompilerContext(blockLevel = 0, source = model.code)).compileProcedures(procedureDefs)
+ implicit val wrapper = SourceWrapper(model.code)

In your proposal, include the following information:

  • Your name and GitHub username
  • Your e-mail address
  • Your university/current enrollment (including what degree you're pursuing, and when you expect to graduate)
  • What is your level of familiarity with NetLogo? What is your level of familiarity with agent-based simulation in general?
  • Can you commit to a full 40 hours to week for the entire duration of GSoC?
  • What is the project you want to work on?
  • What is your experience with the technologies needed for this project?
  • What is your interest in the project? What do you hope to accomplish? What do you want to learn?
@TheBizzle
TheBizzle / FREEDOM.nlogo
Created July 31, 2015 21:35
Scattering limbs to the four corners of the universe
@TheBizzle
TheBizzle / 1BadPrim1GoodPrim.nlogo
Created July 17, 2015 19:41
A model with two buttons, one that calls code that doesn't compile in NLW, and one that calls code that's valid in NLW
@TheBizzle
TheBizzle / 1GoodPrim.nlogo
Created July 17, 2015 19:40
A model with one button, and that button calls code that works fine in NLW