Skip to content

Instantly share code, notes, and snippets.

@sqamara
sqamara / client.py
Last active April 26, 2018 00:57
MPU 6050 with Raspberry Pi
#!/usr/bin/python
import pygame
import urllib
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
from math import radians
from pygame.locals import *
import sys
#!/bin/bash
for (( i=9; i<=29; i++))
do
size=$((2**$i))
dd if=/dev/zero of=dummyData/file_$size.txt bs=$size count=1
done
# coding: utf-8
# In[1]:
import math
# gets the distance between two vec3
def get_distance(pos1, pos2):
return (math.sqrt((pos1[0]-pos2[0])**2 + (pos1[1]-pos2[1])**2 + (pos1[2]-pos2[2])**2 ))
@sqamara
sqamara / br.pdb
Last active February 8, 2016 20:00
HETATM 1 Br Br 1 0.000 0.000 5.000 1.00 0.00
/a.out