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
| local gadget = gadget ---@type Gadget | |
| function gadget:GetInfo() | |
| return { | |
| name = "AutoColorPicker", | |
| desc = "Automatically assigns colors to teams", | |
| author = "Damgam, Born2Crawl (color palette), kafka42", | |
| date = "2021", | |
| license = "GNU GPL, v2 or later", | |
| layer = -100, |
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
| # pip install matplotlib | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| safe_colors = ["#000000","#000033","#000066","#000099","#0000CC","#0000FF","#003300","#003333","#003366","#003399","#0033CC","#0033FF","#006600","#006633","#006666","#006699","#0066CC","#0066FF","#009900","#009933","#009966","#009999","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#00FF00","#00FF33","#00FF66","#00FF99","#00FFCC","#00FFFF","#330000","#330033","#330066","#330099","#3300CC","#3300FF","#333300","#333333","#333366","#333399","#3333CC","#3333FF","#336600","#336633","#336666","#336699","#3366CC","#3366FF","#339900","#339933","#339966","#339999","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#33FF00","#33FF33","#33FF66","#33FF99","#33FFCC","#33FFFF","#660000","#660033","#660066","#660099","#6600CC","#6600FF","#663300","#663333","#663366","#663399","#6633CC","#6633FF","#666600","#666633","#666666","#666699","#6666CC","#6666FF","#669900","#669933","#669966"," |
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 json | |
| import os | |
| import requests | |
| # You need the bearer token, to get it, go to https://developer.twitter.com/en/portal/projects-and-apps and create an app | |
| bearer_token = os.environ['TWITTER_TOKEN'] | |
| if __name__ == "__main__": | |
| with open('following.js') as file: |
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
| --- | |
| Language: Cpp | |
| BasedOnStyle: WebKit | |
| IndentWidth: 4 | |
| TabWidth: 4 | |
| UseTab: Always | |
| SortUsingDeclarations: false | |
| SortIncludes: false | |
| BreakConstructorInitializers: AfterColon | |
| SpaceAfterTemplateKeyword: false |
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
| <? | |
| echo "salut"; | |
| ?> |
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
| #include <math.h> | |
| #include <ctime> | |
| #include <vector> | |
| #include <ros/ros.h> | |
| #include <sensor_msgs/Imu.h> | |
| #include <sensors/compass.h> | |
| #include "links/imuros.h" | |
| #include "links/imubuff.h" |
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
| -module(brainfuck). | |
| -export([brainfuck/1]). | |
| %% Hello, world: | |
| %%brainfuck:brainfuck("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."). | |
| brainfuck(Codes) -> | |
| start(string:substr(Codes, 1, 1), 1, Codes, 1, array:new([{size, 3000},{default, 0}])). | |
| start([], N, Codes, P, Data) -> |
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
| from PIL import Image | |
| def pair(a): | |
| if a % 2 == 0: | |
| return a | |
| else: | |
| return a-1 | |
| def impair(a): | |
| if a % 2 != 0: | |
| return a |
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
| if(!cube_initiation && CubeCenter.size() >= 2){ | |
| cubes.push_back(CubeCenter[0]); | |
| cubes.push_back(CubeCenter[1]); | |
| missing_association.push_back(0); | |
| missing_association.push_back(0); | |
| cube_initiation = true; | |
| } | |
| else if(cube_initiation ){ | |
| for(int index = 0; index < 2; index++){ | |
| ROS_INFO("No seg"); |
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
| In file included from /usr/include/eigen3/Eigen/Core:277:0, | |
| from /usr/include/eigen3/Eigen/Dense:1, | |
| from /home/philippe/devRosWs/src/mutualCameraLocalization/include/mutualCameraLocalization/mutual_camera_localization_node.h:26, | |
| from /home/philippe/devRosWs/src/mutualCameraLocalization/src/mutual_camera_localization_node.cpp:17: | |
| /usr/include/eigen3/Eigen/src/Core/DenseBase.h: In instantiation of ‘class Eigen::DenseBase<Eigen::Matrix<float, 4, 1> >’: | |
| /usr/include/eigen3/Eigen/src/Core/MatrixBase.h:61:34: required from ‘class Eigen::MatrixBase<Eigen::Matrix<float, 4, 1> >’ | |
| /usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:65:7: required from ‘class Eigen::PlainObjectBase<Eigen::Matrix<float, 4, 1> >’ | |
| /usr/include/eigen3/Eigen/src/Core/Matrix.h:140:7: required from ‘class Eigen::Matrix<float, 4, 1>’ | |
| /usr/include/eigen3/Eigen/src/Geometry/Quaternion.h:287:16: required from ‘class Eigen::Quaternion<float>’ | |
| /usr/include/eigen3/Eigen/src/Geometry/arch/Geo |
NewerOlder