Skip to content

Instantly share code, notes, and snippets.

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")
:app:compileDebugJava
Executing task ':app:compileDebugJava' (up-to-date check took 0.02 secs) due to:
Input file /AndroidStudioProjects/CompileJavaTest/app/src/main/java/compilejavatest/E.java has changed.
:app:compileDebugJava - is not incremental. Unable to infer the source directories.
Compiling with JDK Java compiler API.
Class dependency analysis for incremental compilation took 0.031 secs.
Created jar classpath snapshot for incremental compilation in 0.032 secs.
Written jar classpath snapshot for incremental compilation in 0.005 secs.
:app:compileDebugJava (Thread[main,5,main]) completed. Took 1.664 secs.
+++ 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
import rx.Observable;
import rx.schedulers.Schedulers;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.concurrent.CountDownLatch;
/**
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