Skip to content

Instantly share code, notes, and snippets.

@fayeyen
fayeyen / bitris.py
Created October 9, 2018 21:22 — forked from darrylsloan/bitris.py
A "Tetris"-inspired game for the BBC micro:bit (uses an 8x4 NeoPixel array, e.g. Proto-Pic's micro:pixel). Guide the falling blocks using the A & B buttons. When any 3 blocks are arranged in the shape of a letter L, they vanish. White blocks are special; they explode on impact and randomly change the colour of the block underneath.
# BITRIS - Copyright 2017 Darryl Sloan
from microbit import *
import neopixel
from random import randint
# Enable NeoPixels to use x & y values
def np_plot(x, y, r, g, b):
np[31-y-abs(x-3)*8] = (r, g, b)
@fayeyen
fayeyen / BitbucketPipelines2Firebase.md
Created February 2, 2018 01:22 — forked from DawidvanGraan/BitbucketPipelines2Firebase.md
Deploy your Angular 2 project with Bitbucket Pipelines to Firebase Hosting

Deploy your Angular 2 project with Bitbucket Pipelines to Firebase Hosting

Firebase

Please see the Firebase setup instruction to setup a project on Firebase.

Firebase CI Token

To run the firebase deploy command you need to obtain a login token from Firebase. To do so, run the firebase login:ci on your command line which will generate a token. Copy the generated token.

Environment Variables

Goto your project in Bitbucket, open the Settings and select Environment variables.

mage: node:6.9.0
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- node --version
- npm --version
- npm install -g gulp ts-node typescript typings
- npm install --unsafe-perm