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
# -*- coding: utf-8 -*- | |
from django.contrib.admin.filters import ( | |
AllValuesFieldListFilter, | |
ChoicesFieldListFilter, | |
RelatedFieldListFilter, | |
RelatedOnlyFieldListFilter, | |
SimpleListFilter, | |
) | |
from django.contrib.admin.widgets import FilteredSelectMultiple |
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
class NotificationORMForm(forms.ModelForm): | |
... | |
class Meta: | |
model = NotificationORM | |
fields = ( | |
'tenant', | |
... | |
) | |
widgets = { |
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
strategies = ArrayField( | |
models.CharField( | |
choices=NotificationStrategy.choices(), | |
default=NotificationStrategy.EMAIL.value, | |
max_length=25, | |
), | |
blank=True, | |
verbose_name='Strategies', | |
) |
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 logging | |
import os | |
from fastapi import FastAPI | |
from openai import BaseModel | |
from dotenv import load_dotenv | |
import os | |
from typing import Any | |
import openai |
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
1) Quit Xcode, Simulator, Instruments, etc. | |
2) Run in Terminal: sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService | |
3) Run in Terminal: sudo rm -rf ~/Library/*/CoreSimulator | |
# Was tested on Xcode 10.2 and iOS Simulator 12.2 |
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 __future__ import annotations | |
from abc import ABC, abstractmethod | |
from typing import Any, Optional | |
class CardSettings(object): | |
def load_credentials(): | |
pass | |
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
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> | |
<s:Body> | |
<s:Fault> | |
<faultcode>s:0</faultcode> | |
<faultstring xml:lang="en-US">No se ha podido procesar su peticion. Intentelo mas tarde, si el problema persiste provea el siguiente ticket a su area de soporte tecnico: c1</faultstring> | |
<detail> | |
<ErrorDetailInfo z:Id="1" z:Type="Scisa.Framework.Services.Messaging.ErrorDetailInfo" z:Assembly="Scisa.Framework.2013.Services, Version=2019.11.13.1734, Culture=neutral, PublicKeyToken=null" xmlns="http://schemas.datacontract.org/2004/07/Scisa.Framework.Services.Messaging" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"> | |
<Code>0</Code> | |
<HowToFix z:Id="2">http://localhost:808/PLD/QA/SigloNet/errors.html#0</HowToFix> | |
<MoreInfo z:Id="3">http://localhost:808/PLD/QA/SigloNet/errors.html#0</MoreInfo> |
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
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> | |
<Header> | |
<SCISAHeaders xmlns="http://www.scisa.com.mx/scisasuite"> | |
<SCISA_ApplicationID>21BF6586-84B2-4A86-9BF6-0819C7366CE7</SCISA_ApplicationID> | |
<SCISA_UserName>scisaservices</SCISA_UserName> | |
<SCISA_Password>scisaservices</SCISA_Password> | |
</SCISAHeaders> | |
</Header> | |
<Body> | |
<ImportOnDemand xmlns="http://www.scisa.com.mx/focys/v1/contracts/"> |
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
bob_usd_rate = 6.96 | |
mxn_usd_rate = 19.10 | |
mxn_amount = float(input('Input MXN: ')) | |
usd_amount = mxn_amount / mxn_usd_rate | |
bob_amount = usd_amount * bob_usd_rate | |
print('BOB: '+ str(round(bob_amount, 2))) |
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": "DevPool", | |
"description": "Pool created by developer for developers", | |
"ticker": "DEV", | |
"homepage": "https://pool.devs.tools" | |
} |
NewerOlder