Skip to content

Instantly share code, notes, and snippets.

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':
# http://adventofcode.com/2016/day/1
import re
import numpy as np
def taxi_dist(S):
p = [0, 0]
i = 0
d = 1
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()
package main
import (
"fmt"
"math"
"os"
"strconv"
)
func main() {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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'
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'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.