Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Anf do | |
| @moduledoc | |
| """ | |
| Author: Christophe De Troyer | |
| """ | |
| require Logger | |
| ############################################################################## | |
| # API # | |
| ############################################################################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # --------------------------------------------------------- | |
| # Customizable Settings | |
| # --------------------------------------------------------- | |
| VOLUME_NAME="${CASE_SAFE_VOLUME_NAME:-casesafe}" | |
| MOUNT_POINT="${CASE_SAFE_MOUNT_POINT:-${HOME}/${VOLUME_NAME}}" | |
| VOLUME_PATH="${CASE_SAFE_VOLUME_PATH:-${HOME}/.${VOLUME_NAME}.dmg.sparseimage}" | |
| VOLUME_SIZE="${CASE_SAFE_VOLUME_SIZE:-1g}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var app = require('../app'); | |
| console.log(); | |
| app.routes.all().forEach(function(route){ | |
| console.log(' \033[90m%s \033[36m%s\033[0m', route.method.toUpperCase(), route.path); | |
| }); | |
| console.log(); | |
| process.exit(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function EventEmitter() { | |
| this._listeners = {}; | |
| } | |
| exports.EventEmitter = EventEmitter; | |
| EventEmitter.prototype.listeners = function(event) { | |
| if (!this._listeners[event]) { | |
| this._listeners[event] = []; | |
| } | |
| return this._listeners[event]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace CHH; | |
| trait MetaObject | |
| { | |
| protected static $metaClass; | |
| static function setMetaClass(MetaClass $metaClass) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.get('/help', function(req, res){ | |
| res.send('some help'); | |
| }); | |
| app.search('/search/:query/p:page', function(req, res){ | |
| var query = req.params.query | |
| , page = req.params.page; | |
| res.send('search "' + query + '", page ' + (page || 1)); | |
| }); |