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
ffmpeg -re -f avfoundation -i "Built-in Microphone" -ar 8000 -f mulaw -f rtp rtp://localhost:1234 | |
ffmpeg -re -f avfoundation -i "1" -ar 8000 -f mulaw -f flv rtmp://localhost/live | |
ffmpeg -f avfoundation -i "0":"0" -f flv rtmp://localhost/live | |
ffmpeg -re -f avfoundation -i "0" -ar 8000 -f mulaw -f rtp rtp://127.0.0.1:1234 |
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 xmlns:o="urn:schemas-microsoft-com:office:office" | |
xmlns:x="urn:schemas-microsoft-com:office:excel" | |
xmlns="http://www.w3.org/TR/REC-html40"> | |
<head> | |
<meta http-equiv=Content-Type content="text/html; charset=windows-1252"> | |
<meta name=ProgId content=Excel.Sheet> | |
<meta name=Generator content="Microsoft Excel 14"> | |
<link rel=File-List href="cadastro_arquivos/filelist.xml"> | |
<style id="Pasta1_12252_Styles"> |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style> | |
.start { | |
padding: 15px; | |
border: 1px solid #ccc; | |
} |
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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+public/([^\s]+) [NC] | |
RewriteRule ^ %1 [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ /public/$1 [L,NC] |
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
require('json') | |
file = File.read('data.json') | |
data = JSON.parse(file) | |
data.each_with_index do |tweet, i| | |
user = tweet['user'] | |
user_name = user['name'] | |
user_screen_name = user['screen_name'] |
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
# -*- coding: utf-8 -*- | |
import SocketServer | |
import serial | |
import time | |
class SerialHandler(object): | |
''' | |
Classe responsável pela comunicação serial | |
''' |
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 | |
import sys | |
HOST, PORT = "localhost", 9999 | |
data = " ".join(sys.argv[1:]) | |
# Create a socket (SOCK_STREAM means a TCP socket) | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
try: |
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
-- Verificando as tabelas no esquema do usuário | |
SELECT table_name FROM user_tables; | |
-- Criando as tabelas Referentes a Engenheiro, Projeto e Atuação | |
CREATE TABLE engenheiro ( | |
cod_eng NUMBER PRIMARY KEY, | |
nome VARCHAR2(30) NULL, | |
salario number(15,2) NULL | |
); |
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
public class Conta { | |
private String numero; | |
private String cliente; | |
private double saldo; | |
public Conta(String num, String cli) { | |
this.numero = num; | |
this.cliente = cli; |
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
SELECT DISTINCT s.paper_id AS 'Submissao ID', s.setting_value AS 'Titulo', | |
(SELECT response_value FROM review_form_responses WHERE review_form_element_id = 6 and review_id = a.paper_id) AS '1', | |
(SELECT response_value FROM review_form_responses WHERE review_form_element_id = 7 and review_id = a.paper_id) AS '2', | |
(SELECT response_value FROM review_form_responses WHERE review_form_element_id = 8 and review_id = a.paper_id) AS '3', | |
(SELECT response_value FROM review_form_responses WHERE review_form_element_id = 9 and review_id = a.paper_id) AS '4', | |
(SELECT response_value FROM review_form_responses WHERE review_form_element_id = 10 and review_id = a.paper_id) AS '1', | |
(SELECT response_value FROM review_form_responses WHERE review_form_element_id = 11 and review_id = a.paper_id) AS 'Comentário' | |
FROM paper_settings s JOIN paper_authors a ON s.paper_id = a.paper_id | |
WHERE s.setting_name LIKE 'title' AND a.paper_id = 415 | |
ORDER BY s.setting_value; |