Skip to content

Instantly share code, notes, and snippets.

View melanke's full-sized avatar
The future is already here, it's just not evenly distributed

Gil Lopes Bueno melanke

The future is already here, it's just not evenly distributed
View GitHub Profile
@melanke
melanke / README.md
Created January 17, 2012 17:32 — forked from eligrey/object-watch.js
watch the changes of some object or attribute
@melanke
melanke / MultiGetSet.js
Created June 19, 2012 20:53
MultiGetSet.JS - Quickly generate getters and setters for multiple attributes
var MultiGetSet = function(opt){
var getType = function(o) {
return ({}).toString.call(o).match(/\s([a-zA-Z]+)/)[1].toLowerCase()
};
if(!opt.public || !opt.private)
return opt.public;
if(opt.handler && opt.handler.init)
@melanke
melanke / README.md
Created August 28, 2012 21:57
JQuery RedditLoader - smart and customizable reddit content loader
@melanke
melanke / MLRoundedImageView.java
Created October 25, 2013 17:19
Android Rounded Image
public class MLRoundedImageView extends ImageView {
public MLRoundedImageView(Context context) {
super(context);
}
public MLRoundedImageView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@melanke
melanke / MLCoverflow.cs
Created June 2, 2014 13:49
MLCoverflow Xamarin Implementation
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
@melanke
melanke / mouse.js
Last active August 29, 2015 14:06
trying to test touch events
describe("mouse", function(){
function computedStyle(el, prop) {
return (
window.getComputedStyle ? window.getComputedStyle(el) : el.currentStyle
)[prop.replace(/-(\w)/gi, function (word, letter) {
return letter.toUpperCase();
})];
}
@melanke
melanke / statisticalOutLierAnalysis.java
Created December 15, 2016 20:15
statisticalOutLierAnalysis.java discover numbers outside standard deviation
public static List<Double> statisticalOutLierAnalysis(List<Double> allNumbers) {
if (allNumbers.isEmpty()) {
return null;
}
List<Double> normalNumbers = new ArrayList<Double>();
List<Double> outLierNumbers = new ArrayList<Double>();
Double sum = 0D;
for (Double number : allNumbers) {

"I was inspired by:"

All libraries that give me the ideas to build this.


This is an idea to make the Github community more thankful by who inspired itself.

  • create a I_WAS_INSPIRED_BY.md to talk about it
@melanke
melanke / gil-contribution-week-54.md
Created July 17, 2018 06:42
Gil Contribution Week 54
@melanke
melanke / gil-contribution-week-54.md
Created July 24, 2018 14:56
Gil Contribution Week 55