Skip to content

Instantly share code, notes, and snippets.

const ITEM_HEIGHT = 48;
export const styles = theme => ({
root: {
flexGrow: 1,
height: 250,
},
chip: {
margin: theme.spacing.unit / 4,
},
/////////////
var prompt = require('prompt-sync')();
var cotademalha = 5;
var brasaosolar = 10;
var assault = 15;
var aneldeprotecao = 2;
/////var ca = prompt ('Qual é a CA desejada ? ');
[
{
id: 35,
company: {
name: "C&A",
avatar: "http://cloud-images.com/123123/thumb"
},
viewed: false,
url: "url promocional opcional",
created_at: "timestamp here"
[
{
"id": 10,
"name": "Shopping Tacaruna",
"coords": {
"latidude": 30,
"longitude": 40,
}
},
{
/*
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')
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);
require "prawn"
Prawn::Font::AFM.hide_m17n_warning = true
class Report
include Prawn::View
attr_reader :left
def initialize(title)
@left = 0
require 'colorize'
require 'thread'
$semaphore = Mutex.new
$phore = Mutex.new
$buffer = []
$cv = ConditionVariable.new
class Consumidor
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; }
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),