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
| DOM CASMURRO | |
| POR | |
| MACHADO DE ASSIS | |
| DA ACADEMIA BRAZILEIRA | |
| H. GARNIER, LIVREIRO-EDITOR |
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
| # ============================================================================== | |
| # Necessary Imports | |
| # ============================================================================== | |
| import asyncio | |
| import hashlib | |
| import os | |
| import time as tm # For scraper delays | |
| import json # To load config if needed in the future | |
| from typing import List, Optional, Dict, Any, Set, Tuple | |
| from urllib.parse import quote, urlencode |
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
| // The module 'vscode' contains the VS Code extensibility API | |
| // Import the module and reference it with the alias vscode in your code below | |
| import * as vscode from 'vscode'; | |
| import axios from 'axios'; | |
| import {prompts} from './prompts'; | |
| export const PROMPTS_ENUM : {[key:string] : string} = { | |
| 'jarvisgpt.refactor' : prompts.REFACTOR_PROMPT, | |
| 'jarvisgpt.explain': prompts.EXPLAIN_PROMPT, | |
| 'jarvisgpt.doc': prompts.DOC_PROMPT, |
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
| public class PayloadConverter<T>: ValueConverter<T, string> | |
| { | |
| public PayloadConverter() | |
| : base(from => JsonSerializer.Serialize(from, (JsonSerializerOptions) null), | |
| to => JsonSerializer.Deserialize<T>(to, (JsonSerializerOptions) null)) | |
| { | |
| } | |
| } |
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
| namespace Reflection.Extensions; | |
| public static class ReflectionExtensions | |
| { | |
| public static object? GetPropertyValue(object obj, string propertyName) | |
| { | |
| var propertyInfo = obj.GetType().GetProperty(propertyName); | |
| return propertyInfo?.GetValue(obj); |
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 re | |
| regex = r"(import \{ )?((\w+)[, ]+)(?=.*?(\} from '(@angular\/material)'))" | |
| ''' | |
| Put this script in root dir of your angular project | |
| Execute from terminal: python migration.py | |
| ''' | |
| # dict MatModule to lib inside @angular/material/name | |
| dict = { | |
| 'MatAutocompleteModule': 'autocomplete', | |
| 'MatButtonModule': 'button', |
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 argparse | |
| import os | |
| import cv2 | |
| import numpy as np | |
| BUILD_DIR = './build' | |
| VERSION = '0.5' | |
| if __name__ == "__main__": |
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
| :root { | |
| --primary: rgb(1, 1, 133); | |
| } | |
| *,*::after, *::before{ | |
| margin:0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } |
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 React, { Component } from 'react'; | |
| import api from '../../services/api'; | |
| import './styles.css'; | |
| import './loader.css'; | |
| export default class TodoItem extends Component { | |
| state = { | |
| todoitem: {}, | |
| loading: true, |
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
| .calendar { | |
| display: grid; | |
| grid-template-columns: auto; | |
| grid-template-rows: 1fr 16fr; | |
| align-items: center; | |
| justify-content: center; | |
| grid-gap: 0em; | |
| } | |
| html { |
NewerOlder