This file contains 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
from multiprocessing import Pool, cpu_count | |
from itertools import islice, count | |
def is_special(n, d): | |
tofind = str(d) * d | |
return tofind in str(d * n ** d) | |
def superd(d, N=10000): |
This file contains 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
from naoqi import ALBroker | |
from naoqi import ALProxy | |
from pprint import pprint | |
# start a local broker that connects to the NAO | |
robot_ip = "love" | |
myBroker = ALBroker("myBroker", "0.0.0.0", 0, robot_ip, 9559) | |
# get a handle to the module |
This file contains 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
from naoqi import ALBroker | |
from naoqi import ALProxy | |
from pprint import pprint | |
# start a local broker that connects to the NAO | |
robot_ip = "your-ip-here" | |
myBroker = ALBroker("myBroker", "0.0.0.0", 0, robot_ip, 9559) | |
# get a handle to the module |
This file contains 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
from naoqi import ALBroker | |
from naoqi import ALProxy | |
# start a local broker that connects to the NAO | |
robot_ip = "your-ip-here" | |
myBroker = ALBroker("myBroker", "0.0.0.0", 0, robot_ip, 9559) | |
# get a handle to the module | |
posture_proxy = ALProxy("ALRobotPosture") | |
tts_proxy = ALProxy("ALTextToSpeech") |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Redirecting to the Survey ...</title> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> |
This file contains 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
AWS_ACCESS_KEY_ID = "YOUR KEY ID HERE" | |
AWS_SECRET_ACCESS_KEY = "YOUR SECRET KEY HERE" | |
USE_SANDBOX = False |
This file contains 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
# A Dockerfile that sets up a full Gym install | |
FROM ubuntu:14.04 | |
RUN apt-get update \ | |
&& apt-get install -y libav-tools \ | |
python-numpy \ | |
python-scipy \ | |
python-pyglet \ | |
python-setuptools \ | |
libpq-dev \ |
This file contains 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
[ req ] | |
default_bits = 2048 | |
distinguished_name = req_distinguished_name | |
x509_extensions = v3_ca # The extentions to add to the self signed cert | |
string_mask = utf8only | |
[ req_distinguished_name ] | |
countryName = Country Name (2 letter code) | |
countryName_default = AU | |
countryName_min = 2 |
This file contains 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 | |
# Python3 | |
import logging | |
from argparse import ArgumentParser | |
from os import remove | |
from os.path import exists | |
from re import sub | |
from time import time |
This file contains 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 | |
# Python3 | |
# | |
# Run from command line | |
# | |
import logging | |
from argparse import ArgumentParser | |
from copy import deepcopy, copy | |
from datetime import timedelta |