Skip to content

Instantly share code, notes, and snippets.

View alessbell's full-sized avatar

Alessia Bellisario alessbell

View GitHub Profile
@alessbell
alessbell / gist:cdba93dc50b847ccb008
Last active August 29, 2015 14:10
The Things I Learned Writing Jasmine Tests

Lessons From Writing Jasmine Tests

##Introduction

First, if it’s a Django/Flask project, use jasmine-py! It will (mostly) make your life easier. Run pip install jasmine and initialize a project using jasmine-install: a dedicated spec directory will be created for you, and a YAML configuration file will be created. This is an important difference between jasmine-py and non-py-flavouroured-jasmine: outside of django/flask projects, Jasmine runs the specs from a SpecRunner.html file, where you're expected to include links to your specs in the <head> tags. In jasmine-py, jasmine.yml handles your source files and specs.

This is important to note because, if you choose to use Jamsine extensions like jasmine-jquery which allows simpler testing of jQuery elements, be sure to include it in jasmine.yml.

Problems

Montreal

Eat

  1. Depanneur le Pick Up: great pulled pork and vegetarian friendly in little italy
  2. Aux Vivres: is a vegetarian restaurant
  3. Moishes: one of the better steakhouses in montreal
  4. Shwartz's: the famous smoked meat spot
  5. St.Viateur or Fairmont bagel: little bit of a rivalry between these two bagel spots, really they taste the same and are equally good.
  6. Bistro Lustucru. Nice restaurant on Laurier that is worth it for their raw bar. I suggest you dine only with their raw bar menu, and share 4-6 options with someone else to be able to taste as much as possible.
  7. Leméac. Fancy French restaurant, but they have a more affordable menu after 10pm, and it's totally worth the wait!

Keybase proof

I hereby claim:

  • I am alessbell on github.
  • I am alessbell (https://keybase.io/alessbell) on keybase.
  • I have a public key whose fingerprint is C17E E29A 032F 3EDD BE06 0672 0DFC 06C9 78EE B5E9

To claim this, I am signing this object:

Collaborative Writing

Today you are going to write a short story but unfortunately, because of time constraints, you’ll need to enlist the help of your teammates.

Everyone in the group is going to clone this repository and one by one each of you will write the next sentence. In the end you will have a story that starts off with the sentence we give you and finishes with what you and your group writes.

This assignment is going to teach you how to collaborate on GitHub. This means cloning a repository, pulling the changes that other people have made, and pushing your changes up. You might even come across merge conflicts.

Assignment

  1. Everyone in the group clones this repository.
@alessbell
alessbell / config.yml
Last active October 25, 2018 18:11
Sample CCI job config: record test failure in env variable, persist test-results to workspace and run Danger in subsequent job
jobs:
execute_test_runner:
steps:
- attach_workspace:
at: /root/workspace
- run:
name: Running test suite
command: |
if npm run test -- --outputFile test-results.json --json ; then
echo 'export TESTS_PASS=true' >> $BASH_ENV
// cracklepop.js
let message;
const arr = [...Array(101).keys()];
arr.shift();
arr.forEach((num) => {
if (!(num % 3) && !(num % 5)) {
message = 'CracklePop';
} else if (!(num % 3)) {
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
let board = [[' ', ' ', ' '], [' ', ' ', ' '], [' ', ' ', ' ']];
let currentPlayer = 'x';
const charMap = {
A: 0,
version: 2.1
orbs:
cypress: cypress-io/cypress@1
slack: circleci/slack@3.3.0
workflows:
run_cypress:
triggers:
- schedule:
cron: "30 11 * * *"
/**
* A Canvas2D + SVG Pen Plotter example of "Cubic Disarray"
* (a recreation of an artwork by Georg Nees in 1968-71).
*
* @author Stephane Tombeur (https://github.com/stombeur)
*/
const canvasSketch = require("canvas-sketch");
const { polylinesToSVG } = require("canvas-sketch-util/penplot");
const pickRandom = require("canvas-sketch-util/random");