conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Rename width and height variables\n"
},
{
"from": "human",
"value": "final int screenWidth = 1366;\nfinal int screenHeight = 768;\nfinal color black = color(0, 0, 0);\n\nCamera camera;\nMouse mouse;\nRoom room;\n\nvoid setup() {\n size(screenWidth, screenHeight, P3... | processing | chosen |
[
{
"from": "system",
"value": "Update Wikipedia example sketch to use HTTPS.\n\nSee f51ad6457a50c910e17e66247b3edabc725f140a and\nhttps://github.com/danbernier/WordCram/pull/64 for more info.\n"
},
{
"from": "human",
"value": "import wordcram.*;\n\nsize(600, 350);\nbackground(255);\n\n/*\n * Ther... | processing | chosen |
[
{
"from": "system",
"value": "Use measurements in emulator that are displayed on Vehicle Dashboard.\n"
},
{
"from": "human",
"value": "/*\n * Emulates being plugged into a live CAN network by output randomly valued\n * JSON messages over USB.\n */\n\n#include \"WProgram.h\"\n#include \"chipKIT... | processing | chosen |
[
{
"from": "system",
"value": "Add random colour. Finished Vera.\n"
},
{
"from": "human",
"value": "int border = 50;\nint repetitions = 5;\nint w = 100;\nint h = 100;\nint x = 0;\nint y = 0;\n\nvoid setup() {\n size(800,800);\n rectMode(CORNER);\n noStroke();\n frameRate(1);\n}\n\nvoid draw()... | processing | chosen |
[
{
"from": "system",
"value": "Use box to make room\n"
},
{
"from": "human",
"value": "class Room {\n\n final float centreX = 0;\n final float centreY = 0;\n final float centreZ = 0;\n\n Camera camera;\n float wallSize;\n\n Room(Camera camera) {\n this.camera = camera;\n wallSize = 20... | processing | chosen |
[
{
"from": "system",
"value": "ADD SOME COLOR EFFECT AND COMMENTS\n\nAdd shades of grey and put some comments\n"
},
{
"from": "human",
"value": "int i;\nfloat border = 20;\nfloat x1;\nfloat y1;\nfloat di;\n\n\nvoid setup() {\n size(600,600);\n background(255);\n smooth();\n di = random(5,10);\n x... | processing | chosen |
[
{
"from": "system",
"value": "Use LED_BUILTIN instead of WLED when compiling on Arduino IDE\n"
},
{
"from": "human",
"value": "#include <SoftPWM.h>\n\nvoid setup()\n{\n SoftPWMBegin();\n\n // Sets the PWM value to 0 for the built-in LED (WLED).\n SoftPWMSet(WLED, 0);\n \n // Sets the defaul... | processing | chosen |
[
{
"from": "system",
"value": "Use Robot class to set camera position to the center of the screen on startup\n"
},
{
"from": "human",
"value": "final int screenWidth = 1366;\nfinal int screenHeight = 768;\nfinal color black = color(0, 0, 0);\n\nCamera camera;\nRoom room;\n\nvoid setup() {\n size... | processing | chosen |
[
{
"from": "system",
"value": "Add comments to main page\n"
},
{
"from": "human",
"value": "BDIM flow;\nBody body;\nFloodPlot flood;\n\nvoid setup(){\n size(800,800); // display window size\n int n=(int)pow(2,7); // number of grid points\n float L = n/8.; // length-scale in gr... | processing | chosen |
[
{
"from": "system",
"value": "Remove button event from emulator - this one needs custom handling.\n"
},
{
"from": "human",
"value": "/*\n * Emulates being plugged into a live CAN network by output randomly valued\n * JSON messages over USB.\n */\n\n#include \"WProgram.h\"\n#include \"chipKITUS... | processing | chosen |
[
{
"from": "system",
"value": "Move test populate code to its own method.\n"
},
{
"from": "human",
"value": "import java.util.*;\nimport java.text.*;\nimport java.nio.file.*;\n\nclass PrimitiveGroup {\n\n Primitive[] primitives = new Primitive[30];\n\n PrimitiveGroup() {\n\n // Populate the ... | processing | chosen |
[
{
"from": "system",
"value": "Delete old TextAnalyse file, changes at analyse example\n"
},
{
"from": "human",
"value": "/**\n * textAnalyse_basic\n * by wrongPowder Library.\n *\n * Use wrongPowder.util.string package to analyze text.\n *\n * @author Paul Vollmer\n * @modified 2011.10.31\n ... | processing | chosen |
[
{
"from": "system",
"value": "Change delay button text to string variable\n\nPlease don't ask me why the parameters for the text in the\nDelay button are set to that. If you have a better idea,\nplease send a merge request and I'd be happy to discuss it.\nUntil then...\n\n\"...but why?\"\n- Ryan Reynolds\nH... | processing | chosen |
[
{
"from": "system",
"value": "Remove old WProgram.h import from test case.\n"
},
{
"from": "human",
"value": "/*\n Blink\n Turns on an LED on for one second, then off for one second, repeatedly.\n\n This example code is in the public domain.\n */\n\n#include \"WProgram.h\"\n#include \"Wire.h\... | processing | chosen |
[
{
"from": "system",
"value": "Clean up callbacks example sketch\n"
},
{
"from": "human",
"value": "import wordcram.*;\n\nvoid setup() {\n size(1000, 500);\n smooth();\n background(255);\n\n new WordCram(this)\n .fromWebPage(\"http://wordcram.org\")\n .drawAll();\n}\n\nvoid wordsCount... | processing | chosen |
[
{
"from": "system",
"value": "Add test for negative with int casts.\n"
},
{
"from": "human",
"value": "// Checking int casting\n\n// int -> int cast\nint a = 40, b = 20;\nint r1 = (int)a;\n_checkEqual(r1, 40);\n\nint r2 = (int)a + (int)b;\n_checkEqual(r2, 60);\n\nfloat c = 5.5, d = -5.5;\nint r3... | processing | chosen |
[
{
"from": "system",
"value": "[hm] Add int main(void) instead of using default Arduino\n"
},
{
"from": "human",
"value": "// HeaterMeter Copyright 2011 Bryan Mayland <bmayland@capnbry.net> \n#include <WProgram.h>\n#include <ShiftRegLCD.h>\n#include \"hmcore.h\"\n\n// See hmcore.h for most option... | processing | chosen |
[
{
"from": "system",
"value": "Speed up image-mask example: smaller fonts\n"
},
{
"from": "human",
"value": "import wordcram.*;\nimport java.awt.*;\n\nvoid setup() {\n PImage image = loadImage(\"../heart.png\");\n size(image.width, image.height);\n \n background(128);\n \n Shape imageShape ... | processing | chosen |
[
{
"from": "system",
"value": "Remove gear position from emulator - requires custom handler.\n"
},
{
"from": "human",
"value": "/*\n * Emulates being plugged into a live CAN network by output randomly valued\n * JSON messages over USB.\n */\n\n#include \"WProgram.h\"\n#include \"chipKITUSBDevic... | processing | chosen |
[
{
"from": "system",
"value": "Rename CustomWorld to CWorld pt2\n"
},
{
"from": "human",
"value": " class WaveSequence {\n private Game game;\n \n private LinkedList<Wave> waves;\n private Path path;\n \n // TODO: Need to spawn initial wave's units first, then others at spawnsAt.\n\n Wave... | processing | chosen |
[
{
"from": "system",
"value": "Set daemon thread to be false\n\nSeems to have improved the garbage collection process\n"
},
{
"from": "human",
"value": "public class ThreadTask extends TimerTask {\n Thread thread;\n ThreadTask(Thread thread) {\n\t this.thread = thread;\n }\n\n public void run() {... | processing | chosen |
[
{
"from": "system",
"value": "Reduce gap between Sony messages. This should work more reliably.\n"
},
{
"from": "human",
"value": "/*\n * IRremote: IRsendDemo - demonstrates sending IR codes with IRsend\n * An IR LED must be connected to Arduino PWM pin 3.\n * Version 0.1 July, 2009\n * Copyrig... | processing | chosen |
[
{
"from": "system",
"value": "Use new Camera and Room methods\n"
},
{
"from": "human",
"value": "final int width = 1366;\nfinal int height = 768;\nfinal color black = color(0, 0, 0);\n\nMouse mouse;\nCamera camera;\nRoom room;\n\nvoid setup() {\n size(width, height, P3D);\n noCursor();\n mous... | processing | chosen |
[
{
"from": "system",
"value": "Replace magic number for button outline color\n"
},
{
"from": "human",
"value": "class Button {\n final int buttonX;\n final int buttonY;\n final int buttonW;\n final int buttonH;\n\n final color COLOR_BLACK = color(0);\n final color COLOR_GREY_DARK = color(51... | processing | chosen |
[
{
"from": "system",
"value": "Store previous mouse location x-coordinate\n"
},
{
"from": "human",
"value": "import java.awt.AWTException;\nimport java.awt.Robot;\n\nclass Mouse {\n\n Robot robot;\n int prevX;\n\n Mouse(int x) {\n try {\n robot = new Robot();\n } catch (AWTException... | processing | chosen |
[
{
"from": "system",
"value": "Rename pass field to attempt\n"
},
{
"from": "human",
"value": "import java.awt.AWTException;\nimport java.awt.Robot;\n\nclass Mouse {\n\n Robot robot;\n boolean centred;\n int pass;\n\n Mouse() {\n try {\n robot = new Robot();\n } catch (AWTException... | processing | chosen |
[
{
"from": "human",
"value": "Add new sketch for olli: midieuclid, automagiccontroller, magic sysex page\n"
},
{
"from": "gpt",
"value": "#include <MidiClockPage.h>\n#include <MidiEuclidSketch.h>\n#include <AutoMidiController.h>\n\nPitchEuclidSketch sketch;\nAutoMidiControllerSketch sketch2;\nSke... | processing | chosen |
[
{
"from": "human",
"value": "Add another approach to a logview using processing 3\n"
},
{
"from": "gpt",
"value": "import hypermedia.net.*;\nimport java.util.*;\n\nList<String> history = new ArrayList<String>();\n\nint PORT_RX=4242;\nString HOST_IP = \"localhost\";//IP Address of the PC in which... | processing | chosen |
[
{
"from": "human",
"value": "Add blocking midi clock callback test sketch\n"
},
{
"from": "gpt",
"value": "#include <GUI.h>\n\nclass ClockCallbackTest : public ClockCallback {\n public:\n ClockCallbackTest() {\n }\n \n void onStartCallback() {\n GUI.flash_strings_fill(\"RECEIVED\", \"STA... | processing | chosen |
[
{
"from": "human",
"value": "Add First pde file (frame).\n"
},
{
"from": "gpt",
"value": "void setup()\n{\n fullScreen();\n background(51);\n}\n\n\n\nvoid draw()\n{\n int cx = width/2;\n int cy = height/2;\n \n noFill();\n stroke(0,255,255);\n strokeWeight(4);\n \n rectMode(CENTER);\n ... | processing | chosen |
[
{
"from": "human",
"value": "Add video tutorial hello world\n"
},
{
"from": "gpt",
"value": "void setup() {\n GUI.setLine(GUI.LINE1);\n GUI.put_string_fill(\"HELLO WORLD\");\n}\n\nvoid handleEvent(gui_event_t *evt) {\n GUI.setLine(GUI.LINE2);\n for (uint8_t i = Buttons.BUTTON1; i <= Buttons.... | processing | chosen |
[
{
"from": "human",
"value": "Add debug sketch for MNM sysex\n"
},
{
"from": "gpt",
"value": "#include <MNM.h>\n\nvoid setup() {\n \n}\n\n\nclass DebugCallbacks : public MNMCallback {\npublic:\n DebugCallbacks() {\n }\n\n void onKitMessage() {\n MNM.kit.fromSysex(MidiSysex.data + 5, Midi... | processing | chosen |
[
{
"from": "human",
"value": "Add test firmware for MNM messages\n"
},
{
"from": "gpt",
"value": "#include <MNM.h>\n\nclass TestMNMSketch : public Sketch, MNMCallback {\npublic:\n EncoderPage page;\n\n TestMNMSketch() {\n }\n\n void setup() {\n }\n\n bool handleEvent(gui_event_t *event) {\n... | processing | chosen |
[
{
"from": "human",
"value": "Test the tempo encoder for MD\n"
},
{
"from": "gpt",
"value": "#include <MD.h>\n\nMDTempoEncoder foo(\"TMP\", 130);\nMDTrackFlashEncoder foo2(\"TRK\", 0, true);\nEncoderPage page(&foo, &foo2);\n\nvoid setup() {\n GUI.setPage(&page);\n}\n"
}
] | processing | chosen |
[
{
"from": "human",
"value": "Add Processing sketch for logging serial data"
},
{
"from": "gpt",
"value": "import processing.serial.*;\r\n\r\nSerial serial;\r\nPrintWriter out;\r\n\r\nvoid setup() {\r\n serial = new Serial(this, \"COM3\", 115200);\r\n out = createWriter(\"data.txt\");\r\n}\r\n\... | processing | chosen |
README.md exists but content is empty.
- Downloads last month
- 7