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
-- Criando uma tabela para armazena ros valores numéricos em campo varchar | |
-- ATENÇÃO: ISSO É ERRADO! O correto seria usar campo DECIMAL | |
mysql> create table produtos( | |
-> valor varchar(10) | |
-> ); | |
Query OK, 0 rows affected (0.03 sec) | |
-- Inserindo alguns valores | |
mysql> insert into produtos values('1,10'), ('2,20'), ('3,30'); |
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
#!/bin/bash | |
# | |
# Creates a Gruntfile.js, uglifying all .js files in a given dir | |
# All <file>.js will be uglified and saved as <file>.min.js, in the same dir | |
# | |
# EXECUTE THIS SCRIPT IN THE ROOT OF YOUR PROJECT, WHERE THE Gruntfile.js SHALL BE PLACED | |
# Path to JS dir, from where the files will be uglified | |
JS_DIR="public/js" |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
# | |
# Verifica se você teve sorte e ganhou na loteria | |
# | |
# nome do arquivo com as apostas | |
PLAYS_FILENAME="plays.txt" |