Skip to content

Instantly share code, notes, and snippets.

Avatar
👻
Wubba lubba dub dub

rosuH

👻
Wubba lubba dub dub
View GitHub Profile
@rosuH
rosuH / 📊 Weekly development breakdown
Last active Aug 9, 2020
Weekly development breakdown
View 📊 Weekly development breakdown
Kotlin 23 hrs 47 mins ████████████▊░░░░░░░░ 60.8%
XML 10 hrs 4 mins █████▍░░░░░░░░░░░░░░░ 25.8%
Java 3 hrs 57 mins ██▏░░░░░░░░░░░░░░░░░░ 10.1%
Markdown 40 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.7%
Groovy 31 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.3%
@rosuH
rosuH / SightFragment.java
Created Jun 30, 2020 — forked from joinAero/SightFragment.java
Android - Fragment for handling view after it has been created and visible to user for the first time.
View SightFragment.java
package cc.cubone.turbo.core.app;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;
/**
* Fragment for handling view after it has been created and visible to user for the first time.
*
* <p>Specially in {@link android.support.v4.view.ViewPager}, the page will be created beforehand
@rosuH
rosuH / AdobeFixAMD
Last active Mar 24, 2020 — forked from XLNCs/AdobeFixAMD
To fix adobe products crashes on AMD hackintosh
View AdobeFixAMD
___ADOBE CRASH FIX BY XLNC___
USAGE : Open terminal and run the below commands as required.
NOTE: File path changes in each version release. So if the file is not found you can find the specified file manually and replace the path in the below commands.
You can also use this command to find the location of a specific adobe file :
eg:- if you want to search for MMXCore then run this command :
find /Applications/Adobe* -type f -name "MMXCore" | sed 's/ /\\ /g'
Photoshop crash fix :-
View poster.py
from datetime import date
import requests
import json
from apscheduler.schedulers.blocking import BlockingScheduler
from chinese_calendar import is_workday
# https://work.weixin.qq.com/help?doc_id=13376
wk_bot_url = $YOUR_WECHAT_BOT_URL
def postMsg():
@rosuH
rosuH / .zshrc
Created Jun 10, 2019
Set ADB in MacOS
View .zshrc
export ANDROID_HOME=/Users/$USER/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
@rosuH
rosuH / CGFontRenderingFontSmoothingDisabled.sh
Created Jun 10, 2019
CGFontRenderingFontSmoothingDisabled For VSCode in Macos
View CGFontRenderingFontSmoothingDisabled.sh
defaults write com.microsoft.VSCode.helper CGFontRenderingFontSmoothingDisabled -bool NO
@rosuH
rosuH / ripple.xml
Last active Jun 14, 2019
[Android ripple]
View ripple.xml
android:background="?android:attr/selectableItemBackground"
android:background="?android:attr/selectableItemBackgroundBorderless"
<!--long Press-->
android:foreground="?attr/selectableItemBackgroundBorderless"
@rosuH
rosuH / KeyboardSwap.sh
Created May 22, 2019
[Keepass2Android KeyboardSwap] #KeyboardSwap #Keepass2Android
View KeyboardSwap.sh
adb shell pm grant keepass2android.plugin.keyboardswap2 android.permission.WRITE_SECURE_SETTINGS
@rosuH
rosuH / .gitignore
Created Feb 9, 2019
Android git ignore
View .gitignore
# Built application files
*.apk
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
View DateFormatterInJava8.java
import java.util.*;
import java.text.*;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
public class DateDemo {
public static void main(String args[]) {
Date dNow = new Date("Tue, 05 Feb 2019 00:00:00 GMT");
You can’t perform that action at this time.