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 / 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;
<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"
<?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 {
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.
*/
@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">
@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 / gist:decf4140039d5dd0167e
Last active August 29, 2015 14:24
FCC Bonfire: Convert HTML Entities
function convert(str) {
var ent = {
'&' : '&amp;',
'<' : '&lt;',
'>' : '&gt;',
'\"': '&quot;',
"\'": '&apos;'
};
var re = new RegExp(Object.keys(ent).join('|'), "g");
JavaScript resources, all free online. They're ordered in diffuculty from top to bottom.
http://jsforcats.com/
https://www.youtube.com/playlist?list=PLeL6uTxQ-uX_5BpOb2FDNgG6SxjCs59Kv
https://www.youtube.com/watch?v=hQVTIJBZook
https://www.khanacademy.org/computing/computer-science/algorithms
http://speakingjs.com/es5/index.html
http://eloquentjavascript.net/index.html
http://superherojs.com/
https://www.youtube.com/watch?v=8aGhZQkoFbQ
@placidrod
placidrod / mongodb1.js
Last active June 30, 2018 20:44
MongoDb
// Select or Create a Database
use MyDatabase
// Create a Collection and insert document
db.myCollection.insert({
"Name": "Placid",
"Age": 37,
"Hobbies": ["Travelling", "Movies"],
"myObjects": {
"property1" : "value1",
@placidrod
placidrod / Default (Windows).sublime-mousemap
Last active July 20, 2016 08:17
Sublime Text - Click to Go to Definition (Save the file in Sublime Text 3 > Packages > User)
[
{
"button": "button1",
"count": 1,
"modifiers": ["alt"],
"press_command": "drag_select",
"command": "goto_definition"
},
{
"button": "button2",