This file contains 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
Tienes que tener Xcode Pre instalado | |
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | |
Bajar Command Line Tools de https://developer.apple.com/downloads/index.action# | |
Simlink a x11 : ln -s /opt/X11 /usr/X11 | |
brew list |
This file contains 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
settings.py: | |
MEDIA_ROOT = 'C:/Server/Projects/project_name/static/' | |
MEDIA_URL = '/static/' | |
ADMIN_MEDIA_PREFIX = '/media/' | |
urls.py: | |
from django.conf import settings |
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
I hereby claim:
- I am ajamaica on github.
- I am ajamaica (https://keybase.io/ajamaica) on keybase.
- I have a public key whose fingerprint is 0372 0E83 FFF7 AA05 E537 D828 FA2D 63E3 45C2 BD8E
To claim this, I am signing this object:
This file contains 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
UIInterpolatingMotionEffect *mx = [[UIInterpolatingMotionEffect alloc] | |
initWithKeyPath:@"center.x" type:UIInterpolatingMotionEffectTypeTiltAlongHorizontalAxis]; | |
mx.maximumRelativeValue = @-39.0; | |
mx.minimumRelativeValue = @39.0; | |
UIInterpolatingMotionEffect *mx2 = [[UIInterpolatingMotionEffect alloc] | |
initWithKeyPath:@"center.y" type:UIInterpolatingMotionEffectTypeTiltAlongVerticalAxis]; | |
mx2.maximumRelativeValue = @-39.0; | |
mx2.minimumRelativeValue = @39.0; | |
I hereby claim:
- I am ajamaica on github.
- I am ajamaica (https://keybase.io/ajamaica) on keybase.
- I have a public key whose fingerprint is 9021 115C 215C 1F17 36E2 D338 14A5 450C 7363 D3D8
To claim this, I am signing this object:
This file contains 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
curl -sL https://deb.nodesource.com/setup_5.x -o nodesource_setup.sh | |
sudo -E bash ./nodesource_setup.sh | |
sudo apt-get install -y nodejs build-essential git | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list | |
sudo apt-get update | |
sudo apt-get install -y mongodb-org | |
sudo service mongod start | |
git clone https://github.com/ParsePlatform/parse-server-example.git |
This file contains 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
# Instalación de paqueterias | |
sudo apt-get install libapache2-mod-wsgi | |
# Vamos a la carpeta | |
cd /etc/apache2 | |
# Agregamos esta linea dentro del http.conf (site 1, site 2, depende la configuración de sus virtual host) Tiene que apuntar directo a un archivo .wsgi que tiene que estar preferente mente alado de la carpeta de su proyecto. | |
WSGIScriptAlias / /home/ajamaica/django.wsgi |
This file contains 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
import string | |
#!/usr/bin/env python | |
def ransom_note(revistas,ransom): | |
catalogo = dict() | |
for letra in revistas: | |
if not letra in catalogo.keys(): | |
catalogo[letra] = 1 | |
else: |
NewerOlder