Skip to content

Instantly share code, notes, and snippets.

View vasily802's full-sized avatar
:octocat:
What's happening?

vasily802

:octocat:
What's happening?
View GitHub Profile
@vasily802
vasily802 / fpmax.scala
Created March 16, 2019 08:06 — forked from jdegoes/fpmax.scala
FP to the Max — Code Examples
package fpmax
import scala.util.Try
import scala.io.StdIn.readLine
object App0 {
def main: Unit = {
println("What is your name?")
val name = readLine()
@vasily802
vasily802 / PwsDemo_creditcardtransactionservice.xml
Created October 28, 2016 21:43
3Delta credit card management service, sourceavailable here: https://services.pwsdemo.com/WSDL/PwsDemo_creditcardtransactionservice.xml. This version has rearranged blocks so it can be used with scalaxb
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://3DSI.org/WebServices/CreditCardTransaction" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" name="CreditCardTransactionService" targetNamespace="http://3DSI.org/WebServices/Cr
@vasily802
vasily802 / PwsDemo_creditcardmanagementservice.xml
Created October 28, 2016 21:40
3Delta credit card management service, sourceavailable here: https://services.pwsdemo.com/WSDL/PwsDemo_creditcardmanagementservice.xml. This version has rearranged blocks so it can be used with scalaxb
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://3DSI.org/WebServices/CreditCardManagement" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" name="CreditCardManagementService" targetNamespace="http://3DSI.org/WebServices/Cred
@vasily802
vasily802 / b.sql
Last active August 29, 2015 14:15
rebalance_period
CREATE DATABASE IF NOT EXISTS `paradigmroot` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci */;
USE `paradigmroot`;
-- MySQL dump 10.13 Distrib 5.5.41, for debian-linux-gnu (i686)
--
-- Host: 50.63.244.143 Database: paradigmroot
-- ------------------------------------------------------
-- Server version 5.0.96-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@vasily802
vasily802 / gist:866b6d2024183eadd8d7
Created January 13, 2015 19:10
Add user IZDEHAR
INSERT INTO `corporate_member_info` (`licence_ID`, `load_order`, `mng_lms`, `mng_group`, `group_id`, `manage_list`, `LMSlogin`, `LMSpass`, `tna_req`, `tna_apr`, `PathIdFK`, `r_comp`, `o_comp`, `limited_acess`, `course_access`, `f_name`, `l_name`, `Nname_f`, `Nname_l`, `login_name`, `password`, `email`, `language_preference`, `report_send`, `report_frequency`, `report_start_date`, `report_last_date`, `report_CC`, `report_recipients`, `WK_company`, `company`, `division`, `position`, `phone`, `portal_id`, `total_time_spent`, `last_login`, `current_login`, `logins`, `duration`, `transactions`, `activate_date`, `subscription_start_date`, `subscription_end_date`, `standby`, `paycode`, `completed`, `test_pass`, `in_progress`, `active`, `test_user`)
VALUES ('izdehar15000',15000,NULL,'test_users',290,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'"BUS1058":{"startDate":"","timeLimit":"","startDateLock":"","hasPreRequisite":"","list":"assigned"},"BUS1008":{"startDate":"","timeLimit":"","startDateLock":"","hasPreRequisite
<?php
//write to log
if (filesize('ipn-log.json')) {
$log = file_get_contents('ipn-log.json');
$log = json_decode($log,true);
}
else {
$log = array();
}
@vasily802
vasily802 / sendmail.php
Created November 9, 2014 20:05
PHP mail function
<?
function sendmail($aim,$from,$subject,$text, $touid = 0, $attachfile=array())
{
if(!$aim) return 0;
$originalsubj = $subject;
$charset = "utf-8";
$boundary = "--".md5(uniqid(time())); // любая строка, которой не будет ниже в потоке данных.
$EOL = "\r\n"; // ограничитель строк, некоторые почтовые сервера требуют \n - подобрать опытным путём