Some notes on React Server Components (specifically the streaming wire format), Next.js v13+ (specifically __next_f), and Webpack.
| /** | |
| As seen on twitch.tv/cassidoo | |
| */ | |
| // A function that validates an email address | |
| function validateEmail(email) { | |
| const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | |
| return re.test(email); | |
| } | 
| """ | |
| This is an extended HTTP response class for Django >=2.0 that adds lots of fancy features. | |
| It's most useful when needing to accellerate slow view functions that return templates, | |
| but it can be used anywhere where you need to return an HTTPResponse() or render(...). | |
| It works by subclassing the builtin Django HttpResponse and StreamingHttpResponse, | |
| and adding improvements in many areas, including functionality, speed, and security. | |
| The most up-to-date version of this code can be found here: | 
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
| 'use strict'; | |
| var React = require('react-native'); | |
| var { | |
| Bundler, | |
| StyleSheet, | |
| Text, | |
| TouchableHighlight, | |
| View, | |
| ScrollView, | 
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
| python pp.py <ファイル名> [インデント数] | 
| #!/bin/sh | |
| # Usernames who will be using the Dropbox service | |
| DROPBOX_USERS="username" | |
| DAEMON=.dropbox-dist/dropboxd | |
| start() { | |
| echo "Starting dropbox..." | |
| for dbuser in $DROPBOX_USERS; do | 
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Mathieu 'p01' Henri http://www.p01.org/releases/ | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | 
| /* | |
| Usage: | |
| // In app.js | |
| var balanced = require('./this-file.js'); | |
| balanced.configure({ | |
| secret: '...', | |
| marketplaceUri: '...' | |
| }); |