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| yum install java-1.7.0-openjdk-devel | |
| gunzip pycharm-community-3.1.1.tar.gz | |
| tar -xvf pycharm-community-3.1.1.tar | |
| mv pycharm-community-3.1.1 pycharm-3.1 | |
| export JAVA_HOME=/usr | |
| # Pycharm looks with bin/java | |
| vi ~/.bashrc | |
| #!/bin/sh | |
| apt-get build-dep -y php5-cli | |
| aptitude install -y build-essential git libreadline-dev libxml2-dev libmcrypt-dev libjpeg8-dev libpng12-dev libcurl4-openssl-dev libtidy-dev libxslt1-dev | |
| cd /tmp | |
| git clone git://github.com/CHH/php-build | |
| cd php-build/ | |
| ./install.sh | |
| mkdir /usr/local/php | |
| php-build -i production 5.6.5 /usr/local/php/5.6.5 | |
| cd /usr/local/bin |
| #!/bin/bash | |
| # PhalconPhp with PHP7 installation on ubuntu:16.04 | |
| sudo apt-get update | |
| sudo apt-get install -y php7.0-fpm \ | |
| php7.0-cli \ | |
| php7.0-curl \ | |
| php7.0-gd \ |
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 8000Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the first resource was served.
Sources : MDN - HTTP Access Control | Wiki - CORS
CORS is set server-side by supplying each request with additional headers which allow requests to be requested outside of the own domain, for example to your localhost. This is primarily set by the header:
Access-Control-Allow-Origin| /** | |
| * Changes value to past tense. | |
| * Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc. | |
| * http://jsfiddle.net/bryan_k/0xczme2r/ | |
| * | |
| * @param {String} value The value string. | |
| */ | |
| Vue.filter('past-tense', function(value) { | |
| // Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing | |
| var vowels = ['a', 'e', 'i', 'o', 'u']; |
| /*************************************************************/ | |
| // NumeroALetras | |
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2015 Luis Alfredo Chee | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights |
| <?php | |
| include "fpdf/fpdf.php"; | |
| $pdf = new FPDF($orientation='P',$unit='mm', array(45,350)); | |
| $pdf->AddPage(); | |
| $pdf->SetFont('Arial','B',8); //Letra Arial, negrita (Bold), tam. 20 | |
| $textypos = 5; | |
| $pdf->setY(2); | |
| $pdf->setX(2); | |
| $pdf->Cell(5,$textypos,"NOMBRE DE LA EMPRESA"); |