Steps to create a postgres database and deply a Python app to Heroku
pipenv install gunicorn
or
pip install gunicorn
| # -*- coding: utf-8 -*- | |
| """ | |
| Copyright (c) 2019 Valentin B. | |
| A simple music bot written in discord.py using youtube-dl. | |
| Though it's a simple example, music bots are complex and require much time and knowledge until they work perfectly. | |
| Use this as an example or a base for your own bot and extend it as you want. If there are any bugs, please let me know. |
| import TensorFlow | |
| import Python | |
| let np = Python.import("numpy") | |
| let randomNumbers = Tensor<Float>(randomUniform: [5, 5]) | |
| print(randomNumbers) | |
| let rotatedRandomNumbers = Tensor<Float>(numpy: np.rot90(randomNumbers.makeNumpyArray())) | |
| print(rotatedRandomNumbers) |
| $(function () { | |
| "use strict"; | |
| // for better performance - to avoid searching in DOM | |
| var content = $('#content'); | |
| var input = $('#input'); | |
| var status = $('#status'); | |
| // my color assigned by the server | |
| var myColor = false; |
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |
| { | |
| "name": "javascript-development-environment", | |
| "version": "1.0.0", | |
| "description": "JavaScript development environment Pluralsight course by Cory House", | |
| "scripts": { | |
| }, | |
| "author": "Cory House", | |
| "license": "MIT", | |
| "dependencies": { | |
| "whatwg-fetch": "1.0.0" |
A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.
| // Demo at http://codepen.io/jondaiello/full/YWRbOx/ | |
| /* This mixin is for generating CSS arrows on a box */ | |
| @mixin box-arrow($arrowDirection, $arrowColor, $arrowSize: 10px) { | |
| position: relative; | |
| z-index: 10; | |
| &::after { | |
| content: ''; | |
| width: 0; | |
| height: 0; |