System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
#include <iostream> | |
using namespace std; | |
template<typename T> | |
class Stack { | |
private: | |
T* elements; | |
int top; | |
int size; |
/* only here as a reference, these values are the hardcoded defaults */ | |
{ | |
"lang": "한국어", | |
"details": "자세히", | |
"list": "목록", | |
"grid": "그리드", | |
"icons": "아이콘", | |
"name": "파일명", | |
"lastModified": "최근수정일", | |
"size": "크기", |
public class Singletone { | |
private static Singletone instance = null; | |
protected Singletone() { | |
//to prohibit instantiation. | |
} | |
public static Singletone getInst() { | |
if(instance == null) { | |
instance = new Singletone(); |
# -*- coding: UTF-8 -*- | |
import argparse | |
import os | |
import shlex | |
import subprocess | |
import sys | |
def main(argv): | |
chunks = 0 |
#define AppId "{INSERT HERE YOUR GUID}" | |
#define AppName "My App" | |
#define AppVersion "1.7" | |
[CustomMessages] | |
english.NewerVersionExists=A newer version of {#AppName} is already installed.%n%nInstaller version: {#AppVersion}%nCurrent version: | |
[Code] | |
// find current version before installation | |
function InitializeSetup: Boolean; | |
var Version: String; |
<VirtualHost *:80> | |
ServerName example.com | |
ServerAdmin hello@example.com | |
ProxyRequests Off | |
ProxyPreserveHost On | |
<Proxy *> | |
Order deny,allow | |
Allow from all |
public static class ExceptionParser { | |
private final ResponseBody body; | |
private final String bodyString; | |
private final Converter.Factory converterFactory; | |
public ExceptionParser(Response response, Converter.Factory converterFactory) { | |
this.converterFactory = converterFactory; | |
this.body = cloneResponseBody(response.errorBody()); | |
this.bodyString = getBodyAsString(body); | |
} |
System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
@Override | |
public boolean dispatchTouchEvent(MotionEvent ev) { | |
final Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.fragment_container); | |
if (fragment instanceof IDispatchTouchEvent) | |
return ((IDispatchTouchEvent) fragment).dispatchTouchEvent(ev) || super.dispatchTouchEvent(ev); | |
return super.dispatchTouchEvent(ev); | |
} |
##git mergetool
In the middle file (future merged file), you can navigate between conflicts with ]c
and [c
.
Choose which version you want to keep with :diffget //2
or :diffget //3
(the //2
and //3
are unique identifiers for the target/master copy and the merge/branch copy file names).
:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)