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
function PARSEEXPORTDATAFROMMINI2(p_numdoc t_mini_numdoc, p_numrow t_mini_numrow, p_price t_mini_price, | |
p_qtysale t_mini_qtysal, p_sumsale t_mini_sumsale, p_qtyret t_mini_qtyret, | |
p_sumret t_mini_sumret) return integer is | |
i integer; | |
v_array t_exportdatafrommini_tree := t_exportdatafrommini_tree(); | |
begin | |
--наполняем коллекцию | |
for i in 1..p_numdoc.COUNT loop | |
v_array.Extend(); | |
v_array(v_array.count) := t_exportdatafrommini(p_numdoc(i), p_numrow(i), p_price(i), |
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 integer; | |
begin | |
insert into tbl_1 | |
(id1) | |
values | |
(1); | |
for s in (SELECT t.* FROM all_objects t where rownum < 3) loop | |
begin |
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
/*using savepoint*/ | |
declare | |
i integer; | |
cnt number := 0; | |
begin | |
insert into tbl_1 | |
(id1) | |
values | |
(1); | |
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
#https://projecteuler.net/problem=5 | |
#python 3.5.2 | |
import time | |
from functools import reduce as reduce | |
start = time.time() | |
simpleList = [2,3,5,7,11,13,17,19] |
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
#http://www.pythonchallenge.com/ | |
#challenge num_10 | |
import re | |
import time | |
start = time.time() | |
def GetNextNum(num): | |
num1 = re.sub('[2]+', ' 0 ', num) |
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
import RPi.GPIO as GPIO | |
import time | |
from datetime import datetime | |
def SendSms(msg): | |
from twilio.rest import TwilioRestClient | |
client = TwilioRestClient("Your ACCOUNT SID", | |
"Your AUTH TOKEN") |
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
procedure LoadImageFromDbToTImage(img: TImage; Field: string; id: integer); | |
var | |
memStream: TMemoryStream; | |
Graphic: Graphics.TGraphic; | |
bm: Graphics.Tbitmap; | |
begin | |
odsImages.Close; | |
odsImages.SetVariable('id', id); //ИД картинки | |
odsImages.Open; |
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
import picamera | |
import time | |
import RPi.GPIO as GPIO | |
from datetime import datetime | |
import smtplib | |
from os.path import basename | |
from email.mime.application import MIMEApplication | |
from email.mime.multipart import MIMEMultipart | |
#send e-mail via gmail |
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
int enableA = 1; | |
int pinA1 = 3; | |
int pinA2 = 2; | |
int enableB = 6; | |
int pinB1 = 5; | |
int pinB2 = 4; | |
char state = '0'; |
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 <Servo.h> | |
Servo myservo; | |
int enableA = 1; | |
int pinA1 = 3; | |
int pinA2 = 2; | |
int servposnum = 0; | |
int servpos = 0; | |
int enableB = 6; |
OlderNewer