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
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 |
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
# ************************************************************ | |
# Sequel Pro SQL dump | |
# Version 4541 | |
# | |
# http://www.sequelpro.com/ | |
# https://github.com/sequelpro/sequelpro | |
# | |
# Host: localhost (MySQL 5.7.18) | |
# Database: thesis_development | |
# Generation Time: 2018-01-23 20:14:11 +0000 |
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
Account.where(token: nil).each do |account| | |
account.token = SecureRandom.uuid | |
account.save!(validate: false) | |
end | |
Account.where(token: nil).size |
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
Jako uczestnik programu rekomendacyjnego chcę dostać pieniądze za polecanie | |
Scope: mechanizm wypłat dla uczestników programu rekomendacyjnego | |
beneficjent musi dostać właściwą kwote (teraz z automatu dostanie 50pln), wymagana możliwość modyfikacji. | |
po wprowadzeniu sprzedaży cron sprawdza wszystkie copportunity, które powstały z wykorzystaniem kodu rabatowego, mają produkty i je grupuje po kodach. Wybiera te, które są z polecenia. UWAGA na timaouty | |
Cron zamiata pod koniec miesiaca B) | |
wysyłamy do polecającego maila, że ma do odebrania xx pieniędzy (gdy uzbiera 100ziko ) | |
jeśli nie mamy danych jego, to dostaje link do fomularza |
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
"vehicle": { | |
"model_name_etx": "Corsa 1.2 16V 111 EasyTronic", G GIT | |
"body_type_etx": "Hatchback", G GIT body_name | |
"body_type": "hb", G | |
"infoekspert_model_name": "Corsa D 1.2", G E GIT type name | |
"infoekspert_vehicle_type": "O", GE B L | |
"vehicle_type": 10, G | |
DO KOSZAAAA ! |
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
#include <iostream> | |
#include <string> | |
#include <cstdlib> | |
#include <iomanip> | |
#include <time.h> | |
#include <stdlib.h> | |
using namespace std; | |
struct person { |
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
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:quot="http://axadirect.pl/quotation" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axad="http://schemas.datacontract.org/2004/07/AxaDirect.Contract.Application.Default.ServiceContracts.v2.Quotation" xmlns:axad1="http://schemas.datacontract.org/2004/07/AxaDirect.Contract.Application.Default.ServiceContracts.v2.Quotation.Driver" xmlns:axad2="http://schemas.datacontract.org/2004/07/AxaDirect.Contract.Application.Default.ServiceContracts.v2.Quotation.Owners" xmlns:axad3="http://schemas.datacontract.org/2004/07/AxaDirect.Contract.Application.Default.ServiceContracts.v2.Quotation.Vehicle"><soapenv:Header><RequestId></RequestId></soapenv:Header><soapenv:Body><quot:CreateOfferCalculation xmlns="http://axadirect.pl/quotation"> <quot:questionnaire> | |
<axad:Agent> | |
<axad:RauNumber>99953999/A</axad:RauNumber> | |
</axad:Agent> | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:quot="http://axadirect.pl/quotation" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axad="http://schemas.datacontract.org/2004/07/AxaDirect.Contract.Application.Default.ServiceContracts.v2.Quotation" xmlns:axad1="http://schemas.datacontract.org/2004/07/AxaDirect.Contract.Application.Default.ServiceContracts.v2.Quotation.Driver" xmlns:axad2="http://schemas.datacontract.org/2004/07/AxaDirect.Contract.Application.Default.ServiceContracts.v2.Quotation.Owners" xmlns:axad3="http://schemas.datacontract.org/2004/07/AxaDirect.Contract.Application.Default.ServiceContracts.v2.Quotation.Vehicle"> | |
<soapenv:Header> | |
<RequestId></RequestId> | |
</soapenv:Header> | |
<soapenv:Body> | |
<quot:CreateOfferCalculation xmlns="http://axadirect.pl/quotation"> | |
<quot:questionnaire> | |
<axad: |
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
#include <iostream> | |
#include <cstdlib> | |
#include <iomanip> | |
#include <time.h> | |
#include <stdlib.h> | |
using namespace std; | |
//int n, d, g, k; | |
int n=13, d=5, g=9, k=5; |
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
<div class="mfind-lp_wrapper"> | |
<div class="mfind-lp_box"> | |
<div class="mfind-lp_box--code"> | |
<strong>- 10% z kodem</strong> | |
<p>ward02176000</p> | |
</div> | |
<a href="http://wartadirect.pl/household/?p=55136" class="mfind-lp_link"> | |
<img class="mfind-lp_link--image" src="https://www.mfind.pl/wp-content/uploads/2017/03/lp-warta.png" alt="warta"> | |
<img class="mfind-lp_link--image-hover" src="https://www.mfind.pl/wp-content/uploads/2017/03/lp-warta-hover.png" alt="warta"> |