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
| -- select job-time of the last 4 COMPLETED jobs | |
| SELECT TIMESTAMPDIFF(SECOND,START_TIME,END_TIME),batch_job_execution.JOB_INSTANCE_ID from batch_job_execution | |
| where(STATUS='COMPLETED') | |
| order by JOB_EXECUTION_ID DESC LIMIT 4; | |
| --select job-time from COMPLETED jobs named 'csvtoxml' limit:last 4 | |
| SELECT TIMESTAMPDIFF(SECOND,START_TIME,END_TIME), | |
| batch_job_execution.JOB_INSTANCE_ID, batch_job_execution.END_TIME | |
| from batch_job_execution |
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
| package batch; | |
| import entity.TblReport; | |
| import entity.TblReportExample; | |
| import mapper.TblReportMapper; | |
| import org.springframework.batch.item.ItemWriter; | |
| import java.util.ArrayList; | |
| import java.util.List; |
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
| exec DBMS_PARALLEL_EXECUTE.DROP_TASK('mytask'); | |
| exec DBMS_PARALLEL_EXECUTE.CREATE_TASK ('mytask'); | |
| exec DBMS_PARALLEL_EXECUTE.CREATE_CHUNKS_BY_ROWID('mytask', 'BOND', 'BOND_ACTIVE_LIST', true, 100); | |
| -- make sure the the sql statment in parameter 2 is correct (no error will return if the sql is not correct | |
| exec DBMS_PARALLEL_EXECUTE.RUN_TASK('mytask', 'begin for i in (select * from bond_active_list where rowid between :start_id AND :end_id) loop datafeed_mgr.InsertHistBondDateRange(i.BOND_ID) ; end loop; end;', DBMS_SQL.NATIVE,parallel_level => 10); | |
| time -p curl --header "j_username:yyy" --header "j_password:xxxx" http://fe.p.prod.primo.saas.exlibrisgroup.com:1701/cer/data/METADATA/PNX/prquest |
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
| -module (ch13). | |
| -compile(export_all). | |
| timer() -> | |
| % io:format("Hi from ~p~n", [self()]), | |
| receive | |
| _ | |
| -> io:format("Bye!~n"), | |
| exit('Bye') | |
| after |
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
| if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { | |
| // path/to/whatever does not exist | |
| } | |
| if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) { | |
| // path/to/whatever exists | |
| } |
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
| wget http://download.mono-project.com/repo/xamarin.gpg | |
| sudo apt-key add xamarin.gpg | |
| echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee --append /etc/apt/sources.list.d/mono-xamarin.list | |
| sudo apt-get update | |
| sudo apt-get install mono-complete | |
| sudo certmgr -ssl -m https://go.microsoft.com | |
| sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net | |
| sudo certmgr -ssl -m https://nuget.org | |
| mozroots --import --sync |
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
| DECLARE | |
| i number(3); | |
| j number(3); | |
| function es_primo(p int) return boolean | |
| is | |
| BEGIN | |
| FOR k in reverse 2..(p-1) LOOP | |
| IF mod(p, k) = 0 THEN | |
| RETURN false; | |
| END IF; |
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
| DECLARE | |
| TYPE t_array IS TABLE OF integer INDEX BY varchar2(2000); | |
| v_array t_array; | |
| i integer; | |
| j integer; | |
| function es_primo(p int) return boolean | |
| is | |
| BEGIN | |
| FOR k in reverse 2..(p-1) LOOP | |
| IF mod(p, k) = 0 THEN |
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
| package com.mma.fingerprint; | |
| import java.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.PreparedStatement; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.util.EnumMap; | |
| import java.util.concurrent.LinkedBlockingQueue; |
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
| /*****************************************************************************/ | |
| /* ELIZA in Prolog */ | |
| /* */ | |
| /* Viren Patel */ | |
| /* Artificial Intelligence Programs */ | |
| /* University of Georgia, Athens, Georgia */ | |
| /* Email: [email protected] */ | |
| /* */ | |
| /* minor changes by Frank Schilder (FS) */ | |
| /* Email: [email protected] */ |