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
from setuptools.dist import Distribution | |
import os | |
class GradleDistribution(Distribution, object): | |
"""The Python to Gradle bridge.""" | |
#: The name of the requirements file generated by pygradle. | |
PINNED_TXT = 'pinned.txt' |
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
apply plugin: 'python-sdist' | |
dependencies { | |
python 'pypi:Werkzeug:0.7', | |
python 'pypi:Jinja2:2.4', | |
python 'pypi:itsdangerous:0.21', | |
python 'pypi:click:2.0' | |
} |
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
apply plugin: 'python-sdist' | |
dependencies { | |
python 'pypi:Werkzeug:0.7', | |
python 'pypi:Jinja2:2.4', | |
python 'pypi:itsdangerous:0.21', | |
python 'pypi:click:2.0' | |
} |
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
echo | |
echo -en "( º_º) ┬─┬ \r" | |
sleep .5 | |
echo -en " ( º_º) ┬─┬ \r" | |
sleep .5 | |
echo -en " ( ºДº)┬─┬ \r" | |
sleep .5 | |
echo -en " (╯'Д')╯︵⊏ \r" | |
sleep .5 | |
echo -en " (╯'□')╯︵ ⊏ \r" |
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
package com.example | |
import groovy.util.logging.Slf4j | |
import org.springframework.boot.SpringApplication | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration | |
import org.springframework.context.ApplicationContext | |
import org.springframework.context.annotation.ComponentScan | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.context.annotation.Import | |
import org.springframework.web.servlet.config.annotation.EnableWebMvc |
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 org.gradle.platform.* | |
interface CustomLanguageSourceSet extends LanguageSourceSet {} | |
interface SampleComponent extends ComponentSpec {} | |
interface SampleBinary extends BinarySpec {} | |
class DefaultCustomLanguageSourceSet extends BaseLanguageSourceSet implements CustomLanguageSourceSet {} | |
class DefaultSampleBinary extends BaseBinarySpec implements SampleBinary {} | |
class DefaultSampleComponent extends BaseComponentSpec implements SampleComponent {} |
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
apply plugin: 'java' | |
apply plugin: 'idea' | |
def imlName = name + (hasProperty('generate12') ? '.ij12' : '.ij13') | |
idea { | |
module { | |
name = imlName | |
} | |
} |
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
org.gradle.parallel=true | |
org.gradle.configureondemand=true | |
org.gradle.daemon=true |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.3' | |
} | |
} | |
sourceCompatibility = JavaVersion.VERSION_1_6 |
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
public class RootActivity extends SherlockFragmentActivity implements ActionBar.TabListener { | |
static private Fragment listOfFragments[]; | |
private static final String TAG = RootActivity.class.getName(); | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
if (savedInstanceState == null) { |