Skip to content

Instantly share code, notes, and snippets.

@stewartpark
stewartpark / xor.py
Created October 12, 2015 08:17
Simple XOR learning with keras
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation
from keras.optimizers import SGD
import numpy as np
X = np.array([[0,0],[0,1],[1,0],[1,1]])
y = np.array([[0],[1],[1],[0]])
model = Sequential()
model.add(Dense(8, input_dim=2))
@djonsson
djonsson / install_elasticsearch_osx.md
Last active June 12, 2025 07:13
OS X installation instructions for Elasticsearch + Kibana + Marvel

What is this?

Following this guide will set up a local Elasticsearch with Kibana and Marvel using Homebrew and Homebrew Cask

Prerequisites

If you already have Java installed on your system, skip steps Install Cask and Install Java

If you already have Java and Homebrew installed on your system, skip steps Prerequisites, start at Install Elasticsearch and Kibana after running $ brew update

Install Homebrew

  • $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@frabad
frabad / ffcuesplit.py
Last active January 16, 2023 20:57 — forked from bancek/cue_to_mp3.py
CUE splitter using ffmpeg
#!/usr/bin/env python
import os
import subprocess
import sys
if len(sys.argv) != 2:
sys.exit("Usage:\n\t%s <%s>" % (sys.argv[0], 'input_cuesheet'))
cuesheet_fname = sys.argv[1]