(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # install epel-release on centos | |
| yum -y install epel-release | |
| yum -y update | |
| # install python-pip from epel | |
| yum -y install python-pip | |
| # Verify using: | |
| pip -V |
| --- | |
| - hosts: all | |
| vars: | |
| root_password: xxx | |
| common_user_password: xxx | |
| common_user_name: deploy | |
| ssh_port: 22 | |
| remote_user: root |
| :: pandoc-docx-md.bat | |
| :: | |
| :: Don't show these commands to the user | |
| @ECHO off | |
| :: Set the title of the window | |
| TITLE Convert docx to markdown with Pandoc | |
| :: Select file marker | |
| :selectfile | |
| :: Clear any preexisting filename variables | |
| SET filename= |
| """ | |
| A deep neural network with or w/o dropout in one file. | |
| License: Do What The Fuck You Want to Public License http://www.wtfpl.net/ | |
| """ | |
| import numpy, theano, sys, math | |
| from theano import tensor as T | |
| from theano import shared | |
| from theano.tensor.shared_randomstreams import RandomStreams |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # Original Rails controller and action | |
| class EmployeesController < ApplicationController | |
| def create | |
| @employee = Employee.new(employee_params) | |
| if @employee.save | |
| redirect_to @employee, notice: "Employee #{@employee.name} created" | |
| else | |
| render :new | |
| end |
| module.exports = function (grunt) { | |
| // Load grunt tasks automatically | |
| require('load-grunt-tasks')(grunt); | |
| // Time how long tasks take. Can help when optimizing build times | |
| require('time-grunt')(grunt); | |
| // Define the configuration for all the tasks | |
| grunt.initConfig({ |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |