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
def contiguous_sublists(vals): | |
sub_lists = [] | |
for ind, a in enumerate(vals): | |
sub_lists.append([a]) | |
for b in range(ind+1, len(vals)): | |
sub_lists.append(sub_lists[-1] + [vals[b]]) | |
return sub_lists |
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
import os | |
import subprocess | |
from os.path import expanduser, join, exists | |
# We expect rbenv and rvm to be installed in their default locations. Can | |
# be updated to find them, if necessary. | |
rbenv_path = expanduser('~/.rbenv') | |
rvm_path = expanduser('~/.rvm') |
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
#include <LiquidCrystal.h> | |
#define JOYSTICK_X_ANALOG_PIN A0 | |
#define JOYSTICK_Y_ANALOG_PIN A1 | |
const int LCD_SCREEN_CHAR_WIDTH = 16; | |
const int LCD_SCREEN_ROW_HEIGHT = 2; | |
const int BUTTON_PIN = 7; |
OlderNewer