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
//Rates | |
rate "128000" | |
cl_cmdrate "128" // Set to 66 if your FPS dips below 100. | |
cl_updaterate "128" // Set to 66 if your FPS dips below 100. | |
cl_interp "0.0" // cl_interp_ratio / cl_updaterate = cl_interp. | |
cl_interp_all "0" // Disable all interpolate optimizations. When set to "0" the optimisation is run and only the set of entities that need interpolation are considered. When set to "1" (or any non-zero value) the old behaviour is run, where every entity the client knows about is considered for interpolation. | |
cl_interp_ratio "1" | |
cl_interpolate "1" | |
cl_lagcomp_errorcheck "1" |
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
violin | |
base: 18sm (full length) | |
height width radius | |
opx px mm sm opx px mm sm px mm sm | |
256 0 0 0 top top | |
786 530 87.3 8.7 839 39 6.4 0.6 119,5 19.7 2 | |
870 614 101.1 10.1 985 185 30.5 3 39.5 6.5 0.7 | |
924 668 110 11 932 132 21.7 2.2 21.5 3.5 0.4 | |
1017 761 125.3 12.5 952 152 25 2.5 34 5.5 6 |
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
folder | actual size | ratio | |
--------|-------------|------- | |
ldpi | 24 | 0.75 | |
mdpi | 32 | 1 | |
hdpi | 48 | 1.5 | |
xhdpi | 64 | 2 | |
xxhdpi | 96 | 3 | |
and for the drawer: |
- types
- operators
- core objects
- methods
JavaScrip doesn't have classes. Class functionality is accomplished by object prototypes. Functions are objects - they can be passed arround.
Type structure:
- Number
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
new Handler(Looper.getMainLooper()).post(new Runnable() { | |
@Override | |
public void run() { | |
findViewById(R.id.btnLogin).setVisibility(View.VISIBLE); | |
findViewById(R.id.layoutTwitter).setVisibility(View.GONE); | |
} | |
}); |
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
public static boolean isWifiOrMobileActive(Activity activity) { | |
ConnectivityManager connectivityManager = (ConnectivityManager) activity | |
.getSystemService(Context.CONNECTIVITY_SERVICE); | |
NetworkInfo[] networkInfos = connectivityManager.getAllNetworkInfo(); | |
for (NetworkInfo networkInfo : networkInfos) { | |
if (networkInfo.getTypeName().equalsIgnoreCase("WIFI")) | |
if (networkInfo.isConnected()) | |
return true; | |
if (networkInfo.getTypeName().equalsIgnoreCase("MOBILE")) | |
if (networkInfo.isConnected()) |
public static boolean isNetworkAvailable(Activity activity) {
ConnectivityManager connectivityManager
= (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
return activeNetworkInfo != null && activeNetworkInfo.isConnected();
}
Note that having an active network interface doesn't guarantee that a particular networked service is available. Networks issues, server downtime, low signal, captive portals, content filters and the like can all prevent your app from reaching a server.
NewerOlder