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 keras.callbacks import Callback | |
import keras.backend as K | |
import numpy as np | |
class SGDRScheduler(Callback): | |
'''Cosine annealing learning rate scheduler with periodic restarts. | |
# Usage | |
```python | |
schedule = SGDRScheduler(min_lr=1e-5, |
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 textToSpeech = "Your speech" | |
let synUtterance = new SpeechSynthesisUtterance(textToSpeech); | |
/* | |
// settimeout unless it changes to use promise | |
[synUtterance.voice, _] = settimeout( | |
() => speechSynthesis.getVoices(), | |
2000); | |
synUtterance.rate = 1; // default | |
synUtterance. |
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
#!/bin/bash | |
#user inputs java path | |
if [[ $1 ]] | |
then | |
JAVA_PATH="$1/bin" | |
# use JAVA_HOME environment variable | |
elif [[ $JAVA_HOME ]] | |
then |
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
Show hidden characters
"list": [ | |
{ | |
// Make changes here to the powershell.exe profile. | |
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"name": "Windows PowerShell", | |
"colorScheme": "UnderTheSea", | |
"tabColor": "#011116", | |
"commandline": "powershell.exe", | |
"hidden": false | |
}, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Install required libraries tqdm, aiohttp | |
# from tqdm import tqdm | |
# import aiohttp | |
import typing | |
async def multiFetchJSON(indices, | |
container: dict = {}, | |
urlFormat: str = '', |
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
{ | |
"type": "object", | |
"anyOf": [ | |
{ | |
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-local/_definitions.json" | |
}, | |
{ | |
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-local/affinity-v1.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
{ | |
"yaml.schemas": { | |
"https://raw.githubusercontent.com/awslabs/goformation/master/schema/cloudformation.schema.json": "cloudformations/*-cloudformation.yaml" | |
}, | |
// Custom tags for the parser to use | |
"yaml.customTags": [ | |
"!Equals sequence", | |
"!FindInMap sequence", | |
"!GetAtt", | |
"!GetAZs", |
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
# Srapping Spec | |
template-version: v0.0.1 | |
parameters: | |
- name: num | |
value: 1 | |
request: | |
method: POST | |
url: |
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
apiVersion: keda.sh/v1alpha1 | |
kind: ScaledObject | |
metadata: | |
name: dummy-scaledobject | |
spec: | |
scaleTargetRef: | |
name: dummy-deployment | |
triggers: | |
- type: cron | |
metadata: |
OlderNewer