Skip to content

Instantly share code, notes, and snippets.

View aminelaadhari's full-sized avatar

Amine Laadhari aminelaadhari

  • thefabulous.co
View GitHub Profile
Parse.Cloud.job("testImageCompression", function(request, response) {
console.log("Posting HTTP request");
Parse.Cloud.httpRequest({
method: 'POST',
url: 'https://api.kraken.io/v1/url',
headers: {
'Content-Type': 'application/json'
},
body: {
@nickaknudson
nickaknudson / PositionAnimation.java
Created February 21, 2014 04:17
PositionAnimation
/**
*
*/
package com.nickaknudson.android.animations;
import com.nickaknudson.mva.callbacks.Callback;
import android.view.animation.Animation;
import android.view.animation.Transformation;
package com.homeaway.floatlabel.library;
import android.content.Context;
import android.content.res.TypedArray;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
@martyglaubitz
martyglaubitz / BorderDrawable.java
Last active August 29, 2015 14:02
A drawable which draws borders as background of a view
/* The MIT License (MIT)
Copyright (c) 2014, Marty Glaubitz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@burntcookie90
burntcookie90 / CheckableLinearLayout.java
Last active August 29, 2015 14:02
Checkable layout
public class CheckableLinearLayout extends LinearLayout implements Checkable {
private static final int[] CHECKED_STATE_SET = { android.R.attr.state_checked };
private boolean mChecked;
private OnCheckedChangeListener mOnCheckedChangeListener;
public CheckableLinearLayout(Context context) {
super(context, null);
}
public CheckableLinearLayout(Context context, AttributeSet attrs) {
package com.nhaarman.test;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RadialGradient;
set adb to "/usr/local/bin/adb"
set impbcopy to "/Users/ericbutler/.bin/impbcopy"
set {oldtid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
set rawDevices to do shell script adb & " devices | tail -n +2 | grep -v '^$' | awk -F\\ '{ print $1 }'"
set devices to every text item of rawDevices
set AppleScript's text item delimiters to oldtid
@matheusjardimb
matheusjardimb / android_colors
Last active August 29, 2015 14:12
Great Flat Colors
<?xml version="1.0" encoding="utf-8"?>
<!--
Great set of colors from from http://flatuicolors.com/ and converted into Android colors.xml
-->
<resources>
<color name="turquoise">#1abc9c</color>
<color name="emerald">#2ecc71</color>
<color name="peter_river">#3498db</color>
@kwent
kwent / mixpanel_people_export.rb
Last active September 16, 2015 01:52
Export all MixPanel People to a JSON file
#==========================================================================================
#title :mixpanel_people_export.rb
#description :This ruby script is exporting mixpanel people json data to a file
#author :Quentin Rousseau <contact@quent.in>
#date :2014-07-15
#version :1.0
#usage :ruby mixpanel_people_export.rb
#dependencies :gem install 'mixpanel_client'
#moreinfo :https://mixpanel.com/docs/api-documentation/data-export-api#engage-default
#===========================================================================================
@cloudbring
cloudbring / .rvmrc
Created December 20, 2011 18:45 — forked from sr/Gemfile
Janky on Heroku
#!/usr/bin/env bash
# This is an RVM Project .rvmrc file, used to automatically load the ruby
# development environment upon cd'ing into the directory
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
environment_id="ruby-1.9.2-p290@jankd"
#
# Uncomment following line if you want options to be set only for given project.