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
| const rewire = require("rewire") | |
| const example = rewire("./example") | |
| const isFrenchPhoneNumber = example.__get__("isFrenchPhoneNumber") | |
| // @ponicode | |
| describe("isFrenchPhoneNumber", () => { | |
| test("0", () => { | |
| let result = isFrenchPhoneNumber("+33688261221") | |
| expect(result).toBe(true) | |
| }) | |
| }) |
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 groovy.transform.ToString | |
| /** | |
| * identité => type | |
| * | |
| * Objet : element à une vie | |
| * => créé ( réification , donner vie, donner substance à un concept abstrait) | |
| * => utilisé | |
| * => détruit | |
| */ | |
| class Utilisateur { |
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 sys | |
| from awsglue.transforms import * | |
| from awsglue.utils import getResolvedOptions | |
| from pyspark.context import SparkContext | |
| from awsglue.context import GlueContext | |
| from awsglue.job import Job | |
| from pyspark.sql.functions import col, spark_partition_id | |
| from awsglue.dynamicframe import DynamicFrame | |
| ## @params: [JOB_NAME] |
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 sys | |
| from awsglue.transforms import * | |
| from awsglue.utils import getResolvedOptions | |
| from pyspark.context import SparkContext | |
| from awsglue.context import GlueContext | |
| from awsglue.job import Job | |
| from pyspark.sql.functions import col | |
| from awsglue.dynamicframe import DynamicFrame | |
| ## @params: [JOB_NAME] |
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 | |
| project.id as ID, | |
| invoice.month as Month, | |
| service.description as ServiceDescription, | |
| service.id as ServiceID, | |
| sku.description as SKUDescription, | |
| sku.id as SKUID, | |
| location.location as Region, | |
| SUM(usage.amount_in_pricing_units) as UsageAmount, |
OlderNewer