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
# A simple 'hello world' application with python uwsgi and nginx | |
# Make directory and files | |
# The directory structure: | |
# ./ | |
# |-- app/ | |
# | |-- hello.py | |
# | |-- hello_nginx.conf | |
if [ -d app ]; then | |
rm -rf app |
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
from django.core.exceptions import ValidationError | |
from django.core.validators import validate_ipv46_address | |
from django.utils.deconstruct import deconstructible | |
from django.utils.encoding import force_text | |
from django.utils.translation import ugettext_lazy as _ | |
import re | |
@deconstructible | |
class DomainNameValidator(object): |
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
using System; | |
using System.IO.Ports; | |
namespace SerialReader | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var reader = new ArduinoSerialReader("COM3"); |