Skip to content

Instantly share code, notes, and snippets.

View ibrahimab's full-sized avatar
🤔
no.

Ibrahim ibrahimab

🤔
no.
  • IngeniousDev
  • Who's asking?
View GitHub Profile
@ibrahimab
ibrahimab / flexbox-equal-height-columns.html
Last active January 23, 2020 12:28
Flexbox with equal height columns
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Flexbox</title>
<style>
.grid {
display: flex;
align-items: stretch;
www.chalet.nl www.chalet.be www.chalet.eu www.chalettour.nl www.chaletonline.de www.venturasolvacances.nl www.zomerhuisje.nl www.italissima.nl www.italissima.be
#include <stdio.h>
int main(int argc, char *argv[])
{
Person *eric = createPerson("Eric", 65, 12, 165);
Person *ibo = createPerson("Ibrahim", 18, 100, 55);
personEats(eric);
personEats(ibo);
}
class TypeValidator < ActiveModel::Validator
def validate(record)
#validation
end
end
class MyModel
include ActiveModel::Model
validates_with TypeValidator
end
@ibrahimab
ibrahimab / gist:e4b8b03134592224712c
Last active August 29, 2015 14:12
TableGateway ZF2 solution
<?php
// Base class for all models
namespace Project\Model\Model;
use Zend\Db\TableGateway\AbstractTableGateway;
use Zend\Db\Adapter\Adapter;
use Zend\Db\ResultSet\HydratingResultSet;
use Zend\Stdlib\Hydrator\Reflection as ReflectionHydrator;
class Base extends AbstractTableGateway {
@ibrahimab
ibrahimab / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;