- Don't criticize, condemn, or complain.
- Give honest and sincere appreciation.
- Arouse in the other person an eager want.
- Never show others that you are not interested in what they have to say.
This file contains hidden or 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
| /** | |
| * Checkstyle tasks | |
| * Usage: | |
| * - place this file under root dir of your project at /gradle directory | |
| * - apply script from your gradle file: | |
| * apply from : "{rootDir}/gradle/checkstyle.gradle" | |
| * | |
| * To configure checkstyle use configs at: | |
| * "{rootDir}/config/checkstyle/checkstyle.xml" - for main projects | |
| * "{rootDir}/config/checkstyle/checkstyle-test.xml" - for tests |
This file contains hidden or 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> | |
| <style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light"> | |
| <item name="android:windowNoTitle">true</item> | |
| <item name="windowActionBar">false</item> <!-- For 2.x version --> | |
| </style> | |
| </resources> |
This file contains hidden or 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.derekstavis; | |
| public class DigitalClock extends TextView { | |
| private int hours; | |
| private int minutes; | |
| private int seconds; | |
| private Timer clockTimer; | |
| private final TimerTask clockTask = new TimerTask() { | |
| @Override |
This file contains hidden or 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.annotation.TargetApi; | |
| import android.content.Context; | |
| import android.graphics.Matrix; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Build; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| /** | |
| * Created by chris on 7/27/16. |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| /* | |
| * MCrypt API available online: | |
| * http://linux.die.net/man/3/mcrypt | |
| */ | |
| #include <mcrypt.h> |
It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.
I've also compiled a list of countries
NewerOlder