Skip to content

Instantly share code, notes, and snippets.

Avatar
📷
the code is like pasta, yum yum

Miłosz Sędziak Levii01

📷
the code is like pasta, yum yum
  • Bielsko-Biała
View GitHub Profile
View test2.js
place.address_components
(8) [{}, {}, {}, {}, {}, {}, {}, {}]
0: {long_name: "24A", short_name: "24A", types: Array(1)}
1: {long_name: "Ignacego Krasickiego", short_name: "Ignacego Krasickiego", types: Array(1)}
2: {long_name: "Mokotów", short_name: "Mokotów", types: Array(3)}
3: {long_name: "Warszawa", short_name: "Warszawa", types: Array(2)}
4: {long_name: "Warszawa", short_name: "Warszawa", types: Array(2)}
5: {long_name: "mazowieckie", short_name: "mazowieckie", types: Array(2)}
6: {long_name: "Polska", short_name: "PL", types: Array(2)}
7: {long_name: "00-401", short_name: "00-401", types: Array(1)}
View gist:38f74e2c63a1202944eab7c7fa55d72b
place.address_components
(8) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
0: {long_name: "24A", short_name: "24A", types: Array(1)}
1: {long_name: "Ignacego Krasickiego", short_name: "Ignacego Krasickiego", types: Array(1)}
2: {long_name: "Mokotów", short_name: "Mokotów", types: Array(3)}
3: {long_name: "Warszawa", short_name: "Warszawa", types: Array(2)}
4: {long_name: "Warszawa", short_name: "Warszawa", types: Array(2)}
5: {long_name: "mazowieckie", short_name: "mazowieckie", types: Array(2)}
6: {long_name: "Polska", short_name: "PL", types: Array(2)}
7: {long_name: "00-401", short_name: "00-401", types: Array(1)}
View london.js
address_components: Array(8)
0: {long_name: "9", short_name: "9", types: Array(1)}
1: {long_name: "Lilac Street", short_name: "Lilac St", types: Array(1)}
2: {long_name: "Shepherd's Bush", short_name: "Shepherd's Bush", types: Array(2)}
3: {long_name: "London", short_name: "London", types: Array(1)}
4: {long_name: "Greater London", short_name: "Greater London", types: Array(2)}
5: {long_name: "England", short_name: "England", types: Array(2)}
6: {long_name: "Wielka Brytania", short_name: "GB", types: Array(2)}
7: {long_name: "W12 0RU", short_name: "W12 0RU", types: Array(1)}
View google_params.json
{"utf8"=>"✓",
"_method"=>"patch",
"authenticity_token"=>
"/g5vII6q+jdBFmm5Qv2STNru+I6wFx9LVM2AKGTnDL+mWaLK0g3iz6muqaj0XS9mA0OeWfDHZR4naUW0WBt+Ww==",
"location"=>
{"name"=>"xDreamFit Marktoberdorf - Filiale MOD",
"account_id"=>"92",
"installation_type"=>"inside",
"weather_subscription_id"=>"29",
"lat"=>"49.8485776",
View popup.yml
locations:
popup_configuration:
preview:
title: Popup Preview
new_users: For new users
returning_users: For returning users
edit_users:
new: Edit splash popup for new user
returning: Edit splash popup for returning user
View whatsapp.yml
whatsapp:
menu_link: 'WhatsApp'
campaign_message_create:
title: WhatsApp campaign
select_all: Select All
select_none: Select None
customers: Customers
message: Message
send: Send
additional_recipients: Additional Recipients (comma-separated)
View facebook image ips sample.txt
PING scontent-ams1-1.xx.fbcdn.net (31.13.68.34): 56 data bytes
64 bytes from 31.13.68.34: icmp_seq=0 ttl=42 time=854.811 ms
PING scontent-waw1-1.xx.fbcdn.net (31.13.81.13): 56 data bytes
64 bytes from 31.13.81.13: icmp_seq=0 ttl=52 time=57.065 ms
PING scontent-ber1-1.xx.fbcdn.net (185.60.217.28): 56 data bytes
64 bytes from 185.60.217.28: icmp_seq=0 ttl=46 time=66.565 ms
PING scontent-frt1-1.xx.fbcdn.net (31.13.89.34): 56 data bytes
View find_by_string.rb
{"draw"=>"4",
"columns"=>
{"0"=>
{"data"=>"auth_method",
"name"=>"",
"searchable"=>"true",
"orderable"=>"false",
"search"=>{"value"=>"", "regex"=>"false"}},
"1"=>
{"data"=>"name",
View sort_by_last_sign_in.rb
{"draw"=>"2",
"columns"=>
{"0"=>
{"data"=>"auth_method",
"name"=>"",
"searchable"=>"true",
"orderable"=>"false",
"search"=>{"value"=>"", "regex"=>"false"}},
"1"=>
{"data"=>"name",
View gist:dad0fe855e0adde9e3dea4b5ca3c56c5
MiniMagick::Tool::Mogrify.new do |mogrify|
mogrify.resize("100x100")
mogrify.negate
mogrify << response[:picture][:data][:url]
end
image = MiniMagick::Image.new(response[:picture][:data][:url]) do |b|
b.resize "250x200>"
b.rotate "-90"
b.flip