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
| Public Function MD5Hex(textString As String) As String | |
| Dim enc | |
| Dim textBytes() As Byte | |
| Dim bytes | |
| Dim outstr As String | |
| Set enc = CreateObject("System.Security.Cryptography.MD5CryptoServiceProvider") | |
| textBytes = textString | |
| bytes = enc.ComputeHash_2((textBytes)) | |
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
| var ary = [ | |
| {id: "a", parent: 0}, | |
| {id: "b", parent: "a"}, | |
| {id: "c", parent: "b"}, | |
| {id: "d", parent: "c"}, | |
| {id: "e", parent: "d"}, | |
| {id: "f", parent: "e"}, | |
| {id: "g", parent: "f"}, | |
| {id: "h", parent: "g"}, | |
| {id: "i", parent: "h"}, |
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
| var cluster = require('cluster'); | |
| if (cluster.isWorker) { | |
| console.log('Worker ' + process.pid + ' has started.'); | |
| // Send message to master process. | |
| process.send({msgFromWorker: 'This is from worker ' + process.pid + '.'}) | |
| // Receive messages from the master process. |
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
| require "rubygems" | |
| require "json" | |
| require "net/http" | |
| require "uri" | |
| uri = URI.parse("http://api.sejmometr.pl/posiedzenia/BZfWZ/projekty") | |
| http = Net::HTTP.new(uri.host, uri.port) | |
| request = Net::HTTP::Get.new(uri.request_uri) |