This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
- Lilly Ryan @attacus_au
This workshop is distributed under a CC BY-SA 4.0 license.
This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
This workshop is distributed under a CC BY-SA 4.0 license.
# Description: | |
# hubot scripts to greet members friendly | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: |
import random | |
print('''Welcome to the Slot Machine Simulator | |
You'll start with $50. You'll be asked if you want to play. | |
Answer with yes/no. you can also use y/n | |
No case sensitivity in your answer. | |
For example you can answer with YEs, yEs, Y, nO, N. | |
To win you must get one of the following combinations: | |
BAR\tBAR\tBAR\t\tpays\t$250 | |
BELL\tBELL\tBELL/BAR\tpays\t$20 | |
PLUM\tPLUM\tPLUM/BAR\tpays\t$14 |
class TileServer(tornado.web.Application): | |
def __init__(self, handlers=None, default_host="", transforms=None, | |
wsgi=False, **settings): | |
""" | |
In addition to invoking the superclass constructor, initializes the per-server redis client and per-server | |
redis pubsub handler. | |
""" | |
tornado.web.Application.__init__(self, handlers, default_host, transforms, wsgi, **settings) | |
self._rc = redis.StrictRedis(**(settings.get('redis_config', {}))) # redis client: one per application | |
self._rcps = self._rc.pubsub() # redis pubsub obj: one per application |
The list would not be updated for now. Don't write comments.
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.
Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:
githubUsers
#!/usr/bin/env python | |
# coding: utf-8 | |
# scanf.py - written by odiak | |
# | |
# example. | |
# i, f = scanf('%d%d') | |
# s = scanf('%s') | |
import sys |
# Optimized for writes, sort on read | |
# LVC | |
redis.hset("bonds|1", "bid_price", 96.01) | |
redis.hset("bonds|1", "ask_price", 97.53) | |
redis.hset("bonds|2", "bid_price", 95.50) | |
redis.hset("bonds|2", "ask_price", 98.25) | |
redis.sadd("bond_ids", 1) | |
redis.sadd("bond_ids", 2) |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |