Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
- No Linting
Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
| Africa/Abidjan | |
| Africa/Accra | |
| Africa/Addis_Ababa | |
| Africa/Algiers | |
| Africa/Asmara | |
| Africa/Asmera | |
| Africa/Bamako | |
| Africa/Bangui | |
| Africa/Banjul | |
| Africa/Bissau |
| /** | |
| * This hook overrides a function check at runtime. Currently, cordova-android 7+ incorrectly detects that we are using | |
| * an eclipse style project. This causes a lot of plugins to fail at install time due to paths actually being setup | |
| * for an Android Studio project. Some plugins choose to install things into 'platforms/android/libs' which makes | |
| * this original function assume it is an ecplise project. | |
| */ | |
| module.exports = function(context) { | |
| if (context.opts.cordova.platforms.indexOf('android') < 0) { | |
| return; | |
| } |
| For Android: | |
| Manually change it in android/app/src/main/java/com/PROJECT_NAME/MainActivity.java: | |
| package MY.APP.ID; | |
| In android/app/src/main/java/com/PROJECT_NAME/MainApplication.java: | |
| package MY.APP.ID; | |
| In android/app/src/main/AndroidManifest.xml: | |
| package="MY.APP.ID" |
| import com.sun.net.httpserver.Filter; | |
| import com.sun.net.httpserver.HttpExchange; | |
| import com.sun.net.httpserver.HttpHandler; | |
| import com.sun.net.httpserver.HttpServer; | |
| import java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.InetSocketAddress; | |
| import java.util.Arrays; | |
| import java.util.List; |
| public class MainActivity | |
| extends RealmActivity { | |
| Post post; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| ActivityMainBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_main); | |
| post = realm.where(Post.class).equalTo("id", 1L).findFirst(); |
| /** | |
| * SimpleRVAdapter to quickly get started with simple Lists in Recyclerview | |
| * | |
| * Usage: | |
| * | |
| * RecyclerView rv = (RecyclerView)findViewById(R.id.rv); | |
| * rv.setLayoutManager(new LinearLayoutManager(getContext())); | |
| * rv.setAdapter(new SimpleRVAdapter(new String[] {"1", "2", "3", "4", "5", "6", "7"})); | |
| * | |
| * @author Sheharyar Naseer |
| @Parcel(implementations = { CountryRealmProxy.class }, | |
| value = Parcel.Serialization.FIELD, | |
| analyze = { Country.class }) | |
| public class Country extends RealmObject { | |
| @ParcelPropertyConverter(RealmListParcelConverter.class) | |
| public RealmList<RealmString> languages; | |
| } | |
| public class RealmListParcelConverter | |
| implements TypeRangeParcelConverter<RealmList<? extends RealmObject>, |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapShader; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import com.squareup.picasso.Transformation; | |
| public class CircleTransform implements Transformation { | |
| private final int BORDER_COLOR = Color.WHITE; |