Skip to content

Instantly share code, notes, and snippets.

+++ b/azimov/azimov.iml
@@ -36,8 +36,6 @@
<option name="RUN_PROCESS_RESOURCES_MAVEN_TASK" value="true" />
<option name="GENERATE_UNSIGNED_APK" value="false" />
<option name="CUSTOM_DEBUG_KEYSTORE_PATH" value="" />
- <option name="PACK_TEST_CODE" value="false" />
- <resOverlayFolders />
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
requestWindowFeature(Window.FEATURE_NO_TITLE);
@lintonye
lintonye / README.md
Created November 17, 2012 00:53 — forked from jondkinney/README.md
Deploying Rails to Linode

Deploying Rails to Linode

Installing Ruby Enterprise Edition, Apache, MySQL, and Passenger for deploying Rails 3.0 applications.

Get a Linode, and set it up with Ubuntu 12.04 LTS so that you have till 2017 to get updates. Once the Linode is formatted, boot it and continue on.

Set up an 'A' record in your DNS, pointing to the IP of your Linode. I'm using demo.napcs.com here.

Initial setup

@lintonye
lintonye / flickr.rb
Created November 29, 2012 04:51
app script: flickr
def brick
app = App.new.config do
app_name 'Flickr'
package_name 'com.jimulabs.flickr'
end
app.add_part flickr = Flickr.new
photo_viewer = Screen.new('PhotoViewer') do
add_parts img = ImageView.new
args :photo_id=>:int
end
com.jimulabs.layoutpreview.model.test.MetaNodeFactoryTest > should_convert_screen_file_to_correct_model FAILED
java.lang.AssertionError at MetaNodeFactoryTest.java:41
com.jimulabs.layoutpreview.model.test.MetaNodeFactoryTest > should_create_list_of_screens_from_valid_meta_dir FAILED
java.lang.AssertionError at MetaNodeFactoryTest.java:145
com.jimulabs.layoutpreview.model.test.ResourceDirModelTest > should_return_all_parsed_screens FAILED
org.junit.ComparisonFailure at ResourceDirModelTest.java:66
42 tests completed, 3 failed
@lintonye
lintonye / gist:6630798
Created September 19, 2013 22:35
Error when assets are used
09-19 15:30:53.451 1331-1345/com.jimulabs.mirror I/AdbResourceReceiver﹕ pack changed: 8 path=jimu.zip
09-19 15:30:53.495 1331-1334/com.jimulabs.mirror D/dalvikvm﹕ GC_CONCURRENT freed 325K, 7% free 5450K/5816K, paused 2ms+1ms, total 5ms
09-19 15:30:53.515 1331-1331/com.jimulabs.mirror I/ExternalResourcesActivity﹕ External APK location: /data/data/com.jimulabs.mirror/files/com.jimulabs.customfont/resources.ap_
09-19 15:30:53.515 1331-1331/com.jimulabs.mirror I/ExternalResourcesActivity﹕ Exists? true
09-19 15:30:53.515 1331-1331/com.jimulabs.mirror I/ExternalResourcesActivity﹕ Size: 551637
09-19 15:30:53.515 1331-1331/com.jimulabs.mirror I/ExternalResourcesActivity﹕ Setup custom AssetManager
09-19 15:30:53.515 1331-1331/com.jimulabs.mirror I/ExternalResourcesActivity﹕ Setup custom Resources
09-19 15:30:53.515 1331-1331/com.jimulabs.mirror I/dalvikvm﹕ DexOpt: source file mod time mismatch (523b7aef vs 523b7b1d)
09-19 15:30:53.515 1331-1331/com.jimulabs.mirror D/dalvikvm﹕ ODEX file is st
@lintonye
lintonye / gist:8324716
Last active January 2, 2016 15:39
aapt -u flag does not seem to have any effect
> time $ANDROID_HOME/build-tools/android-4.4/aapt p -v -M AndroidManifest.xml \
-S res/ \
-F resources.ap_ \
-I $ANDROID_HOME/platforms/android-19/android.jar
...
real 0m15.602s
user 0m49.074s
sys 0m1.695s
2014-10-22 12:07:32,613 [1585677] INFO - .BaseProjectImportErrorHandler - Failed to import Gradle project at '......'
org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-2.1-all.zip'.
at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:107)
at org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:36)
at org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:40)
at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:98)
at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:81)
at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActio
@lintonye
lintonye / skyscanner-workshop
Created October 27, 2014 06:33
Building Android layouts with Mirror -- Skyscanner
#Building Android layouts with Mirror
##Target audience
Android UI designers and beginner developers interested in UI
##Why?
The line between a designer and a developer is blurring. To be good at either UI design or development requires a good understanding of both worlds. This course attempts to teach designers the most important elements in developing a modern Android UI, helping them understand the power and constraints of Android and a big picture of UI development.
##Prerequisites
- Some familiarity with XML
- Experience in designing UI for Android apps is a plus
- Coding background isn't required
- Bring a laptop with Android Studio, Android SDK and jimu Mirror properly installed (see "0. Environment setup")
@lintonye
lintonye / skyscanner-workshop
Last active August 29, 2015 14:08
Building Android layouts with Mirror -- Skyscanner
#Building Android layouts with Mirror
##Target audience
Android UI designers and beginner developers interested in UI
##Why?
The line between a designer and a developer is blurring. To be good at either UI design or development requires a good understanding of both worlds. This course attempts to teach designers the most important elements in developing a modern Android UI, helping them understand the power and constraints of Android and a big picture of UI development.
##Prerequisites
- Some familiarity with XML
- Experience in designing UI for Android apps is a plus
- Coding background isn't required
- Bring a laptop with Android Studio, Android SDK and jimu Mirror properly installed (see "0. Environment setup")