Skip to content

Instantly share code, notes, and snippets.

@justinlevi
justinlevi / dream.wav
Last active November 15, 2017 14:41
Wavesjs Segments and Audio Example
This file has been truncated, but you can view the full file.
@justinlevi
justinlevi / dream.wav
Last active November 14, 2017 16:10
wavesjs drag issue
This file has been truncated, but you can view the full file.
@justinlevi
justinlevi / customTrolleySegmentBehavior.js
Created October 26, 2017 18:53
wavesjs/waves-ui : Custom Segment Behavior - Shopping/Trolly metaphor
import * as ui from 'waves-ui';
class CollisionSegmentBehavior extends ui.behaviors.BaseBehavior {
segmentsData = [];
DIRECTION = {
LEFT: 'LEFT',
RIGHT: 'RIGHT'
};
@justinlevi
justinlevi / waves-ui react template
Created October 23, 2017 00:43
React Example using wavesjs/waves-ui w/ my forked repo
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
// import PropTypes from 'prop-types';
import * as wavesUI from 'waves-ui';
import uuid from "uuid";
class WavesUITimeline extends Component {
⚡ blt vm:nuke && blt vm
blt > vm:nuke:
This will destroy your VM, and delete all associated configuration. Continue? [y] : y
webny: Are you sure you want to destroy the 'webny' VM? [y/N] y
==> webny: Forcing shutdown of VM...
==> webny: Destroying VM and associated drives...
==> webny: Pruning invalid NFS exports. Administrator privileges will be required...
==> webny: [vagrant-hostsupdater] Removing hosts
Password:
@justinlevi
justinlevi / chrome-driver-install.sh
Created June 19, 2016 17:48
Shell Script for getting the google chrome driver working in Drupal-VM
#!/usr/bin/env bash
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
sudo apt-get install -f
sudo apt-get install xvfb
sudo apt-get install unzip
@justinlevi
justinlevi / install-composer-drush.sh
Last active June 1, 2016 14:35 — forked from matthewpizza/install-composer.sh
Install Composer on Webfaction
cd $HOME
ln -s `which php56` ~/bin/php
export PATH=$HOME/bin:$PATH
curl -sS https://getcomposer.org/installer | php56
echo -e "\n# Composer\nalias composer=\"php56 \$HOME/composer.phar\"" >> $HOME/.bash_profile
echo -e "\n# Load $HOME/bin\nexport PATH=$HOME/bin:$PATH" >> $HOME/.bash_rc
composer global require drush/drush
ln -s ~/.composer/vendor/drush/drush/drush ~/bin/composer
export DRUSH_PHP=$(which php56)
source $HOME/.bash_profile
@justinlevi
justinlevi / Behat.feature
Created February 25, 2016 20:10
PHPStorm File and Code Templates - Behat
Feature: #[[$Title$]]#
#[[$END$]]#
@justinlevi
justinlevi / scc
Created February 25, 2016 19:50
PHPStorm Behat LiveTemplate - Scenario Comments
# Given: Defines the inital state of the system for the scenario
# When: Describes the action taken by the person/role
# Then: Describes the obeservable system state after the action has been performed
$END$
@justinlevi
justinlevi / sc
Created February 25, 2016 19:49
PHPStorm Behat LiveTemplate - Scenario
Scenario: $Title$
Given $given$
When $when$
And $and$
Then $then$