Skip to content

Instantly share code, notes, and snippets.

View quentin7b's full-sized avatar
🌴
Aloha

Quentin Klein quentin7b

🌴
Aloha
View GitHub Profile
@rob-murray
rob-murray / gradle_andr_version_code.groovy
Last active December 23, 2015 09:19
How to increment the Android version code using Gradle Android build system
// add method to get the versionCode from cli param
// eg. `gradle tasks -PversionCode=999`
/**
* Get the version code from command line param
*
* @return int If the param -PversionCode is present then return int value or -1
*/
def getVersionCode = { ->
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active November 18, 2024 11:51
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@samkirton
samkirton / gist:0242ba81d7ca00b475b9
Last active November 14, 2022 13:31
Fixed a bug where images added to the MediaStore are not inserted at the front of the gallery
package com.memtrip;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.ContentValues;
import android.graphics.Bitmap;
@tntclaus
tntclaus / generateAndroidDrawables.sh
Last active July 17, 2024 13:33
Simple Android drawable image resource generator script with specified DP with ImageMagic or Inkscape
#!/bin/sh
# Example usage:
# ./generateAndroidDrawables.sh my_image.png 140 /absolute/path/to/android/res/drawables
#
# Will generate 140dp android drawables for 6 DPI on out/my_image.png/ directory.
# Be sure your original image has sustainable resolution for xxxhdpi drawable,
# which is 140 x 4 PX in case of this example.
#
# Requires ImageMagic
# SVG conversion recommended to be done with Inkscape:
@zfarbp
zfarbp / s.md
Last active March 27, 2024 10:34
Trigger Spotify with osascript

Trigger Spotify with osascript

/Applications/Spotify.app/Contents/Resources/Spotify.sdef

# read-only
osascript -e 'tell application "Spotify" to player state'                  # stopped,playing,paused
osascript -e 'tell application "Spotify" to current track'                 # The current playing track.
osascript -e 'tell application "Spotify" to artwork url of current track'  # Image data in TIFF format.
osascript -e 'tell application "Spotify" to artist of current track'       # The artist of the track.

Formation : Développement d'application mobile accessible

Description

Le but de cette formation Accessibilité mobile est d'apprendre à développer des applications mobiles natives accessibles. Les applications mobiles sont aujourd'hui au cœur de nos interactions. Mais sommes-nous certains que nos développements soient utilisables par tout le monde ? Pour tous les cas d'usage ? Et dans tous les environnements possibles ?

Description

Le but de cette formation Accessibilité mobile est de vous apprendre à développer des applications mobile native accessibles.

Les applications mobile sont aujourd'hui au cœur de nos interactions. Mais sommes-nous certains que nos développements soient utilisables par tout le monde ? Pour tous les cas d'usage ? Et dans tous les environnements possibles ?