If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="UTF-8"> | |
<title>Drawing Tools</title> | |
<script type="text/javascript" | |
src="http://maps.google.com/maps/api/js?sensor=false&libraries=drawing"></script> | |
<style type="text/css"> | |
#map, html, body { |
<?php | |
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php | |
/** | |
* The root directory where the repos live. | |
* | |
* @var string | |
*/ | |
$root_dir = '/your/root/dir/'; |
Why would you want to do this? Because you often don't need more. It's nice to not have to think about your "router" as this big special thing.
Instead, with this approch, your app's current pathname
is just another piece of state, just like anything else.
This also means that when doing server-side rendering of a redux app, you can just do:
var app = require('your/redux/app')
var React = require('react')
//NOTES: | |
// | |
// 1) If you're loading TweenMax, you could map all of the following to the TweenMax JS file since it | |
// contains them all (thus it'd save some kb): TweenLite, TimelineLite, TimelineMax, CSSPlugin, | |
// BezierPlugin, AttrPlugin, DirectionalRotationPlugin, and EasePack. For example, | |
// TweenLite: "./greensock/TweenMax". But we'll use each file independently below to show how. | |
// | |
// 2) If you're only loading TweenLite and/or TimelineLite and you want to animate CSS-related properties, | |
// you should also load CSSPlugin. If you're using TweenMax, it already contains CSSPlugin, TweenLite, | |
// TimelineLite, TimelineMax, EasePack, AttrPlugin, DirectionalRotationPlugin, and BezierPlugin. |
var scrapurl = []; | |
$("a[target=_blank]").not(".btn").each(function(){ | |
var $yo = $(this); | |
scrapurl.push($yo.attr("href")); | |
}) | |
singleScrap(scrapurl,0); | |
var conseguidos = ""; | |
function singleScrap(scrapurl,ind){ | |
if(scrapurl[ind]){ |
$width-grid: 940px; | |
$grid-gap: 20px; | |
// $grid-padding: $grid-gap/2; | |
$grid-item-1-2: ($width-grid - $grid-gap) / 2; | |
$grid-item-1-3: ($width-grid - ($grid-gap * 2)) / 3; | |
$grid-item-1-4: ($width-grid - ($grid-gap * 3)) / 4; | |
$grid-item-1-5: ($width-grid - ($grid-gap * 4)) / 5; | |
$grid-item-1-6: ($width-grid - ($grid-gap * 5)) / 6; |
var source = require('vinyl-source-stream'); | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var browserify = require('browserify'); | |
var reactify = require('reactify'); | |
var watchify = require('watchify'); | |
var notify = require("gulp-notify"); | |
var scriptsDir = './scripts'; | |
var buildDir = './build'; |