Skip to content

Instantly share code, notes, and snippets.

View squirelo's full-sized avatar
💭
Currently entertaining

Valentin Squirelo squirelo

💭
Currently entertaining
View GitHub Profile
#define SPEED 85
#define TURN_SPEED 90
#define SHIFT_SPEED 130
#define MOVE_DELAY 500
#define TURN_TIME 500
#define MOVE_TIME 500
#define speedPinR 9 // Front Wheel PWM pin connect Model-Y M_B ENA
// SPDX-License-Identifier: MIT
// GO TO LINE 1904 TO SEE WHERE THE BANANA CONTRACT STARTS
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
/**
*Submitted for verification at Etherscan.io on 2021-01-06
*/
// SPDX-License-Identifier: GPL-3.0-or-later
// Includes openzeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/) code with MIT license
// File: @openzeppelin/contracts/GSN/Context.sol
@squirelo
squirelo / valencoin.sol
Created May 17, 2021 15:54
ValenCoin Bep20
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/GSN/Context.sol
// https://ropsten.etherscan.io/address/0x8df55a60a1c98281a60d6c89f59398bee854fbc8#code
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
#include <Arduino_LSM9DS1.h>
const float accelerationThreshold = 3.5; // threshold of significant in G's
const int firePin = 2;
void setup() {
Serial.begin(9600);
#include <Arduino_LSM9DS1.h>
const float accelerationThreshold = 3.5; // threshold of significant in G's
const int firePin = 2;
void setup() {
Serial.begin(9600);
@squirelo
squirelo / main.js
Last active January 29, 2020 15:10
var clientId = process.env.CLIENT_ID;
var redirectURI = 'https://localhost:1337/';
var scope = 'user_read+chat_login';
var ws;
function parseFragment(hash) {
var hashMatch = function(expr) {
var match = hash.match(expr);
return match ? match[1] : null;
};
@squirelo
squirelo / test.ino
Last active January 23, 2020 15:53
#include <WiFi.h>
#include <WebSocketsServer.h>
#include <Husarnet.h>
#include <ArduinoJson.h>
#include <SparkFunMPU9250-DMP.h>
/* =============== config section start =============== */
#define INTERRUPT_PIN 19
2019-09-09T16:07:34.963497+00:00 app[web.1]: NUMBER OF VOTES: 1
2019-09-09T16:07:34.963585+00:00 app[web.1]: usersToVoteMap: 0.122ms
2019-09-09T16:07:34.966215+00:00 app[web.1]: find().toArray: 2.540ms
2019-09-09T16:07:34.966362+00:00 app[web.1]: grosforEach: 0.086ms
2019-09-09T16:07:34.968579+00:00 app[web.1]: twitchusersCol.updateMany: 2.144ms
2019-09-09T16:07:34.970467+00:00 app[web.1]: usersSortedByPoint: 1.800ms
2019-09-09T16:07:34.972216+00:00 app[web.1]: rankUpdate: 1.676ms
2019-09-09T16:07:34.972286+00:00 app[web.1]: ==firstUsers==
2019-09-09T16:07:34.972371+00:00 app[web.1]: userRanked.twitchId
2019-09-09T16:07:34.972435+00:00 app[web.1]: getTwitchProfile twitchId
2019-09-09T14:07:44.078313+00:00 app[web.1]: responseContent: [Circular],
2019-09-09T14:07:44.078315+00:00 app[web.1]: _destdata: true,
2019-09-09T14:07:44.078316+00:00 app[web.1]: _ended: true,
2019-09-09T14:07:44.078317+00:00 app[web.1]: _callbackCalled: true },
2019-09-09T14:07:44.078318+00:00 app[web.1]: toJSON: [Function: responseToJSON],
2019-09-09T14:07:44.078319+00:00 app[web.1]: caseless: Caseless { dict: [Object] },
2019-09-09T14:07:44.078320+00:00 app[web.1]: body:
2019-09-09T14:07:44.078321+00:00 app[web.1]: '{"error":"Bad Request","status":400,"message":"The id parameter is invalid: \\"\\""}' } }
2019-09-09T14:07:43.486366+00:00 heroku[router]: at=info method=OPTIONS path="/process" host=rbt-score-api.herokuapp.com request_id=739e5327-98dc-4d3f-97c8-9e369ff381b7 fwd="62.23.65.226" dyno=web.1 connect=0ms service=1ms status=204 bytes=301 protocol=https
2019-09-09T14:07:44.081620+00:00 heroku[router]: at=info method=POST path="/process" host=rbt-s