Skip to content

Instantly share code, notes, and snippets.

View vcaen's full-sized avatar
🚀
🪐

Vadim Caen vcaen

🚀
🪐
View GitHub Profile
@vcaen
vcaen / telegram.xml
Created September 27, 2021 15:05
Telegram Splash Screen Animation Test
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<aapt:attr name="android:drawable">
<vector
android:width="160dp"
android:height="160dp"
android:viewportWidth="240"
android:viewportHeight="240">
<path android:pathData="M120,120m-120,0a120,120 0,1 1,240 0a120,120 0,1 1,-240 0">
<aapt:attr name="android:fillColor">
@vcaen
vcaen / open-as-chrome-app.sh
Created October 15, 2019 12:51
Shell function to open a given url as a standalone window.
#!/bin/sh
# Open the url given as a parameter as a standalone window of Google Chrome
function app () {
local profile=""
local protocol=""
if [[ $1 != *"://"* ]]; then
protocol="https://"
fi
if [ -n "$2" ] ; then
# Copy paste the commands below to download Noto Color Emoji and install it.
(_FONTCONFIG='<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Add emoji generic family -->
<alias binding="strong">
<family>emoji</family>
<default><family>Noto Color Emoji</family></default>
@vcaen
vcaen / macUKKeyboardRemap.sh
Created November 3, 2018 18:06
Mac remap § to ESC
#!/bin/bash
function keymapRemap() {
hidutil property --set '{"UserKeyMapping":[
{
"HIDKeyboardModifierMappingSrc":0x700000064,
"HIDKeyboardModifierMappingDst":0x700000029
}
]}'
}