This file contains hidden or 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
if val | |
COUNTERS[tag] = val + 1 | |
end | |
end | |
end | |
end | |
end |
This file contains hidden or 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
f = File.new "bytes.rb", "rb" | |
bytes = [] | |
f.read.each_byte {|b| bytes << b} | |
puts bytes.class # => Array | |
puts bytes[0] # => 102 |
This file contains hidden or 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
using System; | |
using System.IO; | |
using System.Net; | |
using System.Threading; | |
using System.Linq; | |
namespace Crawler { | |
public class Program { | |
private class ResponseState { | |
public byte[] Buffer { get; private set; } |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
namespace Critical | |
{ | |
class MyCs { | |
private int used = 0; |
This file contains hidden or 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
WHERE projects.id<>0 AND ((projects.period>='2009-03-01' AND projects.period<='2009-03-31') OR (projects.period>='2009-03-01' AND projects.period<='2009-03-10') OR (projects.period>='2009-03-11' AND projects.period<='2009-03-20') OR (projects.period>='2009-03-21' AND projects.period<='2009-03-31') OR (projects.period>='2009-04-01' AND projects.period<='2009-04-30') OR (projects.period>='2009-04-01' AND projects.period<='2009-04-10') OR (projects.period>='2009-04-11' AND projects.period<='2009-04-20') OR (projects.period>='2009-04-21' AND projects.period<='2009-04-30') OR (projects.period>='2009-05-01' AND projects.period<='2009-05-31') OR (projects.period>='2009-05-01' AND projects.period<='2009-05-10') OR (projects.period>='2009-05-11' AND projects.period<='2009-05-20') OR (projects.period>='2009-05-21' AND projects.period<='2009-05-31') OR (projects.period>='2009-06-01' AND projects.period<='2009-06-30') OR (projects.period>='2009-06-01' AND projects.period<='2009-06-10') OR (projects.period> |
This file contains hidden or 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
SELECT | |
CONCAT(U3.surname, ' ', U3.name) AS 'manager', | |
P1.board, | |
B1.z_name AS 'board_name', | |
P1.cod, | |
cities.runame AS 'city', | |
CONCAT(U3.cod, P1.document) as 'cod2', | |
CONCAT(U1.surname, ' ', U1.name), | |
CONCAT(U2.surname, ' ', U2.name), | |
I1.runame, |
This file contains hidden or 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
DELETE FROM projects WHERE period='2011-05-01' AND (projects.status=9 OR projects.status=61) AND ( board=145848 OR board=145849 OR board=145847 OR board=145840 OR board=145841 OR board=145842 OR board=145843 OR board=145844 OR board=145845 OR board=145846 OR board=145830 OR board=145831 OR board=145835 OR board=145836 OR board=145828 OR board=145829 OR board=145824 OR board=145825 OR board=145826 OR board=145827 OR board=2949 OR board=180936 OR board=277306 OR board=270824 OR board=145818 OR board=145819 OR board=145820 OR board=145821 OR board=145822 OR board=145823 OR board=145810 OR board=145811 OR board=145812 OR board=145813 OR board=145814 OR board=145815 OR board=145816 OR board=205872 OR board=205873 OR board=205874 OR board=205875 OR board=205876 OR board=205877 OR board=145807 OR board=145808 OR board=145800 OR board=145801 OR board=145802 OR board=145803 OR board=145804 OR board=145805 OR board=145806 OR board=145797 OR board=145798 OR board=145 |
This file contains hidden or 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
fact 0 = 1 | |
fact n = n * fact(n-1) |
This file contains hidden or 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
infix 1 ==> | |
(==>) :: Bool -> Bool -> Bool | |
x ==> y = (not x) || y | |
infix 1 <== | |
(<==) :: Bool -> Bool -> Bool | |
x <== y = y ==> x | |
i = [(&&), (==>) . not, (<==) . not, (||), (||) . not, (<==), (==>)] |
This file contains hidden or 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 Data.List | |
infix 1 ==> | |
(==>) :: Bool -> Bool -> Bool | |
x ==> y = (not x) || y | |
infix 1 <== | |
(<==) :: Bool -> Bool -> Bool | |
x <== y = y ==> x |