-
Create New Project
-
Select Java and Web from the Option
-
You will be asked to provide GroupID and ArtifactID
- GroupID: it will identify your project uniquely across all projects. (E.g. com.project.model | com.project.plugins)
| /** | |
| * System configuration | |
| */ | |
| (function (global) { | |
| System.config({ | |
| paths: { | |
| // paths serve as alias | |
| 'npm:': 'node_modules/' | |
| }, | |
| // map tells the System loader where to look for things |
| type SharedWithInviteRequest { | |
| ........ | |
| createdDate: RateLimiting | |
| } | |
| // in order to write a message, I must first make an entry in users/${uid}/rate_limiting/{feature} is Number | |
| // additionally, that message must be within 500ms of now, which means I can't | |
| // just re-use the same one over and over, thus, we've effectively required messages | |
| // to be 5 seconds apart | |
| type RateLimiting extends Number { |
| //author: laoyur | |
| //inspired of http://stackoverflow.com/a/31021154 | |
| package com.laoyur.test; | |
| import java.util.List; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.graphics.Rect; | |
| import android.os.Bundle; | |
| import android.view.MotionEvent; | |
| import android.view.View; |
| package codepath.com.recyclerviewfun; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class Contact { | |
| private String mName; | |
| private boolean mOnline; | |
| public Contact(String name, boolean online) { |
My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.
My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion.
I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.
| package im.ene.lab.android.widgets; | |
| import android.content.Context; | |
| import android.graphics.PorterDuff; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Build; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.design.widget.TabLayout; | |
| import android.util.AttributeSet; |
| @Override | |
| public boolean onPrepareOptionsMenu(Menu menu) { | |
| MenuItem settingsMenuItem = menu.findItem(R.id.action_settings); | |
| SpannableString s = new SpannableString(settingsMenuItem.getTitle()); | |
| s.setSpan(new ForegroundColorSpan(yourColor), 0, s.length(), 0); | |
| settingsMenuItem.setTitle(s); | |
| return super.onPrepareOptionsMenu(menu); | |
| } |
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2015 Circle Internet Financial | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |