Skip to content

Instantly share code, notes, and snippets.

View benbrandt's full-sized avatar

Ben Brandt benbrandt

View GitHub Profile
import "angular";
import "angular-cookies";
import "angular-animate";
import "angular-aria";
import "angular-sanitize";
import "@uirouter/angularjs";
import "angular-material";
const app = angular.module("app", [
"ngCookies",
{
"jest": {
"collectCoverageFrom": [
"**/*.{js,jsx}"
],
"coveragePathIgnorePatterns": [
"<rootDir>[/\\\\](coverage|dist|docs|flow-typed|node_modules|config)[/\\\\]"
],
"setupFiles": [
"<rootDir>/config/jest/polyfills.js"
const jQuery = require(“jquery”);
Object.defineProperty(window, “jQuery”, { value: jQuery });
Object.defineProperty(window, “$”, { value: jQuery });
const angular = require(“angular”);
Object.defineProperty(window, “angular”, { value: angular });
require(“angular-mocks”);
require(“./”);
require("phantomjs-polyfill");
require("karma-es6-shim");
process.env.TZ = "America/Los_Angeles";
var path = require("path");
var webpackConfig = require("./webpack.config.karma");
var entry = path.resolve(webpackConfig.context, webpackConfig.entry.app);
var testManifest = path.resolve(webpackConfig.context, "./test-manifest.js");
@benbrandt
benbrandt / angular-animate.js
Created August 23, 2017 23:51
Angular Animate through babel-minify
/**
* @license AngularJS v1.6.5
* (c) 2010-2017 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular) {'use strict';
var ELEMENT_NODE = 1;
var COMMENT_NODE = 8;

Keybase proof

I hereby claim:

  • I am benbrandt on github.
  • I am benbrandt (https://keybase.io/benbrandt) on keybase.
  • I have a public key whose fingerprint is C7C0 42A9 C824 089B DC88 7895 30D5 827E 0DE9 B729

To claim this, I am signing this object:

@benbrandt
benbrandt / .vimrc
Last active March 2, 2016 01:26
Current .vimrc
" A minimal vimrc for new vim users to start with.
"
" Referenced here: http://www.benorenstein.com/blog/your-first-vimrc-should-be-nearly-empty/
" Original Author: Bram Moolenaar <Bram@vim.org>
" Made more minimal by: Ben Orenstein
" Last change: 2012 Jan 20
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
@benbrandt
benbrandt / ChildPagetoParent_WordPress.php
Last active August 29, 2015 14:18
Pull Child Page Content into Parent Page - WordPress
<div class="entry-content">
<?php the_content(); ?>
<?php
$childArgs = array(
'sort_order' => 'ASC',
'sort_column' => 'menu_order',
'child_of' => get_the_ID()
);
$childList = get_pages($childArgs);
@benbrandt
benbrandt / gaming_social_network.py
Created March 11, 2015 06:30
Simple Gaming Social Network - Intro to Computer Science Udacity Final Project
# --------------------------- #
# Intro to CS Final Project #
# Gaming Social Network #
# --------------------------- #
#
# For students who have subscribed to the course,
# please read the submission instructions in the Instructor Notes below.
# -----------------------------------------------------------------------------
# Background
@benbrandt
benbrandt / QTConvertNuke.ms
Created March 5, 2015 06:25
MaxScript to take Image Sequence and Convert to Quicktime through Nuke
PassName = substring maxfilename 1 (maxfilename.count - 4)
RenDir = MyDir + "/" + PassName
RenFile = RenDir + "/" + PassName + ".jpg"
RenSeq = RenDir + "/" + PassName + "####.jpg"
NukePath = "C:/Program Files/Nuke9.0v4/Nuke9.0.exe"
QTScript = "-x " + "D:/myfiles/QT_conv_v001.nk" + " " + PassName + " " + RenSeq
shelllaunch NukePath QTScript