Skip to content

Commit

Permalink
more programs
Browse files Browse the repository at this point in the history
  • Loading branch information
hearues-zueke-github committed Jan 29, 2018
1 parent e649f3a commit 09cea9a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
12 changes: 12 additions & 0 deletions random_pictures/all_rgb_pictures.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /usr/bin/python2.7

import sys

import numpy as np

from copy import deepcopy
from dotmap import DotMap

from PIL import Image, ImageDraw, ImageFont


Binary file added random_pictures/joystix_monospace.ttf
Binary file not shown.
25 changes: 25 additions & 0 deletions test_programs/dotmap_given_to_functions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/python2.7

import sys

import numpy as np

from dotmap import DotMap

def change_the_values(dm):
dm.a = 6
dm.b[3] = 10

dm = DotMap()
dm.a = 5
dm.b = np.random.randint(0, 2, (6, ))

print("before the change")
print("dm.a: {}".format(dm.a))
print("dm.b: {}".format(dm.b))

change_the_values(dm)

print("after the change")
print("dm.a: {}".format(dm.a))
print("dm.b: {}".format(dm.b))

0 comments on commit 09cea9a

Please sign in to comment.