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
var mainFile = process.argv[2]; | |
var fs = require('fs'); | |
var route_regex = /\#.+\[\/(.+)\]/; | |
var method_regex = /\#*\s*(.+)\s*\[(\w+)\]/; | |
var file = fs.readFileSync(mainFile).toString().split("\n"); | |
var url = ""; |
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
(?:https?:\/\/)?(?:www\.)?youtu\.?be(?:\.com)?\/?.*(?:watch|embed)?(?:.*v=|v\/|\/)([\w\-_]+)\&? |
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
cd /tmp | |
pwd | |
#Download Android SDK from Google and unzip it | |
wget http://dl.google.com/android/android-sdk_r24.1.2-linux.tgz | |
tar zxvf android-sdk_r24.1.2-linux.tgz | |
rm android-sdk_r24.1.2-linux.tgz | |
#Set extracted SDK location to $PATH so we can use commands | |
export ANDROID_HOME="/tmp/android-sdk-linux" | |
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH" |
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
wget http://dl.google.com/android/android-sdk_r24.3-linux.tgz | |
tar xvzf android-sdk_r24.3-linux.tgz | |
rm android-sdk_r24.3-linux.tgz | |
export ANDROID_HOME=$PWD/android-sdk-linux | |
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH" | |
echo "y" | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-22.0.1,android-22,extra-google-m2repository,extra-google-google_play_services,extra-android-support,139 | |
cd - | |
touch local.properties | |
echo "sdk.dir=$ANDROID_HOME" >> local.properties | |
# ./gradlew clean |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- This file is just to simplify the font usage.--> | |
<string name="sans_serif" translatable="false">sans-serif</string> | |
<string name="sans_serif_light" translatable="false">sans-serif-light</string> | |
<string name="sans_serif_thin" translatable="false">sans-serif-thin</string> | |
<string name="sans_serif_condensed" translatable="false">sans-serif-condensed</string> | |
<string name="sans_serif_medium" translatable="false">sans-serif-medium</string> | |
<string name="sans_serif_black" translatable="false">sans-serif-black</string> |
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.ArrayList; | |
import java.util.List; | |
public class Stack<T> { | |
private List<T> list = new ArrayList<>(); | |
public boolean isEmpty() { | |
return list.isEmpty(); | |
} |
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.github.brunodles.toastespresso; | |
import android.support.test.rule.ActivityTestRule; | |
import android.support.test.runner.AndroidJUnit4; | |
import android.test.suitebuilder.annotation.LargeTest; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; |
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.github.brunodles.toastespresso; | |
import android.support.test.rule.ActivityTestRule; | |
import android.support.test.runner.AndroidJUnit4; | |
import android.test.suitebuilder.annotation.LargeTest; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; |
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.jetbrains.spek.api.Spek | |
import kotlin.test.assertEquals | |
import kotlin.test.assertFalse | |
import kotlin.test.assertNull | |
import kotlin.test.assertTrue | |
/** | |
* Created by bruno on 10/03/16. | |
*/ |
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.support.v4.view.PagerAdapter; | |
import android.view.View; | |
import android.view.ViewGroup; | |
public abstract class ViewPagerAdapter extends PagerAdapter { | |
@Override | |
public Object instantiateItem(ViewGroup container, int position) { |
OlderNewer