Skip to content

Instantly share code, notes, and snippets.

View nurudeensulaimon's full-sized avatar

Nurudeen Sulaimon nurudeensulaimon

View GitHub Profile

Rails v7.0.4 Cheatsheet

Updated by: Chris Simmons, based on the 5.2 Cheatsheet by Scott Borecki.

Please reach out if you have any comments or suggestions for updates!

Notes About this Cheatsheet

  • Rails version v7.0.4. Run $rails -v to check your Rails version number.
  • Code snippets in this cheatsheet starting with $:
  • Run from the terminal, usually within your project directory.

Calendaring - CFU

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right corner. You can always come back and edit your gist.
  4. As you are working, you can use the Preview changes button to check your markdown formatting.

Exercises

@nurudeensulaimon
nurudeensulaimon / timeseries_cnn.py
Created March 6, 2018 09:12 — 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