"scripts": { "postinstall": "rndebugger-open" }
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
func bottlesLyrics(numberOfBottles: Int) { | |
for bottles in (1...numberOfBottles).reversed() { | |
let bottlesMinusOne = bottles - 1 | |
let bottleTag = bottles == 1 ? "bottle" : "bottles" | |
var computedString = "" | |
if bottlesMinusOne == 0 { | |
computedString = "no more bottles" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const courseMap = { | |
C: ['A', 'B', 'F', 'H', 'D', 'G'], | |
B: ['K', 'L'], | |
H: ['E', 'J'], | |
D: ['A', 'B'] | |
}; | |
const learnCourse = (course) => { | |
const coursesChecked = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Firebase rules for restricting logged in users to their own bucket. SOmething like multi tenancy | |
{ | |
"rules": { | |
"users": { | |
"$uid": { | |
".read": "$uid === auth.uid", | |
".write": "$uid === auth.uid" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const counter = (state=0, action) => { | |
switch(action.type) { | |
case 'INCREMENT': | |
return state + 1; | |
case 'DECREMENT': | |
return state - 1; | |
default: | |
return state; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* @flow | |
*/ | |
import React, { Component } from "react"; | |
import { Text, View, StatusBar, Platform, Button } from "react-native"; | |
const MyStatusBar = ({ backgroundColor, ...props }) => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { View, Text } from 'react-native'; | |
import { Router, Scene, Actions } from 'react-native-router-flux'; | |
import Icon from 'react-native-vector-icons/Ionicons'; | |
import Shows from './OnAir'; | |
import Stations from './Stations'; | |
const TabIcon = props => { | |
console.log('selected', props.selected); //undefined | |
return ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" don't bother with vi compatibility | |
set nocompatible | |
" enable syntax highlighting | |
syntax enable | |
" configure Vundle | |
filetype on " without this vim emits a zero exit status, later, because of :ft off | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...document.querySelectorAll('.invite-card')].forEach((card) => { | |
const acceptBtn = card.querySelector('.bt-invite-accept'); | |
acceptBtn.click(); | |
}); |