This file contains 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
apiVersion: apps/v1beta1 | |
kind: StatefulSet | |
metadata: | |
name: {{ template "fullname" . }} | |
namespace: "{{ .Values.namespace }}" | |
labels: | |
chart: "chartNameVersion" | |
spec: | |
serviceName: {{ template "fullname" . }} | |
replicas: {{ .Values.replicaCount }} |
This file contains 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
apiVersion: apps/v1beta1 | |
kind: StatefulSet | |
metadata: | |
name: {{ template "fullname" . }} | |
namespace: "{{ .Values.namespace }}" | |
labels: | |
chart: "chartNameVersion" | |
spec: | |
serviceName: {{ template "fullname" . }} | |
replicas: {{ .Values.replicaCount }} |
This file contains 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
hello |
This file contains 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
allprojects { | |
repositories { | |
jcenter() | |
flatDir { | |
dirs 'libs' | |
} | |
} | |
} | |
dependencies { |
This file contains 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
android { | |
compileSdkVersion 22 | |
buildToolsVersion "22.0.1" | |
defaultConfig { | |
applicationId "com.company.app" | |
minSdkVersion 13 | |
targetSdkVersion 21 | |
versionCode 14 // increment with every release | |
versionName '1.4.8' // change with every release | |
setProperty("archivesBaseName", "MyCompany-MyAppName-$versionName") |
This file contains 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
.center-align-vertically { | |
position: absolute; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
This file contains 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
on run {input, parameters} try | |
tell application "Finder" to set the clipboard to POSIX path of (target of window 1 as alias) | |
on error | |
beep | |
end try return input end run |
This file contains 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
buildTypes { | |
release { | |
//... | |
applicationVariants.all { variant -> | |
variant.outputs.each { output -> | |
output.outputFile = new File( | |
output.outputFile.parent, | |
output.outputFile.name.replace("app-release.apk", "YOURAPPNAME-${variant.versionName}.apk")) | |
} | |
} |
This file contains 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 JSONObject convertKeyValueToJSON(LinkedTreeMap<String, Object> ltm) { | |
JSONObject jo=new JSONObject(); | |
Object[] objs = ltm.entrySet().toArray(); | |
for (int l=0;l<objs.length;l++) | |
{ | |
Map.Entry o= (Map.Entry) objs[l]; | |
try { | |
if (o.getValue() instanceof LinkedTreeMap) | |
jo.put(o.getKey().toString(),convertKeyValueToJSON((LinkedTreeMap<String, Object>) o.getValue())); | |
else |
This file contains 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
// copied from : | |
// http://stackoverflow.com/a/17492949/305135 | |
public static class UacHelper | |
{ | |
private const string uacRegistryKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"; | |
private const string uacRegistryValue = "EnableLUA"; | |
private static uint STANDARD_RIGHTS_READ = 0x00020000; | |
private static uint TOKEN_QUERY = 0x0008; |
NewerOlder