- RSpec
- Associations + validations
- Scopes
| import tensorflow as tf | |
| import tensorflow_datasets as tfds | |
| # tfds works with Eager and Graph modes | |
| tf.enable_eager_execution() | |
| # 0. Select the dataset you'd like to use | |
| print(tfds.list_builders()) | |
| # 1. Construct the DatasetBuilder |
| # Countdown | |
| function countdown(){ | |
| echo "Countdown started: $1 minutes" | |
| background_countdown $1 & | |
| } | |
| function background_countdown(){ | |
| date1=$((`date +%s` + $1 * 60)); | |
| while [ "$date1" -ge `date +%s` ]; do | |
| : | |
| done |
| import numpy as np | |
| import scipy as sp | |
| import pandas as pd | |
| import matplotlib as mpl | |
| import matplotlib.pyplot as plt | |
| %load_ext autoreload | |
| %autoreload 2 | |
| # Exclude autoimports | |
| %aimport -np | |
| %aimport -pd | |
| %aimport -sp | |
| %aimport -sklearn | |
| %aimport -skimage | |
| %aimport -mpl |
| https://www.dropbox.com/s/2xuy5mhoqaxagbe/Drivers%20license.jpg |
| # Will run rake in each folder, check how | |
| # many specs failed, and output scores | |
| # (passed specs of total specs) into | |
| # 'final_grades.txt' along with a note if | |
| # 'rake' errored out. | |
| # | |
| # | |
| # Expectations: | |
| # | |
| # Single folder that contains one folder |
| -- JitBit SQL Interview Questions (Posted on Hacker News) | |
| -- http://www.jitbit.com/news/181-jitbits-sql-interview-questions/?utm_source=hackernewsletter&utm_medium=email | |
| -- Schema: | |
| -- employees table | |
| -- EmployeeID | |
| -- DepartmentID | |
| -- BossID | |
| -- Name | |
| -- Salary |
| devise = yes?("Devise? ") | |
| cancan = yes?("Cancan? ") | |
| omniauth = yes?("Omniauth? ") | |
| foundation = yes?("Foundation? ") | |
| bootstrap = foundation ? false : yes?("Bootstrap? ") | |
| ember = yes?("Ember? ") | |
| handlebars = ember ? false : yes?("Handlebars? ") | |
| underscore = yes?("Underscore? ") | |
| homecontroller = yes?("Home Controller with index page? ") | |
| github = yes?("GitHub create and push? ") |