Skip to content

Instantly share code, notes, and snippets.

@bjvoth
bjvoth / gist:8bb3fed3199320b7caf86f4ff95d6b7c
Created May 10, 2016 20:38
Output of the command "bash scripts/run_presubmit_checks.sh "
(oppia)bj@linuxbox:~/opensource/oppia$ bash scripts/run_presubmit_checks.sh
Linting files since the last commit
Starting Javascript and Python Linting
----------------------------------------
There are no Python files to lint.
----------------------------------------
SUCCESS 1 JavaScript files linted (8.0 secs)
@bjvoth
bjvoth / gist:811f3c6a47c9c670b3f9d72e3f0204e3
Created May 11, 2016 14:54
Results of running the command bash scripts/run_tests.sh on a freshly installed instance of Oppia.
(oppia)bj@linuxbox:~/opensource/oppia$ bash scripts/run_tests.sh
Checking if node.js is installed in /home/bj/opensource/oppia_tools
Generating list of installed node modules...
Generation completed.
Checking whether Google App Engine is installed in /home/bj/opensource/oppia_tools/google_appengine_1.9.19/google_appengine
Running frontend unit tests
Environment setup completed.
Environment setup completed.
Installing third-party JS libraries and zip files.
Checking whether gulp is installed
@bjvoth
bjvoth / gist:16818291b5c3c0bcc0c5ac336ec4c396
Created May 12, 2016 00:25
Output of running command bash scripts/run_frontend_tests.sh
(oppia)bj@linuxbox:~/opensource/oppia$ bash scripts/run_frontend_tests.sh
Checking if node.js is installed in /home/bj/opensource/oppia_tools
Generating list of installed node modules...
Generation completed.
Checking whether Google App Engine is installed in /home/bj/opensource/oppia_tools/google_appengine_1.9.19/google_appengine
Environment setup completed.
Installing third-party JS libraries and zip files.
Checking whether gulp is installed
Checking whether through2 is installed
Checking whether yargs is installed
@bjvoth
bjvoth / gist:3985af11408fd1db0ce6861b269403d3
Created May 12, 2016 00:31
output of running bash scripts/run_e2e_tests.sh
(oppia)bj@linuxbox:~/opensource/oppia$ bash scripts/run_e2e_tests.sh
Checking if node.js is installed in /home/bj/opensource/oppia_tools
Generating list of installed node modules...
Generation completed.
Checking whether Google App Engine is installed in /home/bj/opensource/oppia_tools/google_appengine_1.9.19/google_appengine
Environment setup completed.
Installing third-party JS libraries and zip files.
Checking whether gulp is installed
Checking whether through2 is installed
Checking whether yargs is installed
@bjvoth
bjvoth / gist:4c8c8e7c1d4b70d8c2cae401347431b7
Created May 13, 2016 22:08
Ubuntu 16.04 e2e test results.
Running end-to-end tests
Environment setup completed.
Environment setup completed.
Installing third-party JS libraries and zip files.
Checking whether gulp is installed
Checking whether through2 is installed
Checking whether yargs is installed
Checking whether gulp-concat is installed
Checking whether gulp-clean-css is installed
Checking whether gulp-util is installed
PROBLEM 1:
Write a method that takes a maximum bound and returns all primes starting with 0 up-to and including the maximum bound.
For example:
Should return an array that looks like this:
[2,3,5,7,11]
def prime(n)
var _ = {
// Implements:
// https://lodash.com/docs#join
join: (array, separator = ',') => {
return 'FAIL :(';
}
}
@bjvoth
bjvoth / app.js
Created October 7, 2016 22:31
sideNavLayoutView requires refresh to display on Event page after first visit to the page
var app = new Backbone.Marionette.Application();
/* add the main region to the application */
app.addRegions({
appRegion: '#AppBase'
});
/* define the module we will be using to create this app */
app.module('RouteTest',function(module, App, Backbone, Marionette, $, _){
export PATH="/usr/local/bin:$PATH"
# Path to your oh-my-zsh installation.
export ZSH=/Users/bjvoth/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
function process(tab) {
// dont need this try, as you aren't trying anything that will fail
// try {
console.log("process: ", tab.url)
if (tab.url.match(/^https?:\/\/([^/]+\.)?facebook.com\//)) {
console.log('url matches facebook')