One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/usr/bin/racket | |
#lang racket | |
(define sum | |
(lambda (x) | |
(if (null? x) | |
0 | |
(if (cons? x) | |
(if (number? (car x)) | |
(+ (car x) (sum (cdr x))) | |
(+ (sum (car x)) (sum (cdr x)))) |
<TextView | |
android:width="match_parent" | |
android:height="match_parent" | |
android:text="Hello world!" | |
/> |
public class EmptyActivity extends AppCompatActivity { | |
@Override protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
} | |
} |
@RunWith(AndroidJUnit4.class) public class FragmentTest { | |
// Setup an ActivityTestRule as such that the Activity is not launched until we say so | |
@Rule public ActivityTestRule<EmptyActivity> rule = | |
new ActivityTestRule<>(EmptyActivity.class, true, false); | |
private Fragment fragment; | |
private EmptyActivity activity; | |
@Before public void setup() { |
@RunWith(AndroidJUnit4.class) public class FragmentTest { | |
// Setup an ActivityTestRule as such that the Activity is not launched until we say so | |
@Rule public ActivityTestRule<EmptyActivity> rule = | |
new ActivityTestRule<>(EmptyActivity.class, true, false); | |
private Fragment fragment; | |
private EmptyActivity activity; | |
@Before public void setup() { |
<FrameLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/fragment" | |
android:name="whatever.here.MainFragment" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:layout="@layout/fragment_main" | |
/> |
gac() { git add -A && git commit -m "$*" && git push; } |
# Deletes local branches if they don't exist on the remote | |
alias prune=`git fetch --prune --all && git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d` |
(ns flyr.core) | |
(defn fib [n] | |
(if (= 0 n) | |
0 | |
(if (= 1 n) | |
1 | |
(+ (fib (- n 1)) (fib (- n 2)))))) | |
(defn -main |