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 | |
FILENAME="$1" | |
DIR="$(dirname "$FILENAME")" | |
BASENAME=$(basename "$FILENAME" .cbr) | |
DIR_TMP="$DIR/tmp" | |
echo "Converting $FILENAME" | |
mkdir "$DIR_TMP" |
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
[ | |
{ | |
"key": "800x1280", | |
"name": "Amazon Kindle Fire HD 8.9", | |
"width": 800, | |
"height": 1280 | |
}, | |
{ | |
"key": "480x800", | |
"name": "Amazon Kindle Fire HD 7", |
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
<!doctype html> | |
<head> | |
<title>Disapproval</title> | |
<style> | |
#ಠ_ಠ { } | |
.❤ { } | |
</style> | |
</head> | |
<body> |
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
TextBox1.Visible = ShowTextBox ? true : 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
// Refactor the below code. | |
try | |
{ | |
abc = !String.IsNullOrEmpty(wsResponse.Webservice.AbcValue) ? Convert.ToInt32(wsResponse.Webservice.AbcValue) : 0; | |
} | |
catch (Exception ex) | |
{ | |
//throw it out and it will be handled by the caller | |
throw ex; |
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
/// <summary> | |
/// Validate date is a proper format | |
/// </summary> | |
/// <param name="date"></param> | |
/// <returns></returns> | |
public static bool IsDate(string date) | |
{ | |
bool valid = true; | |
//check in 99/99/9999 format | |
valid = Regex.IsMatch(date, "^[0-9]{2}/[0-9]{2}/[0-9]{4}$"); |
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
# Combined from: | |
# [1] http://www.rubyinside.com/how-to-rails-3-and-rspec-2-4336.html | |
# [2] https://gist.github.com/600976 | |
unless defined?(GROWL) | |
$stderr.sync=true | |
$stdout.sync=true | |
ENV["WATCHR"] = "1" | |
GROWL=`which growlnotify`.chomp |