Skip to content

Instantly share code, notes, and snippets.

James Martin jamesnotjim

View GitHub Profile
@twmilli
twmilli / Button.js
Created May 4, 2017
Simple Button in React Native
View Button.js
import React from 'react';
import { StyleSheet, Text, TouchableOpacity } from 'react-native';
const Button = (props) => {
const { buttonStyle, textStyle } = styles;
return (
<TouchableOpacity style={buttonStyle} onPress={props.onPress}>
<Text style={textStyle}>
{props.children}
</Text>
</TouchableOpacity>
@Joel-James
Joel-James / countdown-redirect.html
Last active Mar 21, 2019
Count Down Redirect Uisng JavaScript
View countdown-redirect.html
<!-- Modify this according to your requirement -->
<h3>
Redirecting to duckdev.com after <span id="countdown">10</span> seconds
</h3>
<!-- JavaScript part -->
<script type="text/javascript">
// Total seconds to wait
var seconds = 10;
@martinbuberl
martinbuberl / sublime-command-line.md
Last active Mar 18, 2019 — forked from adrianorsouza/sublime-command-line.md
Launch Sublime Text from the command line on OSX
View sublime-command-line.md

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.

Requirements

  • Sublime text 2 or 3 installed in your system within Applications folder

Setup

View HTML5 Skeleton template.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
You can’t perform that action at this time.