Skip to content

Instantly share code, notes, and snippets.


David Rearte dengue8830

Block or report user

Report or block dengue8830

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dengue8830 /
Last active Jul 13, 2018
Para instalar java en distros basadas en linux (desactualizado pero vale)
dengue8830 / SearchBox.tsx
Last active May 23, 2018
Simple react typeahead component
View SearchBox.tsx
// Works with this typeahead
// but its easy to change to another lib
import * as React from 'react';
const $ = window.$;
export interface SearchParams {
query: string;
callback: (items: any) => void;
View ts-node scripts on package.json
"scripts": {
"start": "./node_modules/.bin/ts-node ./server.ts",
"watch": "./node_modules/.bin/nodemon -V -w . --ext \".ts\" --exec \"npm run start\""
dengue8830 / activity_item_detail
Created Jan 31, 2017
Detail layout with collapsing toolbar from android studio examples
View activity_item_detail
< xmlns:android=""
dengue8830 / Publish AAR to jCenter and Maven Central
Last active Jan 30, 2017 — forked from lopspower/
Publish AAR to jCenter and Maven Central
View Publish AAR to jCenter and Maven Central
Publish AAR to jCenter and Maven Central
Now I'm going to list how to publish an Android libray to jCenter and then syncronize it with Maven Central:
1. I use "Android Studio" and I have this simple android lib that I would like to be available on maven: [CircularImageView](
2. In the library folder(module) I have the lib code abovementioned. And applying in the build.gradle of this folder `apply plugin: ''` I got as output an .aar in the build/outputs/aar/ directory of the module's directory
dengue8830 / sortByTwoFields.js
Created Jan 8, 2017
Very simple backbone sorted collection by two fields. Simplified version of
View sortByTwoFields.js
//Original code
function sortAthletes(athletes){
//points is the first criteria
//we sort athletes by points and make a group for all wich have the same points
var sortedGroups = _(athletes.models).chain().
sortBy(function (model) {
return -model.get('points');
groupBy(function (model) {
return -model.get('points');
dengue8830 / baseModelWithWhiteList.js
Last active Jan 8, 2017
Whitelist function for the backbone base model. This allows me to select which attributes i want to send to the server or something else
View baseModelWithWhiteList.js
//Define the base model
var BaseModel = Backbone.Model.extend({
toJSON: function(options) {
options = options || {};
var json;
json = _.pick(this.attributes, options.whiteList);
else if(!!options.blackList)
json = _.omit(this.attributes, options.blackList);
You can’t perform that action at this time.