This file contains 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 from 'react'; | |
import { Route } from "react-router-dom"; | |
import TransitionGroup from "react-transition-group/TransitionGroup"; | |
import TransitionedPage from './transitionedPage'; | |
const HomePage = () => <div>Home</div> | |
const ContactPage = () => <div>Contact</div> | |
const firstChild = props => { |
This file contains 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 from 'react'; | |
import { Route } from "react-router-dom"; | |
import TransitionGroup from "react-transition-group/TransitionGroup"; | |
import TransitionedPage from './transitionedPage'; | |
const HomePage = () => <div>Home</div> | |
const ContactPage = () => <div>Contact</div> | |
const App = () => { |
This file contains 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 RETRIES = 10; | |
[...Array(RETRIES).keys()].forEach(i => { | |
const timeout = Math.pow(2, i); | |
console.log(timeout); | |
}); |
This file contains 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
<html> | |
<head> | |
// ... | |
<link rel="manifest" href="/manifest.webmanifest"> |
This file contains 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
var Resizable = (function(window, $) { | |
'use strict'; | |
function Resizable(el, options) { | |
this.el = el; | |
this.$el = $(el); | |
this.init(); | |
return this; |
This file contains 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
angular.module('app', [ | |
'ngRoute' | |
]); | |
angular.module('app') | |
.constant('API_URL', '/api'); | |
angular.module('app').config(function($routeProvider) { | |
$routeProvider | |
.when('/books', { |
This file contains 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
angular.module('app', [ | |
'ngRoute', | |
'ngResource' | |
]); | |
angular.module('app') | |
.constant('API_URL', '/api'); | |
angular.module('app').config(function($routeProvider) { | |
$routeProvider |
This file contains 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 ng-app="app"> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script src="../bower_components/angular/angular.js"></script> | |
<script src="../bower_components/angular-route/angular-route.js"></script> | |
<script src="../bower_components/lodash/lodash.js"></script> | |
<script> |
This file contains 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
# Usage: IE={box} vagrant up | |
# | |
# Eg. IE=XPIE6 vagrant up | |
boxes = { | |
"XPIE6" => "http://aka.ms/vagrant-xp-ie6", | |
"XPIE8" => "http://aka.ms/vagrant-xp-ie8", | |
"VistaIE7" => "http://aka.ms/vagrant-vista-ie7", | |
"Win7IE8" => "http://aka.ms/vagrant-win7-ie8", | |
"Win7IE9" => "http://aka.ms/vagrant-win7-ie9", |
This file contains 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
angular.module('myApp', [ | |
'ui.router' | |
]).config(function($stateProvider, $locationProvider) { | |
$locationProvider.html5Mode(true); | |
$stateProvider | |
.state('home', { | |
url: '/', |
NewerOlder