Skip to content

Instantly share code, notes, and snippets.

Roland Arnoldt rollasoul

  • NY
Block or report user

Report or block rollasoul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View db.json
{
"store": [
{
"id": 0,
"ios": {
"project_name": "iOS",
"total_time": 0,
"color": "blue"
}
},
View image_to_binary.py
import base64
with open("test.jpg", "rb") as imageFile:
str = base64.b64encode(imageFile.read())
print(str)
decoded = base64.decodebytes(str)
print(decoded)
print(len(decoded)*8)
print("".join(["{:08b}".format(x) for x in decoded]))
binaryNude = "".join(["{:08b}".format(x) for x in decoded])
View tr_geo.py
###################
#### tr_geo.py #############################################
#### takes user input (url), finds all server-locations #############
#### on the way of the traceroute packages (traceroute + geo-ip) ####
#####################################################################
# author: Roland Arnoldt
# date: Sept 24, 2018
# file-format: Python3
@rollasoul
rollasoul / asteroids_arcade.html
Last active Aug 15, 2018
asteroids_arcade adaption from paperjs-example(s)
View asteroids_arcade.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<title>Paperoids</title>
<script type="text/javascript" src="../../dist/paper-full.js"></script>
<script type="text/paperscript" canvas="canvas">
View talking_stone.ino
/*
**** random_devotion ****
listens to a geiger counter and compares them with human knocks, knocks back if both match
based on http://www.arduino.cc/en/Tutorial/ButtonStateChange and https://learn.adafruit.com/secret-knock-activated-drawer-lock/code
TO DO: needs to be revised (longer patterns for knocking) and debugged (sensitivity of piezo)
*/
// this constant won't change:
const int buttonPin = 12; // the pin that the geiger-counter is attached to
View mine.py
# proof of work example for cryptocurrencies using real block data
# based on https://gist.github.com/turunut/7857bd34bac37a04a91a91ee9ea33520
# and https://gist.github.com/shirriff/cd5c66da6ba21a96bb26
import hashlib, struct, codecs
import binascii
import datetime
import time
You can’t perform that action at this time.