Skip to content

Instantly share code, notes, and snippets.

@luisfc
luisfc / doc.md
Created February 4, 2020 06:17 — forked from aloon/doc.md
Chuleta GIT

#GIT

Configuracion inicial

Global

git config --global user.name "Alex Gonzalez"
git config --global user.email miemail@domain.cat
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
@luisfc
luisfc / LICENCE SUBLIME TEXT
Created July 8, 2018 22:40
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@luisfc
luisfc / ContactForm-basic.php
Created June 18, 2018 01:24 — forked from WengerK/ContactForm-basic.php
Drupal 8 — Inline validation in forms
<?php
/**
* @file
* Contains \Drupal\my_contact\Form\ContactForm.
*/
namespace Drupal\my_contact\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
@luisfc
luisfc / __INDEX.txt
Created July 19, 2017 00:34 — forked from facine/__INDEX.txt
Drupal 8 - Examples
# Taxonomy terms:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_taxonomy_term-php
# Menu links:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_menu_link-php
# File items:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_file-php
# Nodes:
package com.ethanf.in_app_billing_ex;
import java.util.ArrayList;
import org.json.JSONException;
import org.json.JSONObject;
import com.android.vending.billing.IInAppBillingService;
import android.os.Bundle;
@luisfc
luisfc / MainActivity.java
Created April 24, 2017 19:11 — forked from first087/MainActivity.java
Android Application : In-app Billing Example with Utility. Test app at https://play.google.com/store/apps/details?id=com.ethanf.in_app_billing_ex2
package com.ethanf.in_app_billing_ex2;
import com.ethanf.in_app_billing_ex2.util.IabHelper;
import com.ethanf.in_app_billing_ex2.util.Inventory;
import com.ethanf.in_app_billing_ex2.util.IabResult;
import com.ethanf.in_app_billing_ex2.util.Purchase;
import com.ethanf.in_app_billing_ex2.util.SkuDetails;
import android.os.Bundle;
import android.app.Activity;