Skip to content

Instantly share code, notes, and snippets.

View auser's full-sized avatar

Ari auser

View GitHub Profile
@auser
auser / model.py
Last active April 16, 2020 18:08
def nn(X, y, hiddenLayerSize=10, learningRate=0.01, epochs=100, debug=False):
m = X.shape[1]
outputSize = y.shape[1]
# Make our model
model = dict(
w0 = np.random.randn(m, hiddenLayerSize),
w1 = np.random.randn(hiddenLayerSize, outputSize)
)
@auser
auser / data.py
Last active April 16, 2020 18:09
import numpy as np
import pandas as pd
np.random.seed(1)
# train comes from the titantic dataset provided by
# kaggle (https://www.kaggle.com/c/titanic/data)
df = pd.read_csv('./data/titanic-train.csv')
def preprocess(raw_data):
# Preprocess data
Verifying my Blockstack ID is secured with the address 14xYsyu9E2KocyoSUpByuJ6qZ7RSy3WcAv https://explorer.blockstack.org/address/14xYsyu9E2KocyoSUpByuJ6qZ7RSy3WcAv
module.exports = function container_plugin(md, name, options) {
function validateDefault(params) {
return true;
// return params.trim().split(' ', 2)[0] === name;
}
function renderDefault(tokens, idx, _options, env, self) {
// add a class to the opening tag
if (tokens[idx].nesting === 1) {
tokens[idx].attrPush(['class', `${name} ignore-me`]);
@auser
auser / timeline.css
Last active December 30, 2022 05:14
.demo {
position: relative;
}
.demo .notificationsFrame {
z-index: 2;
width: 100%;
top: 20px;
background: #fff;
border-radius: 3px;
overflow: hidden;

Keybase proof

I hereby claim:

  • I am auser on github.
  • I am auser (https://keybase.io/auser) on keybase.
  • I have a public key ASAAXXLRG0Rjas4-vwQnB0FdbTO3hjWZeD1KZqMzb6c51go

To claim this, I am signing this object:

find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
'use latest';
import isoFetch from 'isomorphic-fetch';
import {graphCoolEndpoint} from './constants';
const _getPlan = planId => {
const query = `{
Plan(id:"${planId}") {
id
}
mutation createUserAndSubscription(
$email:String,
$token:String!,
$idToken:String!,
$planId:ID!
) {
createUser(
email:$email,
authProvider:{
auth0:{
@auser
auser / Dockerfile
Created May 13, 2017 22:08
Dockerfile for elixir development
FROM elixir:1.4.2
ENV PORT=4000 MIX_ENV=prod
ENV APP_NAME=myapp APP_VERSION="0.1.0"
RUN mix local.hex --force && \
mix local.rebar --force && \
mkdir /build
WORKDIR /build