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
G = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] | |
H = [[-1, -1, 1, -1, -1], [-1, 2, 3, 4, -1], [5, 6, 7, 8, 9], [-1, 'A', 'B', 'C', -1], [-1, -1, 'D', -1, -1]] | |
def bathroom_code(S): | |
p = [1, 1] | |
code = [] | |
for line in s: | |
for x in line: | |
d = 1 if x in 'LR' else 0 | |
if x in 'LU': |
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
# http://adventofcode.com/2016/day/1 | |
import re | |
import numpy as np | |
def taxi_dist(S): | |
p = [0, 0] | |
i = 0 | |
d = 1 |
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
import argparse | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-s', help='input string, dir arrows if none') | |
parser.add_argument('-n', type=int, default=10) | |
args = parser.parse_args() |
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
package main | |
import ( | |
"fmt" | |
"math" | |
"os" | |
"strconv" | |
) | |
func main() { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import argparse | |
from pyexcel_ods3 import get_data | |
import random | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser('Generateur pour Ariel') | |
parser.add_argument( | |
'-n', default=5, type=int, help='nombre de paragraphes' |
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
import argparse | |
from pyexcel_ods3 import get_data | |
import random | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser('Generateur pour Ariel') | |
parser.add_argument( | |
'-n', default=5, type=int, help='nombre de paragraphes' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.