Skip to content

Instantly share code, notes, and snippets.

View glomadrian's full-sized avatar

Adrián Lomas glomadrian

  • Wallapop
  • Barcelona, Spain
View GitHub Profile
@txusballesteros
txusballesteros / four_segments_dynamic_layout.xml
Last active October 24, 2017 06:10
4 Segments ConstraintLayout
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#b2ebf2">
<android.support.constraint.ConstraintLayout
android:layout_width="110dp"
@neomede
neomede / cities.sql
Last active August 29, 2015 14:06
SQL files to create countries, the Spanish states and his cities
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `city`
-- ----------------------------
DROP TABLE IF EXISTS `city`;
CREATE TABLE `city` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`state_id` int(11) DEFAULT NULL,
`postal_code` int(11) NOT NULL,