import React from 'react'
import requests as requestslib from 'requests'
let nothing = null
let integerNumber = 0
let floatingPointNumber = 1.0
let text = 'Hello World'
let numbers = [1, 2, 3, 4, 5]
let data = {name: 'John', username: 'john'}
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 django.db import models | |
| class CustomQuerySet(models.QuerySet): | |
| def get(self, *args, **kwargs): | |
| try: | |
| return super().using('readonly').get(*args, **kwargs) | |
| except self.model.DoesNotExist: | |
| return super().using('default').get(*args, **kwargs) |
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
| /* open up chrome dev tools (Menu > More tools > Developer tools) | |
| * go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading) | |
| * right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR | |
| * open up JS console and enter: var har = [paste] | |
| * (pasting could take a while if there's a lot of requests) | |
| * paste the following JS code into the console | |
| * copy the output, paste into a text file | |
| * open up a terminal in same directory as text file, then: wget -i [that file] | |
| */ |
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 uuid | |
| from django.db import models | |
| # Use the import below instead, if using GeoDjango fields | |
| # from django.contrib.gis.db import models | |
| from django.utils.translation import ugettext_lazy as _ | |
| from django.contrib.postgres.fields import ( | |
| ArrayField, | |
| CICharField, | |
| CIEmailField, |
In your command-line run the following commands:
brew doctorbrew update
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
| let UserContext = React.createContext(); | |
| class App extends React.Component { | |
| state = { | |
| user: null, | |
| setUser: user => { | |
| this.setState({ user }); | |
| } | |
| }; |
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, { useState } from 'react'; | |
| const initialState = { | |
| app: { | |
| hasLoaded: false | |
| } | |
| }; | |
| const AppContext = React.createContext(initialState); |
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
| <!doctype html> | |
| <html lang="pt-br"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <title>List</title> | |
| </head> | |
| <body> | |
| <input type="text" onInput="filter(this.value)" /> | |
| <ul></ul> |
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
| <meta name="theme-color" content="#FFFFFF"> | |
| <meta name="description" content="Lorem ipsum"> | |
| <meta property="twitter:card" content="summary_large_image"> | |
| <meta property="twitter:site" content="@qualifique.me"> | |
| <meta property="twitter:title" content="Qualifique me"> | |
| <meta property="twitter:description" content="Lorem ipsum"> | |
| <meta property="twitter:image" content="https://assets.qualifique.me/image/upload/front/qualifique/twitter-card.png"> | |
| <meta property="og:title" content="Qualifique me"> |
NewerOlder