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
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb | |
index fbcd58d..2491aa5 100644 | |
--- a/app/views/devise/sessions/new.html.erb | |
+++ b/app/views/devise/sessions/new.html.erb | |
@@ -1,7 +1,7 @@ | |
<% content_for :form_block do %> | |
<div class="mb-4 text-center"> | |
<h2 class="mb-px"><%= t('.sign_in') %></h2> | |
- <%= t ".sign_up_html", link: link_to("sign up for an account", new_registration_path(resource_name), class: "font-semibold") %> | |
+ <%#= t ".sign_up_html", link: link_to("sign up for an account", new_registration_path(resource_name), class: "font-semibold") %> |
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
class Pokus { | |
} |
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
monkeyrunner snapshot.py $1 |
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
# how to run: monkerunner snapshot.py [filename] | |
import datetime, sys | |
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice | |
if len(sys.argv) > 1: | |
filename = sys.argv[1] | |
if not filename.endswith(".png"): | |
filename = "%s.png" % filename | |
else: | |
now = datetime.datetime.now() |
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
int maxWidth = viewHolder.viewGroup.getWidth(); | |
TextPaint textPaint = viewHolder.titleView.getPaint(); | |
String title = cursor.getString(ArticlesQuery.TITLE); | |
int chars = textPaint.breakText(title, true, maxWidth, null); | |
if (chars < title.length()) { | |
title = title.substring(0, chars); | |
} | |
viewHolder.titleView.setText(title); |
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
<TextView android:text="martinadamek.com" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
style="?bigLabel"/> |
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
<style name="Theme.Themeswitch.Light" parent="android:style/Theme.Light"> | |
<item name="bigLabel">@style/ShadowedLabel.Light</item> | |
</style> | |
<style name="Theme.Themeswitch.Black" parent="android:style/Theme.Black"> | |
<item name="bigLabel">@style/ShadowedLabel.Black</item> | |
</style> | |
<style name="ShadowedLabel"> | |
<!-- all the common properties --> |
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
<resources> | |
<attr name="bigLabel" format="reference" /> | |
</resources> |
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
<instrumentation | |
android:name="android.test.InstrumentationTestRunner" | |
android:targetPackage="my.project.using.library" | |
android:label="Tests for my.library.project"/> |
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
void increaseCtr(List<AdSpec.Parameter> params) { | |
String countryCode = Locale.getDefault().getCountry(); | |
params.add(new Parameter("gl", countryCode)); | |
} |