Skip to content

Instantly share code, notes, and snippets.

Stephan Miller eristoddle

Block or report user

Report or block eristoddle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
eristoddle / ImportController.php
Created Jan 10, 2020
Laravel CSV Import Controller
View ImportController.php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\DB;
eristoddle / bchpm.go
Created Nov 11, 2018
Encrpted Messages on the BCH blockchain using private keys and public addresses
View bchpm.go
package main
import (
eristoddle /
Created Sep 1, 2017 — forked from rzrbld/
wso2 studio developer artifact.xml generator
# using: my.project.folder
#set src dir
#cd to src dir
#start gen artifact.xml
echo '<?xml version="1.0" encoding="UTF-8"?><artifacts>';
eristoddle /
Created Jan 26, 2017 — forked from dulichan/
Script to configure WSO2 EMM
PUSH_CERT="`echo $IOS_CERTS`pushcert.pfx"
MDM_CERT="`echo $IOS_CERTS`PlainCert.pfx"
eristoddle /
Created Dec 13, 2016 — forked from lavaxun/
Rancher on docker-for-mac with xhyve

Install Docker for Mac (

Install docker-machine-driver-xhyve (

brew install docker-machine-driver-xhyve
sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

Deploy the latest release

eristoddle / ngContentEditableDirective.js
Created Sep 25, 2016
Angular 1 contenteditable Directive
View ngContentEditableDirective.js
app.directive("contenteditable", ['$rootScope', function ($rootScope) {
return {
restrict: "A",
link: function (scope, element, attrs) {
var content = '';
element.bind("blur keyup change focus", function (event) {
content = element.html();
$rootScope.editableContent = content;
eristoddle / app.component.ts
Created Sep 25, 2016 — forked from wphax/app.component.ts
Dynamic Component Loading in Angular 2 RC4
View app.component.ts
import { Component } from '@angular/core';
import { DynamicHTMLDirective } from './dynamic-html.directive';
@Component( {
selector: 'main-layer',
directives: [ DynamicHTMLDirective ],
template: '<dynamic-html-wrap [src]="data"></dynamic-html-wrap>'
} )
export class AppComponent {
public data: string = '<something></something>';
eristoddle / businessDays.js
Created Aug 22, 2016 — forked from balazsbohonyi/businessDays.js
Adding/Subtracting Business Days in Javascript (extends the native Date Javascript object)
View businessDays.js
Number.prototype.mod = function(n) {
return ((this%n)+n)%n;
// support for adding/subtracting business days for Javascript dates
Date.prototype.addBusinessDays = function(days) {
days = parseInt(days);
var wks = Math.floor(days/5);
var dys = days.mod(5);
var dy = this.getDay();
eristoddle / h2oToNueralNetTools.R
Last active May 18, 2016
R script to take an H2o models weights and biases and send them through the NeuralNetTools olden variable importance function...and first time I have used R so I could be doing things totally wrong but it works.
View h2oToNueralNetTools.R
#Rscript processModel.R
model_id <- 'deeplearning-f168835d-9e6e-4170-b881-fb5f214f302b'
localH2O <- h2o.init()
eristoddle /
Created Apr 25, 2016
Merge csvs with Pandas
from glob import iglob
import pandas as pd
files = sorted(iglob('*.csv'))
frames = [ pd.read_csv(f) for f in files ]
result = pd.concat(frames)
final_csv = result.to_csv('./final.csv')
You can’t perform that action at this time.