Skip to content

Instantly share code, notes, and snippets.


Christian Panadero PaNaVTEC

Block or report user

Report or block PaNaVTEC

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
AleBles / ScaleManager.js
Last active Jan 15, 2019
Phaser v3 temp (css) scale amanger
View ScaleManager.js
class ScaleManager {
constructor(canvas, isMobile) {
this.canvas = canvas; = isMobile;
window.addEventListener('resize', () => {
if ( {
if (window.innerWidth < window.innerHeight) {
jgilfelt /
Created Jan 9, 2016
An OkHttp interceptor that logs requests as curl shell commands
* Copyright (C) 2016 Jeff Gilfelt.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
cb372 /
Last active Sep 25, 2019
Category theory jargon cheat sheet

Category theory jargon cheat sheet

A primer/refresher on the category theory concepts that most commonly crop up in conversations about Scala or FP. (Because it's embarassing when I forget this stuff!)

I'll be assuming Scalaz imports in code samples, and some of the code may be pseudo-Scala.


A functor is something that supports map.

douo /
Created Jun 23, 2015
FloatingActionMenu build by android support FloatingActionButton
package com.diaoser.tmr.view;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.content.Context;
Earnestly / makepkg_overview.rst
Last active Mar 14, 2019
A brief overview of the process involved in creating a pacman package.
View makepkg_overview.rst

A Brief Tour of the Makepkg Process: What Makes a Pacman Package


This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a

Sloy / build.gradle
Last active Aug 29, 2015
Dex Count Gradle
View build.gradle
buildscript {
repositories {
maven { url ''} //<- only needed while jcenter refresh to the new version
dependencies {
classpath 'com.sloydev:dexcountprettify-plugin:0.1.2'
rocboronat /
Last active Oct 10, 2017
A simple way to call the common new Handler().postDelayed(..., time);
import android.os.Handler;
import android.view.View;
/**A simple way to call the common new Handler().postDelayed(..., time);
* Created by Roc Boronat on 12/12/2014.
public class RippleDelayedRunner implements View.OnClickListener {
dmarcato / strip_play_services.gradle
Last active Jun 19, 2019
Gradle task to strip unused packages on Google Play Services library
View strip_play_services.gradle
def toCamelCase(String string) {
String result = ""
string.findAll("[^\\W]+") { String word ->
result += word.capitalize()
return result
afterEvaluate { project ->
Configuration runtimeConfiguration = project.configurations.getByName('compile')
View android_material_design_colours.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- google's material design colours from -->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
staltz /
Last active Oct 20, 2019
The introduction to Reactive Programming you've been missing
You can’t perform that action at this time.