Skip to content

Instantly share code, notes, and snippets.

View euforic's full-sized avatar

Christian Sullivan euforic

View GitHub Profile
@krizzu
krizzu / React_pod_instructions.md
Last active July 11, 2019 18:14
How to use React as pod.

This gist will show you how to install and use React from Pods.

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!
@davibe
davibe / example.swift
Created March 16, 2017 10:19
react-native swift module with no macros
//
// RCTViewController.swift
// Grocerest
//
// Created by Davide Bertola on 15/03/2017.
//
import Foundation
import UIKit
@jbeda
jbeda / gist:0fb9748db43ecb14f72f8662516a8047
Last active March 8, 2019 20:33
I love `git commit --fixup`
# 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
@ankurk91
ankurk91 / github_gpg_key.md
Last active April 9, 2024 16:34
Signing git commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@sogko
sogko / main.go
Last active August 3, 2016 07:37
hello-world-graphql-part-1 - Schema definition (golang)
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
}
@frikille
frikille / renderer.js
Created July 19, 2015 20:30
Isomorphic renderer
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') {
@boopathi
boopathi / README.md
Last active August 28, 2023 14:35
Creating a Swift-ReactNative project

Settings

  1. Create a project in XCode with the default settings
    • iOS > Application > Single View Application
    • Language: Swift
  2. Under project General settings, add ReactKit to Linked Framework and Libraries
    • + > Add Other... and choose /path/to/react-native/ReactKit/ReactKit.xcodeproj
  3. Now ReactKit would have been imported. Link it by choosing it from the list.
    • + > lib.ReactKit.a
  4. Under project Build Settings,
@bmeck
bmeck / run_it.sh
Last active August 29, 2015 13:57
Can't say how long I wanted to do this
#
# 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