Enter this command in a terminal:
composer require google/apiclient:^2.0
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
import javax.sound.midi.*; | |
/** | |
* @author [av1m](https://www.github.com/av1m) | |
* @author [Ilan Nizard](https://fr.linkedin.com/in/ilan-nizard-74a222140) | |
* <p> | |
* Thanks to [@wadael](https://github.com/wadael) for the initiation | |
* </p> | |
*/ | |
public class Fibo { |
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/sbin/python3 | |
# coding: utf-8 | |
import socket | |
import pickle | |
import datetime | |
import time | |
from selenium.webdriver.common.by import By | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys |
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
<?php | |
$sheet = "coaching"; | |
$url = 'https://v2-api.sheety.co/1sddadce23170ca5d4718fd855qs8/testing/'.$sheet; | |
$data = array( | |
$sheet => array( | |
"name"=> htmlspecialchars($_POST["nom"]), | |
"mail"=> htmlspecialchars($_POST["mail"]), | |
)); | |
$options = array( |
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
"""Updates requirements.txt to the latest version of all dependencies. | |
You must have == as a dependency specification | |
You need to define the FILE variable | |
""" | |
# coding: utf-8 | |
import requests | |
FILE = "/path/to/requirements.txt" |
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
<html> | |
Hello World | |
<script> | |
function addLink() { | |
var body_element = document.getElementsByTagName('body')[0]; | |
var selection; | |
selection = window.getSelection(); | |
var pagelink = " (link= " + window.location.href +")"; |
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
""" Create pydantic model from meraki openapi specifications | |
OpenAPI specification is available at: https://github.com/meraki/openapi | |
Requirements for this script: | |
- requests | |
- datamodel-code-generator | |
Command to run this script: | |
- python3 generate_schema.py |
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
"""Utility functions""" | |
from functools import reduce | |
from operator import getitem | |
from typing import Any, Mapping, Union | |
def getdeep(data: Mapping, map_list: Union[list, str], default: Any = None) -> Any: | |
"""Iterate nested dictionary|list and can return default value if key not found |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.