Skip to content

Instantly share code, notes, and snippets.

View demonar's full-sized avatar
😄
(¯`•._.•«<ÐêMøN>»•._.•´¯) -> Building mobile apps with Kotlin and Swift

Alejandro Moya demonar

😄
(¯`•._.•«<ÐêMøN>»•._.•´¯) -> Building mobile apps with Kotlin and Swift
View GitHub Profile
@ntkachov
ntkachov / SkitchVersionChecker.java
Last active December 27, 2015 09:59
Gist to check if Skitch is installed and supports the Action_Edit intent
public class SkitchVersionChecker {
private static final String SKITCH_PACKAGE = "com.evernote.skitch";
private static final String TAG = "Skitch Checker";
/**Build the intent to send to send the edit intent to skitch.
* If Skitch is not installed or isn't up to date, it will take
* the user to the market and ask them to install skitch.
* @param context expects an activity context (not an application context)
@laaptu
laaptu / main_bg.xml
Created June 4, 2014 04:35
Drop shadow box i.e. shape with drop shadows
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Drop Shadow Stack -->
<item>
<shape>
<corners android:radius="10dp" />
<padding
android:bottom="1dp"
@demonar
demonar / ReactiveQuickHelp.swift
Last active December 12, 2017 22:54
Reactive cocoa in swift 3/4
//Always import
import ReactiveCocoa //Cocoa extensions
import ReactiveSwift //primitives
//Acces UI extensions with .reactive
self.textField.reactive.
//A text listener in a textfield
// self.reactive.lifetime will make the listener to expire on dealloc
@kdembler
kdembler / apfsbug.md
Last active June 15, 2024 22:44
Fix League of Legends client not launching after champion select on macOS

The issue

After fresh install of League of Legends on macOS with case-sensitive APFS volume it's not possible to start League of Legends game, after champion selection the launcher won't open the game client and is stuck with reconnect button.

Solution

Terminal method is probably more reliable as you can see real file names within terminal opposite to Finder which "beautifies" them so you can't be sure what the actual file name is.

Note that League patcher will probably install updates under old filename so it's possible that these steps will need to be taken after every patch until Riot fixes it.

Terminal.app

  1. Open Terminal.app from Applications
  2. Browse to League contents with cd /Applications/League of Legends.app/Contents/LoL/RADS/solutions/lol_game_client_sln/releases/
@johnwgillis
johnwgillis / How to setup GPG for git.md
Last active April 22, 2024 17:13
How to setup GPG for signing commits with Git, SourceTree, and GitHub on Mac

How to setup GPG for signing commits with Git, SourceTree, and GitHub on Mac

  1. Install GPG tools
    1. Install GPG tools and setup pin entry by running:
    brew install gnupg pinentry-mac
    mkdir -m 700 -p ~/.gnupg
    echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
    killall gpg-agent