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/env python3 | |
| a = 2667 | |
| b = 5334 | |
| c = 19 | |
| target = 200000 | |
| bestresidual = target | |
| bestz = target / c |
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
| #pragma once | |
| #include "pico/stdlib.h" | |
| #include <optional> | |
| namespace { | |
| unsigned long pulseWidthMicros = 10; | |
| unsigned long timelimitMicros = 4000000; | |
| unsigned int getPulseLen(uint pin){ | |
| while(!gpio_get(pin)){} |
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
| const int pulsePin = 4; | |
| const analog_pin_t readPin = A3; | |
| //const unsigned pulseWidthMicros = 10000; | |
| const unsigned pulseWidthMicros = 3000; | |
| void setup() { | |
| pinMode(pulsePin, OUTPUT); | |
| digitalWrite(pulsePin, LOW); | |
| pinMode(readPin, INPUT); | |
| } |
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
| fps_max 999 | |
| cl_crosshairgap -1.596189 | |
| cl_crosshairstyle 4 | |
| cl_crosshair_t 1 | |
| cl_crosshairthickness 0.5 | |
| bind o "toggle cl_crosshairsize 2.923049 9999" | |
| bind i r_cleardecals | |
| bind p "toggle r_drawclipbrushes 0 1 2" | |
| host_writeconfig |
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
| #!/bin/bash | |
| ip=`curl http://ipv4.icanhazip.com | tr -d '[:space:]'` | |
| zoneID="ZONE ID GOES HERE" | |
| domainID="DOMAIN ID GOES HERE" | |
| domainName="YOUR (SUB)DOMAIN TO UPDATE HERE" | |
| emailAddress="[email protected]" | |
| rootDomain="YOUR DOMAIN (NO SUBDOMAIN)" | |
| ttl="120" | |
| APIKey="APIKEY GOES HERE" | |
| command="curl -X PUT \"https://api.cloudflare.com/client/v4/zones/$zoneID/dns_records/$domainID\" -H \"X-Auth-Email: $emailAddress\" -H \"X-Auth-Key: $APIKey\" -H \"Content-Type: application/json\" --data '{\"type\":\"A\",\"name\":\"$domainName\",\"content\":\"$ip\",\"ttl\":$ttl,\"proxied\":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
| #include <iostream> | |
| #include <string> | |
| #include <cmath> | |
| using namespace std; | |
| const double light_spd = 2.99792458e8; | |
| double toSeconds(string temp) { | |
| double temps = stoi(temp.substr(0,temp.length()-1)); |
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 <iostream> | |
| #include <vector> | |
| #include <string> | |
| #include <stdlib.h> | |
| #include <sstream> | |
| #include <fstream> | |
| #include <iomanip> | |
| using namespace std; | |
| class operacio { | |
| public: |
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 <iostream> | |
| #include <string> | |
| #include <cctype> | |
| #include <Windows.h> | |
| using namespace std; | |
| void toClipboard(const std::string &s) { | |
| OpenClipboard(0); | |
| EmptyClipboard(); | |
| HGLOBAL hg = GlobalAlloc(GMEM_MOVEABLE, s.size()); |
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
| #!/bin/bash | |
| function preguntar { | |
| while IFS='\n' read -r line || [[ -n "$line" ]]; do | |
| extension="${line##*.}" | |
| filename=$(basename "$line") | |
| filename="${filename%.*}" | |
| IFS=$4 | |
| number="$(echo $filename | sed 's/ \+/ /g' | cut -d" " -f$1)" | |
| newname=$number$5$filename"."$extension | |
| if [ "$2" = true ] ; then |
NewerOlder