Skip to content

Instantly share code, notes, and snippets.

pablopaul

Block or report user

Report or block pablopaul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pablopaul
pablopaul / testing-react-components.js
Last active Apr 18, 2018 — forked from peduarte/testing-react-components.txt
Fix "ReferenceError: document is not defined" in jsdom + enzyme + ava environment.
View testing-react-components.js
/*
* Step 1
*/
npm install --save-dev jsdom
/*
* Step 2 (http://airbnb.io/enzyme/docs/guides/jsdom.html)
*
* test-browser-env.js
@pablopaul
pablopaul / deploy.rb
Last active Feb 5, 2019 — forked from cannikin/deploy.rb
Notify Sentry of a new release via Capistrano with Auth Token
View deploy.rb
# This task will notify Sentry via their API[1] that you have deployed
# a new release. It uses the release timestamp as the `version`
# (like 20151113182847) and the git ref as the optional `ref` value.
#
# This task requires several environment variables be set (or just
# hardcode the values in here if you like living on the edge):
#
# ENV['SENTRY_API_ENDPOINT'] : API endpoint, https://app.getsentry.com
# ENV['SENTRY_ORG'] : the organization for this app
# ENV['SENTRY_PROJECT'] : the project for this app
@pablopaul
pablopaul / index.html
Created Aug 19, 2016 — forked from anonymous/index.html
JS Bin React workshop boilerplate // source https://jsbin.com/xopuni
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="React workshop boilerplate">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"/>
<style type="css">
@pablopaul
pablopaul / index.html
Last active Aug 18, 2016 — forked from anonymous/index.html
Getting Started with Redux - JSBin implementation - updated libs - forked from https://gist.github.com/jbinto/780d6b5cfab25b14b991 - source http://jsbin.com/tigakegijo
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="https://fb.me/react-15.3.0.min.js"></script>
<script src="https://fb.me/react-dom-15.3.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-redux/4.4.5/react-redux.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
@pablopaul
pablopaul / debug_dalek_http_auth.js
Last active Dec 21, 2015 — forked from asciidisco/dalek_flocke.js
For debug url with HTTP Auth
View debug_dalek_http_auth.js
module.exports = {
'A lot of screenshots': function (test) {
var resolutions = [{width: 1280, height: 1024}, {width: 1024, height: 768}, {width: 800, height: 600}];
var pages = ['http://123:www@google.com'];
resolutions.forEach(function (res) {
pages.forEach(function (page) {
test.open(page)
.resize(res)
You can’t perform that action at this time.