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 | |
| HOST = '' | |
| PORT = 5000 | |
| tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| orig = (HOST, PORT) | |
| tcp.bind(orig) | |
| tcp.listen(1) | |
| 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
| class MeuComponent extends React.Component { | |
| render() { | |
| return <h1>{{this.props.text}}</h1>; | |
| } | |
| } | |
| let mountNode = document.getElementById('root'); | |
| ReactDOM.render( | |
| <MeuComponent text='Título />, |
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
| int analogPin = A0; // potentiometer on educational boosterpack connected to analog pin 5 | |
| // outside leads to ground and ~3V | |
| int val = 0; // variable to store the value read | |
| float tensao = 0; | |
| float somaI, somaV,Irms,Vrms,V2rms,I2rms; | |
| float VOLT[800]; | |
| float AMP[800]; | |
| float teninst[800]; | |
| float corrinst[800]; | |
| int i; |
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
| wp: | |
| image: wordpress | |
| links: | |
| - db:mysql | |
| environment: | |
| WORDPRESS_DB_PASSWORD: password | |
| WORDPRESS_DB_TABLE: wordpress | |
| restart: always | |
| ports: | |
| - 8180:80 |
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
| <html> | |
| <!-- Sugestão estrutura html modular --> | |
| <body> | |
| <div id="root"> | |
| <!-- Conteúdo renderizado aqui dentro --> | |
| <!--conteudo do header --> | |
| <header class="header header-container"> | |
| <div class="header header-brand"> |
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
| --2017-01-09 12:45:34-- http://downloads.sourceforge.net/project/libpng/libpng16/1.6.26/libpng-1.6.26.tar.xz | |
| Resolving downloads.sourceforge.net... 216.34.181.59 | |
| Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected. | |
| HTTP request sent, awaiting response... 404 Not Found | |
| 2017-01-09 12:45:35 ERROR 404: Not Found. | |
| MXE Warning! Downloading libpng from second URL. | |
| --2017-01-09 12:45:35-- ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.26.tar.xz | |
| => ‘/Users/gbrennon/Documents/Github/mxe/pkg/.tmp-libpng-1.6.26.tar.xz’ | |
| Resolving ftp.simplesystems.org... 65.66.246.92 |
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
| var gulp = require('gulp'); | |
| var concat = require('gulp-concat'); | |
| var sass = require('gulp-sass'); | |
| var minifyCss = require('gulp-minify-css'); | |
| var rename = require('gulp-rename'); | |
| var gulpBowerFiles = require('gulp-bower-files'); | |
| var paths = { | |
| sass: ['./scss/**/*.scss'], | |
| scripts: ['./app/**/*.js', './app/*.js'] |
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
| worker_processes 10; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include /etc/nginx/mime.types; | |
| gzip on; |
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
| angular.module('suapraia', ['ionic', 'ngCordova', 'suapraia.controllers', 'suapraia.beaches']) | |
| .run(function($ionicPlatform) { | |
| $ionicPlatform.ready(function() { | |
| if (window.cordova && window.cordova.plugins.Keyboard) { | |
| cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | |
| cordova.plugins.Keyboard.disableScroll(true); | |
| } | |
| if (window.StatusBar) { |
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
| angular.module('suapraia.services', []) | |
| .factory('BalnFact', BalnFact); | |
| function BalnFact($q) { | |
| var _db; | |
| var _beaches; | |
| var _expire_date; | |
| return { |