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
8.34.208.0/20 8.34.208.0/20 8.34.208.0/20 8.35.192.0/21 8.35.192.0/21 8.35.192.0/21 8.35.200.0/23 8.35.200.0/23 8.35.200.0/23 | |
23.236.48.0/20 23.236.48.0/20 23.236.48.0/20 23.251.128.0/19 23.251.128.0/19 23.251.128.0/19 | |
34.64.0.0/11 34.64.0.0/11 34.64.0.0/11 34.96.0.0/14 34.96.0.0/14 34.96.0.0/14 34.100.0.0/16 34.102.0.0/15 34.104.0.0/14 34.124.0.0/18 34.124.64.0/20 34.124.80.0/23 34.124.84.0/22 34.124.88.0/23 34.124.92.0/22 34.125.0.0/16 | |
35.184.0.0/14 35.188.0.0/15 35.190.0.0/17 35.190.128.0/18 35.190.192.0/19 35.190.224.0/20 35.190.240.0/22 35.192.0.0/14 35.196.0.0/15 35.198.0.0/16 35.199.0.0/17 35.199.128.0/18 35.200.0.0/13 35.208.0.0/13 35.216.0.0/15 35.219.192.0/24 35.220.0.0/14 35.224.0.0/13 35.232.0.0/15 35.234.0.0/16 35.235.0.0/17 35.235.192.0/20 35.235.216.0/21 35.235.224.0/20 35.236.0.0/14 35.240.0.0/13 |
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 getopt | |
import google.cloud.logging | |
import sys | |
import re | |
from google.protobuf.json_format import MessageToDict | |
from google.cloud import resourcemanager_v3 | |
from google.oauth2 import service_account | |
SCOPE = ["https://www.googleapis.com/auth/cloud-platform"] | |
credentials = service_account.Credentials.from_service_account_file("secret.json", scopes = SCOPE) |
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 getopt | |
import google.cloud.logging | |
import sys | |
from google.protobuf.json_format import MessageToDict | |
from google.cloud import resourcemanager_v3 | |
from google.oauth2 import service_account | |
SCOPE = ["https://www.googleapis.com/auth/cloud-platform"] | |
credentials = service_account.Credentials.from_service_account_file("secret.json", scopes = SCOPE) | |
resource_mgr = resourcemanager_v3.ProjectsClient(credentials=credentials) |
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 json | |
import re | |
import logging | |
from google.cloud import resourcemanager_v3 | |
from google.oauth2 import service_account | |
from google.cloud import recommender | |
from google.api_core import exceptions | |
logger = logging.getLogger(__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
from google.oauth2 import service_account | |
from google.cloud import resourcemanager_v3 | |
import collections | |
import logging | |
import time | |
import re | |
from google.cloud import recommender | |
logger = logging.getLogger(__name__) | |
logging.basicConfig(level = logging.INFO) |
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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "lucid32" |
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<bits/stdc++.h> | |
using namespace std; | |
const int MAX_N = 100'005; | |
const int LOG = 17; | |
int a[MAX_N]; | |
int a[MAX_N][LOG]; | |
int query(int L, int R) { |
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
long long compute_hash(string s) { | |
const int p = 31; //prime number | |
const int m = 1e9 + 9; | |
long long hash_value = 0; | |
long long p_pow = 1; | |
for(char c : s) { | |
hash_value = (hash_value + (c - 'a' + 1) * p_pow) % m; | |
p_pow = (p_pow * p) % m; | |
} |
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
formatters = "plain bold italic header link inline-code ordered-list unordered-list new-line".split() | |
commands = "!help !done".split() | |
def text_style(formater, text): | |
if formater == "bold": | |
return f"**{text}**" | |
elif formater == "italilc": | |
return f"*{text}*" | |
elif formater == "plain": |
NewerOlder