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
# The first approach that I found was to convert using a virtual device using Ghostscript. | |
# The virtual device, pdfwrite, supports parameters to convert the original PDF file to another PDF file in grayscale. | |
# In my case, I wanted only black and white, so this was not enough. | |
#!/bin/bash | |
gs \ | |
-sOutputFile=output.pdf \ | |
-sDEVICE=pdfwrite \ | |
-sColorConversionStrategy=Gray \ |
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
http://problemotd.com/problem/2-equals-1/ | |
In the fifth step, both sides are divided by (a - b). | |
Since a = b, (a - b) is equal to 0, resulting in a 0/0 division. | |
0/0 is indetermined, therefore the fifth step is not valid. |
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
# http://www.problemotd.com/problem/bit-counter/ | |
(1..100).each {|n| puts n[1] == 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
<html> | |
<body> | |
<script> | |
function alert_b() { | |
top.location="http://google.com.br"; | |
} | |
window.fbAsyncInit = function() { | |
FB.init({ |