This file contains 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
package week7 | |
object primes { | |
//infinite stream builder | |
def from(n: Int): Stream[Int] = n #:: from(n + 1) | |
//> from: (n: Int)Stream[Int] | |
//infinte stream of all natural numbers | |
val nats = from(0) //> nats : Stream[Int] = Stream(0, ?) | |
val m4s = nats map (_ * 4) //> m4s : scala.collection.immutable.Stream[Int] = Stream(0, ?) |
This file contains 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
package week7 | |
class Pouring(capacity: Vector[Int]) { | |
// States | |
type State = Vector[Int] | |
val initialState = capacity map (x => 0) | |
// Moves |
This file contains 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
sap.ui.getCore().byId("element_id") |
This file contains 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
package pi_test_purchaseorder_es; | |
import com.sap.aii.mapping.api.*; | |
import java.io.*; | |
import java.util.*; | |
import com.sap.aii.mappingtool.tf7.rt.*; | |
import com.sap.aii.mapping.lookup.*; | |
import java.lang.reflect.*; | |
import com.sap.ide.esr.tools.mapping.core.LibraryMethod; | |
import com.sap.ide.esr.tools.mapping.core.ExecutionType; |
This file contains 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
alter procedure PersonDelta | |
as | |
SET NOCOUNT ON; | |
/* temp table - fill with changes between tables based on hash field */ | |
declare @rows table(name nvarchar(255), street nvarchar(255), city nvarchar(255), postcode nvarchar(255), state nvarchar(255), hash nvarchar(255)); | |
insert into @rows (name, street, city, postcode, state, hash) | |
select p.name, p.street, p.city, p.postcode, p.state, p.hash from T_PERSON as p left outer join T_PERSON_HIST as h on p.name = h.name where p.hash <> isnull(h.hash,'-1'); | |
/* merge the cahnges into the second table */ | |
merge into T_PERSON_HIST as target using @rows as source | |
on target.name = source.name |
This file contains 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
CREATE PROCEDURE PersonsListByPostcode @pc nvarchar(255) | |
AS | |
SELECT * | |
FROM T_PERSON | |
WHERE postcode = @pc |
This file contains 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
EXECUTE PersonsListByPostcode @pc = '6000' |
This file contains 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
method serialize. | |
"importing io_proxy type ref to cl_proxy_basis | |
"raising cx_ai_system_fault | |
data: | |
lo_async_messaging type ref to if_wsprotocol_async_messaging. | |
queue = get_queue_name( ). | |
check not queue is initial. |
This file contains 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
data(delivery_value) = new string( delivery ). | |
data(text) = new lcl_text_reader( )->get_as_string( | |
id = '0002' | |
name = delivery_value->* | |
object = 'VBBK' | |
). |
This file contains 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
method payment_terms_text. | |
data(text) = new lcl_text_reader( )->get_as_string( | |
id = '0002' | |
name = conv #( i_delivery ) | |
object = 'VBBK' | |
). | |
data proxy_text_collection type zxi_text_collection_text_tab. | |
data proxy_text_line like line of proxy_text_collection. |