Skip to content

Instantly share code, notes, and snippets.

View enzoftware's full-sized avatar
🥷
Probably sleeping

Enzo Lizama Paredes enzoftware

🥷
Probably sleeping
View GitHub Profile
@vighnesh153
vighnesh153 / ExoVideoPlayerInJetpackCompose.kt
Last active July 5, 2024 17:45
Exoplayer in Jetpack Compose
package vighnesh153.androidx.exo_player_prototype
import android.net.Uri
import android.os.Build
import android.util.Log
import android.view.ViewGroup
import android.view.accessibility.CaptioningManager.CaptionStyle
import android.widget.FrameLayout
import androidx.annotation.RequiresApi
import androidx.compose.animation.AnimatedVisibility
@carlosgub
carlosgub / bash_profile
Last active October 19, 2020 08:48
Export Android Variables to the system
//MacOS Catalina and After or Linux that work with zsh shell
//Create the file
Start up Terminal
Type "cd ~/" to go to your home folder
Type "touch .zprofile" to create your new file.
Edit .zprofile with your favorite editor or with "vi .zprofile" to open it with VIM
//Put this on the .bash_profile file
export ANDROID_HOME=~/Library/Android/sdk/
@bostrot
bostrot / CustomShowDialog.dart
Last active October 25, 2022 09:25
showDialog with rounded corners
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
@briansalvattore
briansalvattore / api.js
Created March 16, 2018 22:42
Proxy to run Firebase Functions
'use strict';
const admin = require('firebase-admin');
module.exports = function (app) {
app.get('/api', function (req, res) {
res.json({ 'version': '0.1' })
});
import webapp2
from google.appengine.ext.webapp import template
import os
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, webapp World!')
@matteo-grella
matteo-grella / GoogleMapsGeocodingHelper.kt
Created November 2, 2017 18:37
A Kotlin wrapper for the Google Maps Geocoding API v3
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*

Run go install and

  • gogitlocalstats -add /path/to/folder will scan that folder and its subdirectories for repositories to scan
  • gogitlocalstats -email your@email.com will generate a CLI stats graph representing the last 6 months of activity for the passed email. You can configure the default in main.go, so you can run gogitlocalstats without parameters.

Being able to pass an email as param makes it possible to scan repos for collaborators activity as well.

License: CC BY-SA 4.0

@jeromeetienne
jeromeetienne / .block
Last active July 23, 2021 17:36
AR.js with a-frame - Augmented Reality in less than 10lines of html
license: mit
@danielesegato
danielesegato / CreditCardFormatTextWatcher.java
Last active April 8, 2021 08:42 — forked from liberorignanese/MarginSpan.java
Android TextInputLayout with credit card mask
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.Editable;
import android.text.Spannable;
import android.text.TextWatcher;
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 25, 2024 13:33
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites