This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"theme": { | |
"backgroundImage": "https://www.dropbox.com/scl/fi/i4mx00cfoq5uittzd6aom/gradient.jpg?rlkey=ji6ax4so2kzgfmvd221siqn68&dl=1", | |
"faviconColor": "#86A8E7" | |
}, | |
"config": { | |
"faviconService": "https://www.google.com/s2/favicons?domain=$u", | |
"systemShortcuts": [ | |
{ | |
"hotKey": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop Catalina verifying file at startup time | |
sudo xattr -dr com.apple.quarantine /Applications/AppName.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Restore attribute from unzipped files | |
# When Finder unzip files it marks them as in "quarantine" | |
# so we restore the correct permission | |
xattr -dr com.apple.quarantine $1 | |
# remove execute attribute | |
# chmod -x $(git ls-files --modified) |
This is an abstract from carbonfive post blogs
Pull master branch
git pull origin master
Create bug/feature branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Work only at file declaration level | |
// @file:Suppress("MaximumLineLength", "MaxLineLength") | |
package com.ternaryop.photoshelf.activity | |
import android.webkit.WebView | |
class MaximumLineLength { | |
@Suppress("MaximumLineLength", "MaxLineLength") | |
fun dummyFunction(view: WebView) { | |
view.loadUrl("javascript:var img = document.querySelector('img');dimRetriever.setDimensions(img.width, img.height)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.core.Context; | |
import javax.ws.rs.core.MediaType; | |
import javax.ws.rs.core.Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# Run klint (https://github.com/shyiko/ktlint) and then write the result to logcat | |
# The file names are clickeable from Android Studio | |
tag_name="klint" | |
tmpfile=$(mktemp) | |
chmod +x $tmpfile | |
dquote='"' | |
ktlint "app/src/**/*kt" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.graphics.Matrix; | |
import android.graphics.drawable.Drawable; | |
import android.os.Build; | |
import android.util.AttributeSet; | |
import android.widget.ImageView; | |
/** | |
* Created by chris on 7/27/16. |
Apple rules described here require "keywords before all arguments", to find them in your code use the following regular expression
^[+-]\s+\(.*?\).*:\s?\(.*?\).*?\s+:
NewerOlder