Skip to content

Instantly share code, notes, and snippets.

View placidrod's full-sized avatar

Placid Rodrigues placidrod

  • Movio
  • Auckland, New Zealand
View GitHub Profile
@placidrod
placidrod / gist:5c8ca58edd41532818be
Created June 24, 2015 05:37
Sunshine first layout without list view
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
android:background="@android:color/white"
tools:context=".MainActivity$PlaceholderFragment">
<LinearLayout
@placidrod
placidrod / Option A
Last active August 29, 2015 14:23 — forked from anonymous/Option A
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
package com.example.android.justjava;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.widget.TextView;
/**
* This app displays an order form to order coffee.
*/
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.1.1 (LTS) on 2015-06-11.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<TextView
android:text="I’m in this corner"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
@placidrod
placidrod / css_background.css
Created April 11, 2015 16:28
CSS Background
.wildlife {
background-image: url('img/bear.jpg');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
box-sizing: border-box;
}
ol {
list-style-type: decimal-leading-zero;
@placidrod
placidrod / chewy-divi-custom-css.css
Created March 1, 2015 11:57
chewy-divi-custom-css
.chewy-no-display {
display: none;
}
.chewy-header {
background-color: #e55621;
}
.chewy-history {
font-size: 16px;
}
.chewy-contact p {
@placidrod
placidrod / CF7-Divi-All-Full-Width.html
Created February 28, 2015 08:51
CF7 Divi All Full Width
<div class="chewy_pb_contact">
<p class="clearfix">
<!-- <label class="et_pb_contact_form_label">Name</label> -->
[text* your-name id:your-name class:input class:et_pb_contact_name class:chewy_input placeholder "Name"]
</p>
<p class="clearfix">
<!-- <label class="et_pb_contact_form_label">Email</label> -->
[text* your-email id:your-email class:input class:et_pb_contact_email class:chewy_input placeholder "Email"]
</p>
<p class="clearfix">
@placidrod
placidrod / cf7-divi-theme.html
Last active August 29, 2015 14:16
CF7 with Divi Theme
<div class="chewy_pb_contact">
<p class="clearfix">
<strong><label class="et_pb_contact_form_label">Your Name</label></strong>
[text* your-name id:your-name class:input class:et_pb_contact_name class:chewy_input placeholder "Name"]
</p>
<p class="clearfix">
<strong><label class="et_pb_contact_form_label">Your Email</label></strong>
[text* your-email id:your-email class:input class:et_pb_contact_email class:chewy_input placeholder "Email"]
</p>
<p class="clearfix">
@placidrod
placidrod / Sublime windows context menu.txt
Created February 11, 2015 08:16
Sublime Windows Context Menu
@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% "%%1"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f