Skip to content

Instantly share code, notes, and snippets.

@eric2323223
eric2323223 / gaussian-processes-1.ipynb
Created April 16, 2019 09:56 — forked from abridgland/gaussian-processes-1.ipynb
A Jupyter notebook to accompany Intro to Gaussian Processes - Part I at http://bridg.land/posts/gaussian-processes-1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eric2323223
eric2323223 / rnn_viz_keras.py
Created February 24, 2018 04:06 — forked from tokestermw/rnn_viz_keras.py
Recurrent Neural Network (RNN) visualizations using Keras.
from __future__ import print_function
from keras import backend as K
from keras.engine import Input, Model, InputSpec
from keras.layers import Dense, Activation, Dropout, Lambda
from keras.layers import Embedding, LSTM
from keras.optimizers import Adam
from keras.preprocessing import sequence
from keras.utils.data_utils import get_file
from keras.datasets import imdb
@eric2323223
eric2323223 / timeseries_cnn.py
Created November 1, 2017 14:04 — forked from jkleint/timeseries_cnn.py
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
#!/usr/bin/env python
"""
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
"""
from __future__ import print_function, division
import numpy as np
from keras.layers import Convolution1D, Dense, MaxPooling1D, Flatten
from keras.models import Sequential
@eric2323223
eric2323223 / logistic-regression.ipynb
Created June 2, 2017 10:03 — forked from vietjtnguyen/logistic-regression.ipynb
IPython Notebook on Logistic Regression
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eric2323223
eric2323223 / 0_reuse_code.js
Created February 23, 2016 12:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@eric2323223
eric2323223 / New reminder from Launchbar
Created December 7, 2015 11:50 — forked from mlgill/New reminder from Launchbar
A script for quickly adding reminders to the Reminders app in Mountain Lion from Launchbar and Alfred. Save this as a .scpt and drop it in ~/Library/Application\ Support/LaunchBar/Actions
--Script for setting Reminders for LaunchBar and Alfred
--For Alfred, Applescript must NOT be set to run in Background otherwise date parsing does not work
--For LaunchBar, place the script in ~/Library/Scripts/LaunchBar
--by Michelle L. Gill, 10/07/2012
--Inspired by https://gist.github.com/3187630
--A related Alfred version 2 workflow can be found here: https://github.com/mlgill/alfred-workflow-create-reminder
--Changes
--02/01/2013 * Fixed an issue with setting the time when the hour is 12 and AM/PM (12-hour clock) is used
-- * Removed the ability to set seconds for the time since Reminders doesn't recognize them
@eric2323223
eric2323223 / remind.py
Created December 7, 2015 11:12 — forked from renfredxh/remind.py
Set reminders via OSX terminal
#!/usr/local/bin/python3
# Make a new reminder via terminal script
# args: remind <title> <date> <time>
# example: remind clean 12/10/2012 10:00:00PM
import subprocess
import sys
from datetime import datetime, timedelta
# A apple script that creates a new reminder given a name date and time
OSASCRIPT = ('<<END\n'
@eric2323223
eric2323223 / README.md
Last active August 29, 2015 14:16 — forked from marcbc/README.md

Playing with D3.js to get a drill down behavior for a hierarchical data collection represented in pie charts. See live example

@eric2323223
eric2323223 / Description
Created September 4, 2012 03:29 — forked from twasink/Description
Spring, JPA, HSQLDB and automatically creating tables
Same as the earlier gist, but with JPA wrapping hibernate. Note that the choice of wether to create the tables or not is in the spring-config file, NOT the persistence.xml file like a lot of other examples out there.
@eric2323223
eric2323223 / applicationContext-with-sharedentitymanagerbean.xml
Created September 4, 2012 02:34 — forked from rponte/applicationContext-with-sharedentitymanagerbean.xml
configuring SharedEntityManagerBean in applicationContext.xml
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
...
</bean>
<bean id="entityManager"
class="org.springframework.orm.jpa.support.SharedEntityManagerBean">
<property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>