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
unit Dynamic; | |
interface | |
uses | |
Variants; | |
type | |
TDynamic = class | |
public |
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
{interface} | |
type | |
TInnerRecord = record | |
Value: string; | |
end; | |
TClassA = class | |
public | |
InnerRecord: TInnerRecord; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>teste som</title> | |
<style type="text/css"> | |
body{margin-top: 200px} | |
table {border: 1px solid red;} | |
table td {border: 1px solid blue;} | |
#notas { |
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
SELECT | |
RDB$FIELDS.RDB$FIELD_NAME | |
FROM | |
RDB$FIELDS | |
INNER JOIN RDB$RELATION_FIELDS | |
ON (RDB$RELATION_FIELDS.RDB$FIELD_SOURCE = RDB$FIELDS.RDB$FIELD_NAME) | |
WHERE | |
RDB$FIELDS.RDB$SYSTEM_FLAG = 0 | |
GROUP BY | |
RDB$FIELDS.RDB$FIELD_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
netsh interface ip set address name="CONNECTION_NAME" dhcp | |
netsh interface ip set dns name="CONNECTION_NAME" 8.8.8.8 | |
netsh interface ip set dns name="CONNECTION_NAME" 8.8.4.4 |
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
program InstalledApps; | |
{$APPTYPE CONSOLE} | |
uses | |
Windows, | |
Classes, | |
SysUtils, | |
Registry; |
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
#!/usr/bin/python | |
# coding: utf-8 | |
import os | |
OLD_EXT = '.rar' # Change here for the old extension | |
NEW_EXT = '.cbr' # Change here for the new extension | |
CURRENT_DIR = os.getcwd() | |
def main(): |
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 block | |
as | |
declare variable trigger_name varchar(32); | |
declare variable table_name varchar(32); | |
declare variable generator_name varchar(32); | |
declare variable last_id integer; | |
declare variable sql varchar(100); | |
declare variable pk_field_name varchar(32); | |
begin | |
for |
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
-- [en] select primary key field of all tables | |
-- [pt] selecionar o campo primary key das tabelas | |
select | |
i.rdb$index_name, | |
s.rdb$field_name | |
from | |
rdb$indices i | |
left join rdb$index_segments s on i.rdb$index_name = s.rdb$index_name | |
left join rdb$relation_constraints rc on rc.rdb$index_name = i.rdb$index_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
public class Modulus11 | |
{ | |
public string GetCheckDigit(string number) | |
{ | |
int sum = 0; | |
for (int i = number.Length - 1, multiplier = 2; i >= 0; i--) | |
{ | |
sum += (int)char.GetNumericValue(number[i]) * multiplier; | |
if (++multiplier > 9) multiplier = 2; | |
} |