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
#!/usr/bin/env groovy | |
import groovy.sql.Sql | |
def sql = Sql.newInstance("jdbc:mysql://localhost/statistics", "user", | |
"password", "com.mysql.jdbc.Driver") | |
File f = new File("."); | |
f.eachDir { dir -> | |
dir.eachFile { file -> |
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
import smtplib, os | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEBase import MIMEBase | |
from email.MIMEText import MIMEText | |
from email.Utils import COMMASPACE, formatdate | |
from email import Encoders | |
def send_mail(send_from, send_to, subject, text, files=[], server="localhost"): | |
assert type(send_to)==list | |
assert type(files)==list |
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
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.0' | |
} | |
} |
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
buildscript { | |
repositories { | |
jcenter() | |
maven { | |
url "https://plugins.gradle.org/m2/" | |
} | |
} | |
dependencies { | |
classpath 'com.moowork.gradle:gradle-node-plugin:0.13' |
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
### Keybase proof | |
I hereby claim: | |
* I am madmas on github. | |
* I am madmas (https://keybase.io/madmas) on keybase. | |
* I have a public key ASAYc09Ts8YC7hJoDLTCeyudVaHIaAkKWy_eL7o8yoNLZgo | |
To claim this, I am signing this object: |
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
# Show timestamp whan a command was issued on the right prompt | |
RPROMPT='[%D{%f.%m. %H:%M:%S}]' | |
TMOUT=1 | |
TRAPALRM() { | |
zle reset-prompt | |
} | |
# inspired by https://stackoverflow.com/questions/13125825/zsh-update-prompt-with-current-time-when-a-command-is-started |
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
07-14 22:33:12.270 4836 4836 E AndroidRuntime: com.tns.NativeScriptException: Calling js method onStart failed | |
07-14 22:33:12.270 4836 4836 E AndroidRuntime: Error: java.lang.NoSuchMethodError: no static method "Landroid/view/View;.setPadding(IIII)V" | |
07-14 22:33:12.270 4836 4836 E AndroidRuntime: at com.tns.Runtime.callJSMethodNative(Native Method) | |
07-14 22:33:12.270 4836 4836 E AndroidRuntime: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1286) | |
07-14 22:33:12.270 4836 4836 E AndroidRuntime: at com.tns.Runtime.callJSMethodImpl(Runtime.java:1173) | |
07-14 22:33:12.270 4836 4836 E AndroidRuntime: at com.tns.Runtime.callJSMethod(Runtime.java:1160) | |
07-14 22:33:12.270 4836 4836 E AndroidRuntime: at com.tns.Runtime.callJSMethod(Runtime.java:1138) | |
07-14 22:33:12.270 4836 4836 E AndroidRuntime: at com.tns.Runtime.callJSMethod(Runtime.java:1134) | |
07-14 22:33:12.270 4836 4836 E AndroidRuntime: at com.tns.NativeScriptActivity.onStart(NativeScriptActivity.java:29) | |
07-14 22:33:12.270 483 |
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
2020-08-18 10:51:53.751 25718-25718/de.dev.app D/AndroidRuntime: Shutting down VM | |
--------- beginning of crash | |
2020-08-18 10:51:53.752 25718-25718/de.dev.app E/AndroidRuntime: FATAL EXCEPTION: main | |
Process: de.dev.app, PID: 25718 | |
com.tns.NativeScriptException: Calling js method onTransitionEnd failed | |
Error: java.lang.NoSuchMethodError: no static method "Landroid/os/Handler;.postDelayed(Ljava/lang/Runnable;J)Z" | |
at com.tns.Runtime.callJSMethodNative(Native Method) | |
at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1286) |