This file contains hidden or 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 React, { Component } from 'react' | |
import { connect } from 'react-redux' | |
import { bindActionCreators } from 'redux'; | |
import { | |
questionDetailAPICallRequestAsync, | |
questionDetailAPICallRequest | |
} from '../../actions'; | |
export class QuestionDetail extends Component { |
This file contains hidden or 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
#!/usr/bin/env bash | |
SCM_THEME_PROMPT_PREFIX="${cyan}(${green}" | |
SCM_THEME_PROMPT_SUFFIX="${cyan})" | |
SCM_THEME_PROMPT_DIRTY=" ${red}✗" | |
SCM_THEME_PROMPT_CLEAN=" ${green}✓" | |
# Get Virtual Env | |
prompt() { |
This file contains hidden or 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
server{ | |
listen 80; | |
server_name server_ip1 server_ip2 domain.com1 domain.com2; | |
root /path/to/root; | |
index index.html; | |
location = /favicon.ico { access_log off; log_not_found off; } | |
location / { | |
try_files $uri /index.html =404; |
This file contains hidden or 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 os | |
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) | |
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
# Quick-start development settings - unsuitable for production | |
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ | |
# SECURITY WARNING: keep the secret key used in production secret! |
This file contains hidden or 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
fetch('https://min-api.cryptocompare.com/data/price?fsym=MXN&tsyms=BTC') | |
.then(response => { | |
if(response.ok){ | |
return Promise.resolve(response); | |
} else{ | |
return Promise.reject(new Error("No funciona")); | |
} | |
}) | |
.then(response => response.json()) | |
.then(data => { |
This file contains hidden or 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
<!doctype html> | |
<html lang="es-MX"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Space Monkey</title> | |
</head> | |
<body> |
This file contains hidden or 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
#!/usr/bin/env python | |
import serial | |
import atexit | |
from datetime import datetime | |
ser = serial.Serial('/dev/tty.usbmodem1411', 9600) | |
while True: |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="es-MX"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div ng-app="todoApp" ng-controller="todoController as todoCtrl"> |
This file contains hidden or 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 socket | |
def http_request(url, method="GET", **kwargs): | |
""" | |
Make an HTTP request, kwargs not implemented | |
""" | |
_, _, host, path = url.split('/', 3) | |
addr = socket.getaddrinfo(host, 80)[0][-1] # Gets ip and port tuple (xxx.xxx.xxx.xxx, xx) |
This file contains hidden or 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
<VirtualHost *:80> | |
ServerName domain.local | |
Alias /static /home/syneto/Sites/proyecto_bs_pdf_service/bs_pdf_service/www/static | |
<Directory /home/syneto/Sites/proyecto_bs_pdf_service/bs_pdf_service/www/static> | |
Require all granted | |
</Directory> |