Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Wentz joshwentz

View GitHub Profile
@joshwentz
joshwentz / infographic.html
Created Dec 9, 2019
EEB Hub Accomplishment Infographic
View infographic.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>EEB Hub Simulation Platform Accomplishments</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="http://tools.eebhub.org/img/favicon.ico" type="image/x-icon">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
@joshwentz
joshwentz / fork-sync.js
Last active Oct 29, 2020
Synchronous Fork in Node.js (with async.series): wait for child_process.fork to finish, then execute part2
View fork-sync.js
var fs = require('fs');
var fork = require('child_process').fork;
var async = require('async');
async.series([
function(callback){
var command = fork("./command.js", [], {silent: true });
command.stdout.pipe(process.stdout);
command.stderr.pipe(process.stderr);
@joshwentz
joshwentz / places.html
Created Apr 16, 2014
Google Maps Autocomplete
View places.html
<!DOCTYPE html>
<html>
<head>
<title>Place Autocomplete</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
.map, #map-canvas {
height: 200px;
width:100%;
@joshwentz
joshwentz / Popup Modal.html
Last active Jan 3, 2016
Popup Modal for Bootstrap/Angular. More at http://joshwentz.blogspot.com/2014/01/pop-up-box-modal-with-angular.html. Demo at virtualpulse.us/EWEB/modal.html
View Popup Modal.html
<html ng-app="modal">
<head>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.js"></script>
<script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.7.0.js"></script>
<script>
angular.module('modal', ['ui.bootstrap']);
var ModalDemoCtrl = function($scope, $modal, $log) {
$scope.open = function() {
View energyplus8.sh
#Open Terminal & move to where you want to install
#Install git: sudo apt-get install git-core
#git clone https://gist.github.com/6214690.git
#cd 7227035/
#sh energyplus8.sh
#Download EnergyPlus
sudo wget http://developer.nrel.gov/downloads/buildings/energyplus/builds/EPlusV800008-lin-64.tar.gz
sudo tar xzf EPlusV800008-lin-64.tar.gz
find EnergyPlus-8-0-0 -type f -perm -o+rx;
View Expand Collapse Button.html
<html>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.4.0/ui-bootstrap-tpls.min.js"></script>
<script>
var myApp = angular.module('myApp', ['ui.bootstrap']);
function CollapseDemoCtrl($scope) {
$scope.isCollapsed = false;
@joshwentz
joshwentz / energyplus.sh
Last active Dec 20, 2015
install energyplus onto an ubuntu 12.04 linux server
View energyplus.sh
#Open Terminal & move to where you want to install
#Install git: sudo apt-get install git-core
#git clone https://gist.github.com/6214690.git
#cd 6214690/
#sh energyplus.sh
#Download EnergyPlus
sudo wget http://developer.nrel.gov/downloads/buildings/energyplus/builds/EnergyPlus-7.2.0.006-Linux-64.tar.gz
sudo tar xzf EnergyPlus-7.2.0.006-Linux-64.tar.gz
find EnergyPlus-7-2-0-006/bin/ -type f -perm -o+rx;