Skip to content

Instantly share code, notes, and snippets.

View fauc3t's full-sized avatar

Nicholas Horn fauc3t

View GitHub Profile
import React from 'react';
function App() {
return (
);
}
export default App;
import React from 'react';
function Page(props) {
return (
<h2>{props.title}</h2>
);
}
export default Page;
server {
# The root build location for the client-side application
root /var/www/react-vanilla-next-side-by-side/client-side/build;
# Next.js static content location
location /_next/static {
proxy_pass http://127.0.0.1:3000;
}
#
import React from 'react';
import Head from 'next/head'
const title = 'Sample About';
const description = 'Testing side by side';
function About() {
return (
<div>
<Head>
server {
# The root build location for the client-side application
root /var/www/react-vanilla-next-side-by-side/client-side/build;
# Next.js static content location
location /_next/static {
proxy_pass http://127.0.0.1:3000;
}
#
import React from 'react';
import Head from 'next/head'
const title = 'Blog Post 1';
const description = 'Testing side by side';
function BlogPost() {
return (
<div>
<Head>
import React from 'react';
import Head from 'next/head'
const title = 'Sample About';
const description = 'Testing side by side';
function About() {
return (
<div>
<Head>
import React from 'react';
import Head from 'next/head'
const title = 'Sample About';
const description = 'Testing side by side';
function About() {
return (
<div>
<Head>
@fauc3t
fauc3t / UIViewExtensions.cs
Created August 23, 2018 12:14
resign-first-responder-extension
public static void ResignFirstResponderOnTap(this UIView view)
{
var gesture = new UITapGestureRecognizer(() => {
view.EndEditing(true);
});
gesture.CancelsTouchesInView = false; //for iOS5
view.AddGestureRecognizer(gesture);
}
@fauc3t
fauc3t / ViewController.cs
Created August 23, 2018 12:14
resign-first-responder-ontap
View.ResignFirstResponderOnTap(); //SEE BELOW