Skip to content

Instantly share code, notes, and snippets.

View arlm's full-sized avatar

Alexandre Rocha Lima e Marcondes arlm

View GitHub Profile
@aresnick
aresnick / story.md
Last active March 21, 2016 09:35
A few examples of and resources on story and storytelling—

On Stories (or something like them)

One of the natural tensions that comes up whenever new tools and media are introduced is that between the old forms and content and what's enabled now. The same way that the first movies were filmed plays and the first online newspapers digital reprints, it takes time to break out of our old expectations and embrace new media on its own terms.

"Storytelling" gets thrown around a lot when people are talking about technology—many times in ways that make real storytellers cringe—but at least part of what we read into that is that there's something new and interesting in the forms technology enables.

These resources are meant to provide some evocative starting points and examples for thinking about what it meanst to tell a story and how that might be able to change with some of the technologies we're exploring in DGMD S-15.


@albinmathew
albinmathew / build.gradle
Created May 25, 2015 08:02
An example configuration for proguard-rules.pro
android {
compileSdkVersion 22
buildToolsVersion "22.0.0"
defaultConfig {
applicationId "com.abc.example"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
@jdarling
jdarling / index.html
Last active May 8, 2018 12:17
Graph different parts of data in different DC charts (inbound/outbound as an example)
<!DOCTYPE html>
<html lang="en">
<head>
<title>dc.js - Dimensional Charting Javascript Library</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="https://dc-js.github.io/dc.js/css/dc.css"/>
<style>
body, html{
margin: 0;
padding: 0;
@eyecatchup
eyecatchup / hammerhead-from-lrx21o-to-lrx22c.md
Last active November 1, 2023 08:35
A step-by-step guide how to manually flash the Android 5.0.1 (LRX22C) OTA-Update on a Nexus 5 with modified system (custom recovery/kernel, rooted, modified framework etc.)..

Update: For those interested, here's the version for updating from Android 5.1.0 (LMY47D/LMY47I) to Android 5.1.1 (LMY48B):
https://gist.github.com/eyecatchup/dab5cf7977008e504213


  UPDATE `NEXUS 5` 
     SET `VERSION`='5.0.1', `BUILD`='LRX22C', `RECOVERY`='CUSTOM', `ROOTED`=1 
   WHERE `VERSION`='5.0' && `BUILD`='LRX21O' && `RECOVERY`='CUSTOM' && `ROOTED`=1 
         && `WANNA_KEEP_USERDATA`=1;
class QuestMapView : View
{
const int BaseRadius = 5;
Paint mainPaint;
Paint linePaint;
Drawable ripple;
int radius;
int textMargin;
@eluleci
eluleci / RippleLinearLayout.java
Created September 25, 2014 16:15
Ease and ripple touch effects (Android L Like Touch Effects) on Android views
package com.cengalabs.flatui.sample;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.LinearLayout;
package in.jasonleon.vanityviews.widget;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build;
import android.util.AttributeSet;
@eyal-lezmy
eyal-lezmy / Android.mk
Last active May 6, 2024 12:56
Avoid adding Android Packages and apps to your AOSP build
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := \
android-common \
LOCAL_SRC_FILES := \
$(call all-java-files-under, src) \
@bsweger
bsweger / useful_pandas_snippets.md
Last active August 10, 2025 13:33
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@Jogan
Jogan / FloatingActionButton.java
Last active February 6, 2025 22:38
Implementation of Android L's floating action button pattern. API 14+
package your_package;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;