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
const ITEM_HEIGHT = 48; | |
export const styles = theme => ({ | |
root: { | |
flexGrow: 1, | |
height: 250, | |
}, | |
chip: { | |
margin: theme.spacing.unit / 4, | |
}, |
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
///////////// | |
var prompt = require('prompt-sync')(); | |
var cotademalha = 5; | |
var brasaosolar = 10; | |
var assault = 15; | |
var aneldeprotecao = 2; | |
/////var ca = prompt ('Qual é a CA desejada ? '); |
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
[ | |
{ | |
id: 35, | |
company: { | |
name: "C&A", | |
avatar: "http://cloud-images.com/123123/thumb" | |
}, | |
viewed: false, | |
url: "url promocional opcional", | |
created_at: "timestamp here" |
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
[ | |
{ | |
"id": 10, | |
"name": "Shopping Tacaruna", | |
"coords": { | |
"latidude": 30, | |
"longitude": 40, | |
} | |
}, | |
{ |
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
/* | |
Entre pelo terminal e digite: npm init | |
para criar um projeto node. Assim será possível instalar | |
módulos do npm. Para esse servidor funcionar basta instalar | |
o pacote express com o seguinte comando: npm install express --save | |
pronto.. crie o arquivo como código abaixo e execute o seguinte comando para | |
rodar o servidor: node server | |
*/ | |
var express = require('express') |
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
function toDataURL(src, callback, outputFormat) { | |
var img = new Image(); | |
img.crossOrigin = 'Anonymous'; | |
img.onload = function() { | |
var canvas = document.createElement('CANVAS'); | |
var ctx = canvas.getContext('2d'); | |
var dataURL; | |
canvas.height = this.naturalHeight; | |
canvas.width = this.naturalWidth; | |
ctx.drawImage(this, 0, 0); |
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
require "prawn" | |
Prawn::Font::AFM.hide_m17n_warning = true | |
class Report | |
include Prawn::View | |
attr_reader :left | |
def initialize(title) | |
@left = 0 |
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
require 'colorize' | |
require 'thread' | |
$semaphore = Mutex.new | |
$phore = Mutex.new | |
$buffer = [] | |
$cv = ConditionVariable.new | |
class Consumidor |
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
app.controller("FormEvento", function($scope, $http, Email){ | |
$scope.data = {}; | |
$scope.captcha = null; | |
$scope.submit = function(){ | |
if ($scope.captcha == null) { alert("Prove que não é um robô com o captcha."); return; } | |
if ($scope.data.nome == undefined) { alert("Nome é obrigatório!"); return; } | |
if ($scope.data.cpf == undefined) { alert("CPF é obrigatório!"); return; } | |
if ($scope.data.funcao == undefined) { alert("função é obrigatório!"); return; } |
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
CREATE TABLE users ( | |
id varchar(36), | |
name varchar(255), | |
email varchar(255), | |
password varchar(255), | |
facebook_id varchar(255), | |
google_id varchar(255), | |
device_uuid varchar(255), | |
security_pin int, | |
role varchar(25), |