Skip to content

Instantly share code, notes, and snippets.

View aurimasniekis's full-sized avatar

Aurimas Niekis aurimasniekis

View GitHub Profile
This file has been truncated, but you can view the full file.
[
{
"id": 49676025,
"broadbandAverageSpeed": 200,
"superFastMaxSpeedRange": 200,
"superFastStatusType": "AVAILABLE",
"superFastAvailableOrComingSoon": true,
"price": {
"amount": 345,
"frequency": "weekly",
This file has been truncated, but you can view the full file.
[{"id":67215827,"bedrooms":1,"numberOfImages":5,"numberOfFloorplans":0,"numberOfVirtualTours":0,"summary":"All bills included (with WIFI) short -term student room in a flat-share positioned opposite Queen Mary University of London in Toby Lane. ","displayAddress":"Toby Lane, London, E1","countryCode":"GB","location":{"latitude":51.52304,"longitude":-0.03906},"images":[{"order":0,"url":"73k\/72343\/67215827\/72343_MM717111_IMG_00_0000.jpg","srcUrl":"http:\/\/media.rightmove.co.uk:80\/dir\/crop\/10:9-16:9\/73k\/72343\/67215827\/72343_MM717111_IMG_00_0000_max_476x317.jpg","srcsetUrl":"http:\/\/media.rightmove.co.uk:80\/dir\/crop\/10:9-16:9\/73k\/72343\/67215827\/72343_MM717111_IMG_00_0000_max_476x317.jpg 1x, http:\/\/media.rightmove.co.uk:80\/dir\/crop\/10:9-16:9\/73k\/72343\/67215827\/72343_MM717111_IMG_00_0000_max_656x437.jpg 2x"},{"order":1,"url":"73k\/72343\/67215827\/72343_MM717111_IMG_01_0000.jpg","srcUrl":"http:\/\/media.rightmove.co.uk:80\/dir\/crop\/10:9-16:9\/73k\/72343\/67215827\/72343_MM717111_IMG_01
@aurimasniekis
aurimasniekis / composer.json
Last active June 7, 2017 10:41 — forked from Furgas/composer.json
Benchmark - array with instanceof vs. typehinted variadic argument vs. separate iterator class
{
"require": {
"phpunit/php-timer": "~1.0"
}
}
begin
// Some code which throws exception.
socket.on_message do |message|
raise "Exception"
end
rescue ex : Exception
end
{"numwant":10,"uploaded":0,"downloaded":0,"action":"announce","info_hash":"úÕކ=ð‚\u0003\n\u0011þ\u0015~ÉY%øŽé","peer_id":"-WD0018-duq4FaPOFQ7B","offers":[{"offer":{"type":"offer","sdp":"v=0\r\no=- 2159533874959467025 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=msid-semantic: WMS\r\nm=application 56787 DTLS/SCTP 5000\r\nc=IN IP4 5.147.164.31\r\na=candidate:2015153024 1 udp 2122260223 192.168.178.79 56787 typ host generation 0 network-id 2\r\na=candidate:2117698018 1 udp 2122194687 192.168.178.157 57618 typ host generation 0 network-id 1 network-cost 10\r\na=candidate:3029464083 1 udp 1686052607 5.147.164.31 56787 typ srflx raddr 192.168.178.79 rport 56787 generation 0 network-id 2\r\na=candidate:916404080 1 tcp 1518280447 192.168.178.79 9 typ host tcptype active generation 0 network-id 2\r\na=candidate:817528082 1 tcp 1518214911 192.168.178.157 9 typ host tcptype active generation 0 network-id 1 network-cost 10\r\na=candidate:401853987 1 udp 1685987071 5.147.164.31 57618 typ srflx raddr 192.168.178.157 rport 576
╰─➤ node
> var Buffer = require("buffer").Buffer
undefined
> var a = fs.readFileSync('./messge.json')
undefined
> var b = JSON.parse(a);
undefined
> b
{ numwant: 10,
uploaded: 0,
{
"numwant": 10,
"uploaded": 0,
"downloaded": 0,
"action": "announce",
"info_hash": "úÕކ=ð‚\u0003\n\u0011þ\u0015~ÉY%øŽé",
"peer_id": "-WD0018-duq4FaPOFQ7B",
"offers": [
{
"offer": {
<?php
namespace AurimasNiekis\DoctrineJsonObjectType;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\JsonType;
use AurimasNiekis\DoctrineJsonObjectType\Exception\{
InvalidClassProvidedException,
InvalidValueTypeException,
MissingClassParameterException
function m6()
-- Tarpas tarp irankio ir mygtuko
local spacingBetweenProbe = -50
-- Irankio Pakeitimo Pozicija
local toolChangePosition = "X30 Y0"
-- Irankio Matavimo Pozicija
local probePosition = "X0 Y0"
no overload matches 'Slice(UInt8)#to_json' with type JSON::Builder
Overloads are:
- Slice(T)#to_json()
- Object#to_json(io : IO)
- Object#to_json()