echo "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
fun isYes(answer: String): Boolean { | |
return when(answer) { | |
"yes" -> true | |
else -> false | |
} | |
} |
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
#!/bin/bash | |
number=1 | |
while read line | |
do | |
echo $line | grep -E '^[0-9][0-9]*' > /dev/null | |
if [ "$?" = "0" ]; then | |
echo $line | sed "s/^[0-9][0-9]*\./$number\./" | |
number=`echo $number+1|bc` |
I hereby claim:
- I am npcode on github.
- I am eungjun (https://keybase.io/eungjun) on keybase.
- I have a public key ASDyM5qWg2nlsp-CterP6XvNqEjGkJMr1HGeUCopFlNR6Ao
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
#!/bin/sh | |
while getopts v OPTION ; | |
do | |
case "$OPTION" in | |
v) VERBOSE=true ; shift ;; | |
esac | |
done | |
urls=$(grep -i -E -o 'https?://[^ )]*[^), ]' $1) |
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
[2015/11/20 10:00:10 UTC] [WARN] Unsupported post type: message, channel_join | |
[2015/11/20 10:00:10 UTC] [WARN] Unsupported post type: message, channel_join | |
[2015/11/20 10:00:10 UTC] [WARN] Unsupported post type: message, channel_join | |
[2015/11/20 10:00:10 UTC] [WARN] Unsupported post type: message, channel_join | |
[2015/11/20 10:00:10 UTC] [WARN] Unsupported post type: message, channel_join | |
[2015/11/20 10:00:10 UTC] [WARN] Unsupported post type: message, channel_join | |
[2015/11/20 10:00:10 UTC] [WARN] Unsupported post type: message, channel_join | |
[2015/11/20 10:00:10 UTC] [WARN] Unsupported post type: message, channel_join | |
[2015/11/20 10:00:10 UTC] [WARN] Unsupported post type: message, channel_join | |
[2015/11/20 10:00:10 UTC] [WARN] Unsupported post type: message, channel_join |
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
# Settings for Zulip Voyager | |
### MANDATORY SETTINGS | |
# | |
# These settings MUST be set in production. In a development environment, | |
# sensible default values will be used. | |
# The user-accessible Zulip hostname for this installation, e.g. | |
# zulip.example.com | |
EXTERNAL_HOST = 'zulip.example.com' |
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
// Try to render and wait at most 5 seconds. | |
final String[] rendered = new String[1]; | |
@SuppressWarnings("deprecation") | |
Thread marked = new Thread() { | |
@Override | |
public void run() { | |
try { | |
rendered[0] = (String) ((Invocable) engine).invokeFunction( | |
"marked", source, options); | |
} catch (Exception e) { |
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
<html> | |
<!-- You may need to download them from https://github.com/brix/crypto-js/tree/release-3.1.2/build --> | |
<script src="rollups/sha1.js"></script> | |
<script src='components/lib-typedarrays-min.js'></script> | |
<body> | |
<script> | |
function sha1sum() { | |
var oFile = document.getElementById('uploadFile').files[0]; | |
var sha1 = CryptoJS.algo.SHA1.create(); | |
var read = 0; |
NewerOlder