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 * FROM myTable WHERE DATE(myDate) = DATE(NOW()) |
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
| summa = 0 | |
| for A in S: | |
| for P in A.PS: | |
| summa += P.N | |
| ----------------- | |
| summa = sum([P.N for A in S for P in A.PS]) |
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
| // Working DHT 22 sketch for Pinoccio | |
| #include <SPI.h> | |
| #include <Wire.h> | |
| #include <Scout.h> | |
| #include <Shell.h> | |
| #include <GS.h> | |
| #include <bitlash.h> | |
| #include <lwm.h> | |
| #include <js0n.h> |
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
| from collections import defaultdict | |
| from operator import itemgetter | |
| def solution(A): | |
| # write your code in Python 2.7 | |
| appearances = defaultdict(int) | |
| N=len(A) | |
| for each_key in A: |
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
| - name: 'Deploy gcp vm' | |
| hosts: localhost | |
| connection: local | |
| become: false | |
| gather_facts: no | |
| vars: | |
| gcp_project: "cord19kaggle" | |
| gcp_cred_kind: "serviceaccount" | |
| gcp_cred_file: "/home/alex/.config/.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
| - name: Create Azure VM | |
| hosts: localhost | |
| connection: local | |
| tasks: | |
| - name: Create resource group | |
| azure_rm_resourcegroup: | |
| name: cord19demo | |
| location: westeurope | |
| - name: Create virtual network | |
| azure_rm_virtualnetwork: |
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
| plugin: azure_rm | |
| include_vm_resource_groups: | |
| - cord19demo | |
| auth_source: auto | |
| keyed_groups: | |
| - prefix: tag | |
| key: tags |
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
| plugin: gcp_compute | |
| projects: | |
| - cord19kaggle | |
| auth_kind: serviceaccount | |
| service_account_file: "/home/alex/*.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
| --- | |
| - name: "Creating multiple by checking folders" | |
| hosts: your_host_name | |
| tasks: | |
| - block: | |
| - name: "Checking folders" | |
| stat: | |
| path: "{{item}}" | |
| register: folder_stats | |
| with_items: |
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
| --- | |
| - hosts: all | |
| become: true | |
| vars: | |
| create_containers: 1 | |
| default_container_name: redis | |
| default_container_image: redislabs/redismod | |
| default_container_command: /usr/etc/redis/redis.conf | |
| tasks: |
OlderNewer