Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
atom-text-editor { | |
-webkit-font-smoothing: antialiased; | |
} | |
atom-text-editor::shadow{ | |
.storage.type.function.arrow, .operator { | |
font-family: 'FiraCode-Retina'; | |
text-rendering: optimizeLegibility; | |
vertical-align: baseline; | |
} |
require('babel-register') | |
const express = require('express') | |
const React = require('react') | |
const ReactDOMServer = require('react-dom/server') | |
const ReactRouter = require('react-router') | |
const ServerRouter = ReactRouter.ServerRouter | |
const App = require('./src/App').default | |
const path = require('path') | |
const Helmet = require('react-helmet') | |
const compression = require('compression') |
from django.utils.functional import curry | |
class DetailsInline(admin.TabularInline): | |
model = Details | |
# formset = DetailsFormset | |
extra = 3 | |
def get_formset(self, request, obj=None, **kwargs): | |
initial = [] | |
if request.method == "GET": |
# An example to get the remaining rate limit using the Github GraphQL API. | |
import requests | |
headers = {"Authorization": "Bearer YOUR API KEY"} | |
def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section. | |
request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers) | |
if request.status_code == 200: |
Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
<!DOCTYPE html> | |
<html lang="en"> | |
<title>htm Demo</title> | |
<body> | |
<h1>no build preact htm app here:</h1> | |
<div id="app"></div> | |
</body> | |
<script type="module"> | |
// -- no build example of preact + htm, useful for small proof of concept |