Skip to content

Instantly share code, notes, and snippets.

<?php
$image = new image;
$image->load('http://.../url.jpg');
// Redimensiona para no minimo 200x200, proporcionalmente
$image->width = 200;
$image->height = 200;
$image->maintain_ratio = true;
@visb
visb / pcm-definition.md
Created February 27, 2014 18:01
Descrição do PCM

(#)Parent, (.)Children, (:)Modifier

Parent, children e modifier são definidos através do atributo class, cada um com seus prefixos('#' para parent, '.' para children e ':' para modifier)

Parent

Elemento principal de um módulo(ex: slider, navigation, searchbox)


/**
* Reset
*/
* {
margin: 0;
padding: 0;
}
/**
* General mixins
<style type="text/less">
.slider-horizontal{
background: red;
height: 500px;
.slide{
height: 450px;
background: blue;
display: none;
&.active{
display: block;

#Vinicius Siuta Borges

Idade: 19 anos

E-mail: [email protected]

Telefone: (41) 3268-6052 / (41) 9665-3611


This file has been truncated, but you can view the full file.
# Host: agencia110.com.br (Version: 5.5.23-55)
# Date: 2014-03-11 13:45:20
# Generator: MySQL-Front 5.3 (Build 4.108)
/*!40101 SET NAMES utf8 */;
#
# Structure for table "cidade"
#
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.form-group label, .form-group input {
display: inline-block;
float: left;
width: 50%;
var i = 1,
end = 100,
multiples = {5 : 'Ka', 7 : 'Nois'};
for ( ; i <= end; i++) {
var string = '';
for (multiple in multiples) {
if (i%multiple === 0) {
string += multiples[multiple];
}
function minutesEqualTo(minutes, action) {
var date = new Date,
sleep = 1000 * 60;
if (date.getMinutes() == minutes) {
action.call();
sleep = 1000 * 60 * 60;
}
window.setTimeout(minutesEqualTo.bind(window, minutes, action), sleep);
SELECT
doenca.*
FROM
doencas AS doenca
LEFT JOIN doencas_sintomas AS doenca_sintoma
LEFT JOIN sintomas AS sintoma
WHERE
## sintoma 1
(sintoma.nome = 'febre' AND doenca_sintoma.sintoma_id = sintoma.id AND doenca_sintoma.doenca_id = doenca.id)