Skip to content

Instantly share code, notes, and snippets.

View maniyar1's full-sized avatar

Mani maniyar1

View GitHub Profile
17a18
> #include <omp.h>
62c63,64
< // TODO: to be tested
---
> auto prevMaxThreads = omp_get_num_threads();
> omp_set_num_threads(1);
84c86
< // TODO: to be tested
---

PVS Studio's Sucks at Worst and is Completely Outdated at Best

Link: https://pvs-studio.com/en/blog/posts/0324/

But if it proves to be yet another just safe language, then I just don't get the whole thing. There is plenty of very different safe languages to choose from to any taste... Ah yes, plenty...like...Ada???

Back in the past, this problem urged programmers to develop a variety of safe languages such as Java, C#, Python, and others. Garbage collection = safe now

I sincerely hope that programmers will find a way to speed it up in time, but until then, it's going to be of hardly more interest than Scala or Go from the viewpoint of the safety/speed compromise.

# Contributor: Mani Kamali <mani@maniks.net>
# Maintainer: Mani Kamali <mani@maniks.net>
# Based on Arch AUR PKGBUILD: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=protonmail-bridge-nogui
pkgname=protonmail-bridge-nogui
_pkgver=1.2.7
_rev="live.1"
_srcver="$_pkgver"-"$_rev"
_srcname=proton-bridge-"$_srcver"

Drivetrain Testing :o

import math
import csv
import time
#Fuck pi
tau = math.pi * 2
#Time-step/dt
dt = 0.01
# Stall torque
kStallTorque = 2.402
@maniyar1
maniyar1 / Output
Created April 12, 2019 22:38
Simple multifile sketch
https://imgur.com/a/ILkpb67

Technician After Match Checklist

  • General
    • Check all shaft collars and circlips
    • Check chain tension
  • Arm
    • Move the arm checking encoders work
      • Encoder plugs into 5-6 (DIO), count starting at zero counting from the top
    • Move the arm checking that current draw is controlled and motors are not fighting each other (this is commonly seen in two motors drawing ~7 amps while the third draws far less, more noticeable when controlling manually.)
  • If this is happening switch leads or invert in code.
@maniyar1
maniyar1 / install.md
Created November 9, 2018 03:23
Securly DNS Reroute

Securly Workaround Initial Install: Open the Terminal (Probably found in Applications > Other > Terminal) Copy/Paste the following command:

touch ./dns.program && echo "sudo -s bash -c 'while [ 0 ]; do networksetup -setdnsservers Wi-Fi 1.1.1.1; sleep 5;done'" >> dns.program && chmod +x dns.program && ./dns.program

Hit enter Put in your password Hit enter again