Skip to content

Instantly share code, notes, and snippets.

View lfreneda's full-sized avatar
💙
Always deliver more than expected.

Luiz Freneda lfreneda

💙
Always deliver more than expected.
View GitHub Profile
@lfreneda
lfreneda / ionic_publish_android_app.md
Created December 2, 2015 14:27 — forked from leommoore/ionic_publish_android_app.md
Ionic Publish Android App

#Ionic Publish Android App

This is the process to publish an ionic android app.

  1. Make sure you set/increment the version number in config.xml ie 0.0.3.

  2. Make sure the android platform has been added

db.people.update({}, { $push: { responses: { provider: 'googleplus', content: null }} }, {multi:true});
@lfreneda
lfreneda / gist:60f07cffad61eb4f7d67
Created September 23, 2015 19:28
submodule git permission error
# on root repository
$ sudo chown -R lfreneda .git
$ sudo chmod g+w .git/ -R
Downloader = require './imageDownloader'
Hasher = require './imageHasher'
Uploader = require './imageUploader'
Cleaner = require './imageCleaner'
waterfall = require('async').waterfall
images = [
{
url: 'https://www.google.com/images/srpr/logo3w.png'
},
@lfreneda
lfreneda / 00.howto_install_phantomjs.md
Last active September 9, 2015 01:05 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@lfreneda
lfreneda / gist:74bfc68439144899d256
Last active August 31, 2015 14:03
index_people_with_routing
# Delete the `people` index
DELETE /people
# Create the `people` index with proper settings
PUT /people
{
"settings": {
"analysis": {
"filter": {
"brazilian_stop": {
@lfreneda
lfreneda / index_people
Last active August 27, 2015 19:58
elasticsearch_index_people
# Delete the `people` index
DELETE /people
# Create the `people` index with proper settings
PUT /people
{
"settings": {
"analysis": {
"filter": {
"brazilian_stop": {
@lfreneda
lfreneda / elasticsearch_index
Created August 27, 2015 18:25
elasticsearch playground with people index
# Delete the `my_index` index
DELETE /people
# Map the `postcode` to be not_analyzed
PUT /people
{
"settings": {
"analysis": {
"filter": {
"brazilian_stop": {
@lfreneda
lfreneda / gist:a4a724d455e532809ae0
Last active August 29, 2015 14:11 — forked from wildbrain72/gist:7afc91742858e29e9836
AssertProperties.cs
public class AssertProperties<T>
{
private readonly ICollection<string> _errors = new List<string>();
public class AssertValue<TResult>
{
private readonly object _value;
private readonly string _propertName;
private readonly AssertProperties<T> _parent;
@lfreneda
lfreneda / gist:160cedd1c50ec02926cb
Last active August 29, 2015 14:11
AssertConversion multiples assert but with right feedback :P
public class AssertProperties<T>
{
private readonly ICollection<string> _errors = new List<string>();
public class AssertValue<TResult>
{
private readonly object _value;
private readonly string _propertName;
private readonly AssertProperties<T> _parent;