Skip to content

Instantly share code, notes, and snippets.

View sdbeng's full-sized avatar
💭
Coding

Sergio sdbeng

💭
Coding
View GitHub Profile
@app.route('/quizzes', methods=['POST'])
def quizzes():
"""route to quizzes, play"""
try:
data = request.get_json()
previous_questions = data['previous_questions']
quiz_category = data['quiz_category']
questions = None
# get questions for that quiz_category type 'click'
@sdbeng
sdbeng / PY0101EN-3-4-Classes.ipynb
Created September 4, 2019 21:43
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / PY0101EN-3-3-Functions.ipynb
Created September 4, 2019 20:55
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / PY0101EN-3-2-Loops.ipynb
Created September 4, 2019 19:30
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / PY0101EN-2-4-Sets.ipynb
Created September 2, 2019 18:03
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / PY0101EN-2-3-Dictionaries.ipynb
Created September 2, 2019 15:01
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / PY0101EN-2-1-Tuples.ipynb
Created September 1, 2019 16:28
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / PY0101EN-1-2-Strings.ipynb
Created August 31, 2019 15:09
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / PY0101EN-1-1-Types.ipynb
Created August 30, 2019 13:38
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sdbeng
sdbeng / MySQL_macOS_Sierra.md
Created May 5, 2018 16:36 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :