Skip to content

Instantly share code, notes, and snippets.

View kevinrodbe's full-sized avatar
⚛️
Building Things

Kevin Rodríguez kevinrodbe

⚛️
Building Things
View GitHub Profile
<!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 {
@kevinrodbe
kevinrodbe / deploy.php
Last active August 29, 2015 14:26 — forked from krisnoble/deploy.php
A slightly modified version of Brandon Summers' script. For more information: http://simianstudios.com/blog/post/using-bitbucket-for-automated-deployment-of-multiple-repositories
<?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/';
@kevinrodbe
kevinrodbe / readme.md
Last active August 29, 2015 14:27 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

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

@kevinrodbe
kevinrodbe / README.md
Last active August 29, 2015 14:27 — forked from HenrikJoreteg/README.md
Minimalist routing in Redux

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')
@kevinrodbe
kevinrodbe / 00.howto_install_phantomjs.md
Last active September 22, 2015 02:30 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@kevinrodbe
kevinrodbe / footer.php
Created December 27, 2015 08:55 — forked from sapegin/footer.php
RequireJS in Wordpress theme
@kevinrodbe
kevinrodbe / GSAP-RequireJS.js
Created January 31, 2016 21:23
The main-req.js file example by GreenSock
//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]){
@kevinrodbe
kevinrodbe / _simple-grid.scss
Created May 14, 2016 00:39 — forked from martinwolf/_simple-grid.scss
SCSS: Simple Grid
$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;
@kevinrodbe
kevinrodbe / gulpfile.js
Created July 24, 2016 01:45 — forked from Sigmus/gulpfile.js
gulpfile.js with browserify, reactify, watchify and gulp-notify.
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';