- on the same IP
- on the same Port 80
Why?
coming...
Who?
dirs = "NESW" # Notations for directions | |
shifts=[(0,1),(1,0),(0,-1),(-1,0)] # delta vector for each direction | |
# One letter function names corresponding to each robot instruction | |
r = lambda x, y, a: (x, y, (a + 1) % 4) | |
l = lambda x, y, a: (x, y, (a - 1 + 4) % 4) | |
m = lambda x, y, a: (x + shifts[a][0], y + shifts[a][1], a) | |
raw_input() # Ignore the grid size | |
while 1: | |
# parse initial position triplet | |
x, y, dir = raw_input().split() |
import Data.List | |
dirs = "NESW" | |
shifts 0 = (0, 1) | |
shifts 1 = (1, 0) | |
shifts 2 = (0, -1) | |
shifts 3 = (-1, 0) | |
instrn (x, y, a) 'R' = (x, y, mod (a + 1) 4) |
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch/status of the current git repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
alert("hi") |
# Emacs and Python | |
## Why? | |
## Intro | |
- Arun Ravindran <arunrocks.com> @arocks | |
- Emacs user for 15 years | |
- Python user for 13 years | |
- Author of "Django Design Patterns and Best Practices" |
# -*- coding: utf-8 -*- | |
""" raffle - Randomly pick a twitter username n times and show the last picked as winner""" | |
import random, time | |
TIMES = 20 | |
entries = """ | |
https://twitter.com/username1 | |
https://twitter.com/username2 | |
https://twitter.com/username3 |
# -*- coding: utf-8 -*- | |
"""A simple text-based game of hangman | |
A re-implementation of Hangman 3-liner in more idiomatic Python 3 | |
Original: http://danverbraganza.com/writings/hangman-in-3-lines-of-python | |
Requirements: | |
A dictionary file at /usr/share/dict/words | |
Usage: |
"""A simple hello application in Python 3.6""" | |
പേര്: str = input("What is your name? ") | |
print(f"Hey {പേര്}!") |
heroku config:set SECRET_KEY=(python -c 'import random; import string; print("".join([random.SystemRandom().choice("{}{}{}".format(string.ascii_letters, string.digits, string.punctuation)) for i in range(50)]))') |