Skip to content

Commit 453e5bd

Browse files
author
brianhouse
committed
updated license
1 parent 41c8a7f commit 453e5bd

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

LICENSE.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The MIT License (MIT)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ However, while I found many implementations of the algorithm in various language
1111

1212
Copyright (c) 2011 Brian House
1313

14-
This program is free software licensed under the GNU General Public License, and you are welcome to redistribute it under certain conditions. It comes without any warranty whatsoever. See the LICENSE file for details, or see <http://www.gnu.org/licenses/> if it is missing.
14+
This code is released under the MIT License and is completely free to use for any purpose. See the LICENSE file for details.

__main__.py __init__.py

-11
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,3 @@ def build(level):
5555
i = pattern.index(1)
5656
pattern = pattern[i:] + pattern[0:i]
5757
return pattern
58-
59-
60-
if __name__ == "__main__":
61-
import sys
62-
try:
63-
steps = int(sys.argv[1])
64-
pulses = int(sys.argv[2])
65-
except Exception:
66-
print("usage: python bjorklund.py <STEPS> <PULSES>")
67-
else:
68-
print(bjorklund(steps, pulses))

example.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import sys
2+
from bjorklund import bjorklund
3+
4+
try:
5+
steps = int(sys.argv[1])
6+
pulses = int(sys.argv[2])
7+
except Exception:
8+
print("usage: python bjorklund.py <STEPS> <PULSES>")
9+
else:
10+
print(bjorklund(steps, pulses))

0 commit comments

Comments
 (0)