This file contains hidden or 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
#!/bin/bash | |
# clone ci repo | |
# install essential deps | |
cd ~ | |
rm | |
apt-get update | |
apt-get install -y git curl make ruby1.9.1-dev | |
curl -L https://www.opscode.com/chef/install.sh | bash | |
gem install --no-ri --no-rdoc librarian-chef |
This file contains hidden or 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
def check_sudoku(grid, p_info = False, gridsize = 9): | |
'''sudoku checker - enter True as second func. argument | |
to print more info | |
about check failures''' | |
def check_sudoku_complete_results(grid, gridsize = 9): | |
if type(grid) != list: return None, 'function accepts list, got %s instead' % (str(type(grid))) | |
if gridsize % 3 != 0: return None, 'incorrect size' | |
if len(grid) != gridsize: |
This file contains hidden or 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
def check_sudoku(grid, p_info = False, gridsize = 9): | |
'''sudoku checker - enter True as second func. argument | |
to print more info | |
about check failures''' | |
def check_sudoku_complete_results(grid, gridsize = 9): | |
if type(grid) != list: return None, 'function accepts list, got %s instead' % (str(type(grid))) | |
if gridsize % 3 != 0: return None, 'incorrect size' |
NewerOlder