Skip to content

Instantly share code, notes, and snippets.

View vagmi's full-sized avatar

Vagmi Mudumbai vagmi

View GitHub Profile
import React
@objc(CustomRNViewManager)
class CustomRNViewManager : RCTViewManager {
override func view() -> UIView! {
return CustomRNView()
}
}
import React
@objc(CustomRNViewManager)
class CustomRNViewManager : RCTViewManager {
override func view() -> UIView! {
return CustomRNView()
}
}
import UIKit
import React
import SnapKit
@objc(CustomRNView)
class CustomRNView : UIView {
var lblMessage:UILabel!
override init(frame: CGRect) {
import UIKit
import React
import SnapKit
class ViewController: UIViewController {
var rootView:RCTRootView!
override func viewDidLoad() {
super.viewDidLoad()
'use strict';
import React, {
Text,
View
} from 'react-native';
var styles = React.StyleSheet.create({
container: {
flex: 1,
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'IntegrateRN' do
pod 'React', :path => './node_modules/react-native', :subspecs => [
'Core',
'RCTImage',
'RCTNetwork',
'RCTText',
{
"name": "integrate-rn",
"version": "1.0.0",
"description": "",
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
@vagmi
vagmi / snl.clj
Last active September 12, 2015 11:37
Snakes and Ladders game built during code jugalbandhi at functional conf (http://confengine.com/functional-conf-2015/schedule#session-7464-info)
(ns snl.core
(:require [clojure.string :as str]
[clojure.pprint :as pp]))
(defonce game-state (atom {:players [] :board nil}))
(defn board! [] (:board @game-state))
(defn players! [] (:players @game-state))
(defn snakes! [] (:snakes (:board @game-state)))
(defn ladders! [] (:ladders (:board @game-state)))
@vagmi
vagmi / .tmux.conf
Created March 31, 2015 17:37
My Tmux config
setw -g xterm-keys on
set-option -g default-terminal "screen-256color"
set-option -g default-command "reattach-to-user-namespace -l zsh"
set-option -g set-titles on
bind-key | split-window -h
bind-key - split-window
setw -g mode-keys vi
set -sg escape-time 0
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
'use strict';
var React = require("react-native");
var { AppRegistry, StyleSheet, View, Text, ListView } = React;
var REDDIT_URL = "http://www.reddit.com/.json";