Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
num = int(input("Número a multiplicar")) | |
rango = range(1,11) | |
for element in rango: | |
product = num * element | |
print (num, '*', element, "=", product) |
<!DOCTYPE html> | |
<html lang="es-MX"> | |
<head> | |
<meta charset = 'utf-8'> | |
<title>Calcu</title> | |
</head> | |
<body> | |
<center> | |
<script> | |
var operation; |
puts "Ingrese el número a multiplicar" | |
number = gets | |
number = number.to_i | |
for i in(1..10) | |
mul = i * number | |
puts "#{number} * #{i} = #{mul}" | |
end |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/afr/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
/* | |
* Method ajax for canal and medio | |
*/ | |
$('#hospital_id').change(function(){ | |
var data = ""; | |
var url = $(this).data('url'); | |
var params = 'hospital_id=' + $('#hospital_id').val(); | |
$.ajax({ | |
type : "GET", | |
url : url, |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
u=User.where(:email => '[email protected]').first | |
u.password='userpassword' | |
u.password_confirmation='userpassword' | |
u.save! |
./manage.py changepassword <user_name> |
# Se crean los gemsts | |
rvm gemset create ror5 ror4 | |
# Se usa el gemset creado | |
rvm gemset use ruby-2.4.1@ror5 o ror4 | |
# Se utilizará la misma versión de Ruby con Rails 4 o Rails 5 | |
gem install rails o gem install rails --version=4.2.6 | |
# Listar gemsets para ruby 2.4.1 | |
rvm gemset list |
Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.