This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var SMOOTHING_AMOUNT = 20; | |
| var FADEOUT_COEF = 0.5; | |
| let PIXEL_SIZE = 20; | |
| let MIN_SIZE = 2; | |
| let MAX_SIZE = 5; | |
| let NUM_DOTS_MIN = 2; | |
| let NUM_DOTS_MAX = 5; | |
| scene = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| List<SceneObject> scene; | |
| float SMOOTHING_AMOUNT = 150; | |
| // lower = more edge fadeout | |
| float FADEOUT_COEF = 0.05; | |
| float FADEOUT_COEF_LOG = 1; | |
| void setup() { | |
| size(600, 600); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| # replace quotes with unicode accent diacritics for anki flashcards | |
| import sys | |
| chars = "" | |
| with open(sys.argv[1], encoding="utf-8") as cardfile: | |
| chars = cardfile.read() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ArrayList<Follower> f = new ArrayList<Follower>(); | |
| int NUM_FOLLOWERS = 3000; | |
| class PID { | |
| float kp, ki, kd; | |
| float prevError = 0; | |
| float integral = 0; | |
| int prevMillis = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Random; | |
| class Point { | |
| double x, y; | |
| Point(double x, double y) { | |
| this.x = x; | |
| this.y = y; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Desktop Entry] | |
| Type=Application | |
| Name=Ranger | |
| Comment=File Manager | |
| MimeType=inode/directory | |
| Categories=Utility;FileManager | |
| Exec=/home/liam/Applications/ranger-term %f | |
| Path=/home/liam/Applications[Desktop Entry] | |
| Type=Application | |
| Name=Ranger |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int searchSize = 1000; | |
| int[] list = {0}; | |
| int index = 0; | |
| int maxVal; | |
| int prevMaxVal = 0; | |
| int windowSize = 1; | |
| void setup() { | |
| size(1000, 1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! This defines primitives that plugins may use to provide their own library functions to the language. | |
| //! | |
| //! Plugins must be compiled/linked as a C dynamic library, and provide the following public functions: | |
| //! - `fn get_library_functions() -> FfiLibraryFunctionsVec` | |
| //! - `fn dealloc_library_functions_vec(FfiLibraryFunctionsVec)` | |
| //! | |
| //! This api can easily be provided by using the library! macro and supplying all of the plugin's intrinsic functions. | |
| use std::ffi::{c_void, CString}; | |
| use std::os::raw::c_char; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test | |
| test | |
| test | |
| test | |
| test | |
| test | |
| test | |
| test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import socket | |
| def main(): | |
| if len(sys.argv) != 4: | |
| print("expected 3 args, got {}".format(len(sys.argv) - 1)) | |
| sys.exit(1) | |
| hostname = sys.argv[1] | |
| port = sys.argv[2] |