Skip to content

Instantly share code, notes, and snippets.

@agirton
agirton / index.js
Last active December 28, 2015 03:08
Test
var HelloWorld = React.createClass({
render: function() {
return (
<h1>Hello World</h1>
);
}
});
ReactDOM.render(<HelloWorld />, document.querySelector('main'));
@agirton
agirton / webpack.config.js
Created November 19, 2014 17:22
Basic Webpack Config
var webpack = require('webpack'),
path = require('path');
module.exports = {
devtool: 'source-map',
entry: [
'./src/app/Main'
],
output: {
path: path.join(__dirname, 'src', 'bundle'),
@agirton
agirton / archiveInbox.gs
Created August 31, 2014 17:00
Gmail App Auto Archive
/**
* Archive all read emails that have been read and
* it has been 7 days.
*
*/
function archiveInbox() {
// search for threads based on following parameters
var threads = GmailApp.search('label:inbox is:read older_than:7d');
for(var i=0; i<threads.length; i++) {
@agirton
agirton / pr.md
Created April 21, 2014 15:27 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

* {
padding: 0;
margin: 0;
}
html {
-webkit-perspective: 1000;
background-color: #6b6b6b;
height: 100%;
width: 100%;
@agirton
agirton / dabblet.css
Created May 29, 2012 03:36
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
/**
* Venn
*/
html {
min-height: 100%;
}
.main-circle {
border: 3px solid #f0f0f0;
border-radius: 50%;
@agirton
agirton / dabblet.css
Created May 1, 2012 17:56
Image Slide In W/ Dogs
/**
* Image Slide In W/ Dogs
*/
body {
-webkit-transform: translate3d(0,0,0);
}
.first-dog {
-webkit-animation: bounceInLeft 1s;
/**
* CSS3
*/
html {
background: #32CA37;
background: linear-gradient(45deg, #666, #C1E0C2);
min-height: 100%;
}
ul {
/**
* CSS3
*/
html {
background: #32CA37;
background: linear-gradient(45deg, #666, #C1E0C2);
min-height: 100%;
}
ul {