Skip to content

Instantly share code, notes, and snippets.

View shinilms-nimo's full-sized avatar
🤓
Focusing

Shinil M S shinilms-nimo

🤓
Focusing
View GitHub Profile
@shinilms-nimo
shinilms-nimo / slack.sh
Last active August 23, 2022 10:42 — forked from andkirby/slack.sh
Shell/Bash script for sending slack messages.
#!/usr/bin/env bash
####################################################################################
# Slack Bash console script for sending messages.
####################################################################################
# Installation
# $ sudo curl -s https://gist.githubusercontent.com/shinilms-nimo/46c5dac0674cb920507a7f725bc522da/raw --output /usr/bin/slack
# $ sudo chmod +x /usr/bin/slack
####################################################################################
# USAGE
#
@shinilms-nimo
shinilms-nimo / Data.kt
Created May 7, 2022 06:46 — forked from florina-muntenescu/Data.kt
Using RoomDatabase#Callback to pre-populate the database - https://medium.com/google-developers/7-pro-tips-for-room-fbadea4bfbd1
/*
* Copyright (C) 2017 The Android Open Source Project
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@shinilms-nimo
shinilms-nimo / AndroidManifest.xml
Last active May 25, 2019 07:16
Add app to whitelist of apps that are partially exempt from Doze and App Standby optimizations
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
@shinilms-nimo
shinilms-nimo / avd_loading_bar.xml
Created May 3, 2019 05:52 — forked from nickbutcher/avd_loading_bar.xml
A prototype of a loading indicator utilizing repeated gradients. See https://twitter.com/crafty/status/914830571196571648
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017 Google Inc.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License