Skip to content

Instantly share code, notes, and snippets.

@justinlevi
justinlevi / Behat.feature
Created February 25, 2016 20:10
PHPStorm File and Code Templates - Behat
Feature: #[[$Title$]]#
#[[$END$]]#
@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 / 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 / Drupal 8 Travis.yml - Simpletest, PHPUnit, Behat Tests
Created February 15, 2017 15:31
Travis.yml file for testing a custom Drupal 8 Module
# @file
# .travis.yml - Drupal 8 Travis CI Integration
language: php
sudo: false
php:
- 5.6
⚡ 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 / 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 {
@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 / highlight.csv
Last active November 7, 2022 22:23
New York State D3 Counties Highlight & Hover
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
county
St_Lawrence
Chemung
Ulster
Albany
@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 / 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.