Skip to content

Instantly share code, notes, and snippets.

View tigerraj32's full-sized avatar
💭
TDD Mission

Rajan Twanabashu tigerraj32

💭
TDD Mission
View GitHub Profile
@tigerraj32
tigerraj32 / collectionview.swift
Created February 1, 2018 10:14
Playing with CollectionViewController in playground
//: A UIKit based Playground for presenting user interface
import UIKit
import PlaygroundSupport
class MyCollectionVC: UICollectionViewController, UICollectionViewDelegateFlowLayout {
fileprivate let itemsPerRow = 3
@tigerraj32
tigerraj32 / nepal-pradesh-district.json
Last active October 18, 2019 07:34
District in Pradesh in Nepal
[
{
"id": "1",
"district": [
{
"id": "taplejung",
"eng": "Taplejung",
"nep": "ताप्लेजुङ"
},
{
use_frameworks!
# Pods for Connect
def allPods
pod 'Alamofire','~> 3.4.1'
pod 'IQKeyboardManager'
pod 'FMDB', '~> 2.6'
pod 'Toast-Swift', '~> 1.3.0'
pod 'Fabric'
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
var ComponentWithDefaultProps = React.createClass({
getDefaultProps: function() {
return {
value: 'default value'
};
}
});
------------------ or the other way ----------------------
'use strict'
import { Dimensions } from 'react-native'
import React, {View, DeviceEventEmitter} from 'react-native'
class SomeScene extends React.Component {
constructor (props) {
super(props)
this.state = {
visibleHeight: Dimensions.get('window').height
}
}
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';