Skip to content

Instantly share code, notes, and snippets.

View billybonks's full-sized avatar
💭
qq

Sebastien Stettler billybonks

💭
qq
View GitHub Profile
{% for variant in variants %}
{{variant.product_name}} {{ variant.name }} | {{ variant.sku }} | {{ variant.price }} <br />
{% endfor %}
@billybonks
billybonks / move.sh
Created March 29, 2020 11:45
mass move stuff
for f in **/*.ts; do
mv -- "$f" "${f%.ts}.js"
done
for f in **/*.js; do
mv -- "$f" "${f%.js}.ts"
done

Space Jam

Build an application that consumes/accepts a CSV (Comma Separated Values) file of N-Rows. Each Row is comprised of:

  • object_id: is a unique identifier for a specific object.
  • object_type: denotes the object type.
  • timestamp: needs no explanation
  • object_changes: serialized json comprised of properties that changed at timestamp, and their accompanying values.

Here's an example CSV:

object_id,object_type,timestamp,object_changes

Goal

We want to build a MVP of a battleships grid. If you have not played battleships here is an example http://en.battleship-game.org/

Features

The application should have 3 routes.

  • A home page where i can choose to either enter: placement test route, or test game route.

Placement test route

  • When i enter the placement test route it should automatically place the Ships.

Keybase proof

I hereby claim:

  • I am billybonks on github.
  • I am billybonks (https://keybase.io/billybonks) on keybase.
  • I have a public key ASBQyTP5ChMX-ua3K_6f3raDpKZGpnnFiTzH6YtTJ3iFEgo

To claim this, I am signing this object:

[ { id: '45', title: '2359: The Haunting Hour' },
{ id: '18', title: '23:59 The Haunting Hour' },
{ id: '30', title: 'Along With The Gods 2' },
{ id: '2', title: 'Along With The Gods: The Last 49 Days' },
{ id: '5', title: 'Alpha' },
{ id: '37', title: 'Alpha' },
{ id: '41', title: 'Ant-Man And The Wasp' },
{ id: '1', title: 'Big Brother' },
{ id: '29', title: 'Big Brother' },
{ id: '59', title: 'Burning' },
@billybonks
billybonks / js
Created August 27, 2018 13:20
possible let
import Helper from 'ember-helper';
export default Helper.extend({
compute(params, hash, options) {
let isBlock = !!options.template.yield;
// when used as a block
if (isBlock) {
options.template.yield(params);
}
semantic-dom-selectors -----> ember-semantic-test-helpers
          |                           |
          |                           |
          |                           |   
      qunit-semantic-assertions ------
          |
          |
          |
 qunit-dom
class BaseClass {
static baseMethod () { console.log("Hello from baseMethod"); }
}
class MyClass extends BaseClass {
constructor(props) {
super(props);
}
static Woo () {