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
--Insert files into dept from csv file | |
LOAD DATA LOCAL INFILE 'C:\\Users\\danie\\Desktop\\db2.csv' INTO TABLE dept | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
LINES TERMINATED BY '\r\n' | |
LOAD DATA LOCAL INFILE 'C:\\Users\\danie\\Desktop\\db21.csv' INTO TABLE emp | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '' | |
LINES TERMINATED BY '\r\n'; |
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
/// | |
/// Converting class objects to JSON string in Flutter | |
/// | |
class Employee { | |
final String name; | |
final String email; | |
Employee(this.name, this.email); | |
Employee.fromJson(Map<String, dynamic> json) |
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
inicio | |
variavel inteiro ano | |
variavel inteiro resto4 | |
variavel inteiro resto100 | |
variavel inteiro resto400 | |
escrever "Introduza um ano: " | |
ler ano | |
resto4 <- ano % 4 | |
resto100 <- ano % 100 |
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
inicio | |
inteiro num1 | |
inteiro num2 | |
inteiro sum | |
inteiro prod | |
inteiro media | |
num1 <- 0 | |
num2 <- 0 | |
escrever "Introduza o primeiro numero:" | |
ler num1 |
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
inicio | |
real numkm | |
inteiro km_m | |
inteiro mnauticas | |
inteiro milhas | |
inteiro pes | |
numKm <- 0.0 | |
escrever "Introduza o número de KM:" | |
ler numkm | |
km_m <- numKm *1000 |
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
// Ler um numero e escrever se o numero e par ou impar | |
inicio | |
variavel inteiro numero | |
variavel real quociente | |
variavel inteiro resto | |
variavel inteiro resto2 | |
escrever "Introduza numero: " | |
ler numero | |
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 { TestBed, inject } from '@angular/core/testing'; | |
import { FindMatchService } from './find-match.service'; | |
describe('FindMatchService', () => { | |
beforeEach(() => { | |
TestBed.configureTestingModule({ | |
providers: [FindMatchService] | |
}); | |
}); |
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
/* | |
<angular-slickgrid gridId="importGrid" [columnDefinitions]="columnDefinitions" [gridOptions]="gridOptions" | |
[dataset]="dataset" (onAngularGridCreated)="angularGridReady($event)" | |
(sgOnCellChange)="onCellChanged($event.detail.eventData, $event.detail.args)" <----- required | |
> | |
</angular-slickgrid> | |
*/ |
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 the version is 8 then follow these steps. | |
$ cordova -v | |
8.0.0 | |
Modify the line 33--34 in your_project/plugins/cordova-plugin-crosswalk-webview/hooks/update_config.js | |
// platformConfigurationFile = path.join(androidPlatformDir, | |
// 'res', 'xml', 'config.xml'), | |
platformConfigurationFile = path.join(androidPlatformDir, | |
'app', 'src', 'main', 'res', 'xml', 'config.xml'), |
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
<!--This will format a date to "DD/MM/YYY HH:MM" from a format "YYYY-MM-DDTHH:MM:SS"--> | |
<xsl:variable name="dt" select="./When"/> | |
<xsl:value-of select="concat(substring($dt, 9, 2),'/',substring($dt, 6, 2),'/',substring($dt, 1, 4),' ', substring($dt, 12, 2),':',substring($dt, 15, 2))"/> |