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
#!/usr/bin/env bash | |
# | |
# find-text: Find text or regex in a given path with context display, | |
# and omitting temp folders. | |
# | |
if [ "$1" == "-h" -o "$1" == "--help" ] | |
then | |
cat >&2 <<-'EOF' | |
find-text: find text or regex in a given path with context display, |
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 serialize from 'serialize-javascript'; | |
import path from 'path'; | |
import fs from 'fs'; | |
import React from 'react'; | |
import ReactDOMServer from 'react-dom/server'; | |
export default <P>( | |
App: React.ReactElement<P>, | |
globalState: string | undefined, | |
): Promise<string> => new Promise((resolve, reject) => { |
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
# YMMV | |
from django.conf import settings | |
from django.contrib.auth.models import Group, Permission | |
from django.core.management.sql import emit_post_migrate_signal | |
from django.db import migrations, models | |
import django.db.models.deletion | |
import logging | |
OlderNewer