Podfile
target 'yourAppNameHere' do
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'BatchedBridge', # Required For React Native 0.45.0+
'Core',
import WebKit | |
import UIKit | |
class WebViewController: UIViewController { | |
var url: URL! | |
var wKWebView: WKWebView! | |
@IBOutlet weak var containerView: UIView! | |
@IBOutlet weak var goBackButton: UIBarButtonItem! | |
@IBOutlet weak var goForwardButton: UIBarButtonItem! |
// | |
// RCTViewController.swift | |
// Grocerest | |
// | |
// Created by Davide Bertola on 15/03/2017. | |
// | |
import Foundation | |
import UIKit |
# Have origin be your fork, upstream is upstream. | |
$ git remote -v | |
origin git@github.com:jbeda/kubernetes.git (fetch) | |
origin git@github.com:jbeda/kubernetes.git (push) | |
upstream git@github.com:kubernetes/kubernetes.git (fetch) | |
upstream git@github.com:kubernetes/kubernetes.git (push) | |
# Make some changes to a bunch of files in a multi commit PR | |
# Find the commit you want to tweak, copy the hash |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
package main | |
import ( | |
"github.com/graphql-go/graphql" | |
) | |
var queryType = graphql.NewObject(graphql.ObjectConfig{ | |
Name: "Query", | |
Fields: graphql.Fields{ | |
"latestPost": &graphql.Field{ |
@GQLQuery | |
class CommentsAndLikes extends React.Component { | |
static queries = { | |
commentAndLikes() { | |
return ` | |
likes { | |
id, | |
user { | |
id | |
} |
import React from 'react'; | |
import {fromJS} from 'immutable'; | |
import ServerError from '../app/components/shared/ServerError.jsx'; | |
class Renderer { | |
constructor(services, callback, req) { | |
this.services = services; | |
if (typeof callback === 'function') { |
# | |
# Still a lot to do, but it works! | |
# Been looking at how to do this for a long time | |
# | |
# Todo: good quality ecryption | |
# Todo: in memory resources (right now it is self extracting) | |
# Todo: check windows, should work but probably needs some tweaking |