Skip to content

Instantly share code, notes, and snippets.

Per Nilsson coopy

Block or report user

Report or block coopy

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
View paywall remover
javascript: (function () {
var content = document.querySelectorAll('.article__premium-content')[0];
var intro = document.querySelectorAll('.article__lead')[0];
var payWall = document.querySelectorAll('#serviceplusPaywallpaywall-container')[0];
var social = document.querySelectorAll('.js-social-toolbar')[0];
var ghost = document.querySelectorAll('.article__body--mask .article__lead')[0]; = "visible"; = "block"; = "none";
View blocks.js
'use strict'
const WIDTH = 800
const HEIGHT = 600
const SIXTY_FPS_DELAY = 1000 / 60
function createContext () {
const canvas = document.getElementById('canvas')
canvas.width = WIDTH
canvas.height = HEIGHT
View Move wordpress domain
UPDATE wp_options SET option_value = replace(option_value, '', 'http://localhost:8888') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, '', 'http://localhost:8888');
UPDATE wp_postmeta SET meta_value = replace(meta_value, '', 'http://localhost:8888');
View gist:169fc59bcad9f86ac369
const Form = React.createClass({
// keeps state and re-renders <Input/> when `handleChange` is called back.
const Input = ({ inputValue, handleChange }) => {
return (
<input value={inputValue} onChange={(ev) => {handleChange(}}
coopy /
Last active Mar 26, 2019
Good git practices

Good Git Practices

1. Commit often!

  • Each commit in a final pull request should contain one logical change, and tests + checks should run.
  • While you're working on a branch, you should commit often, but you don't have to follow these rules. Instead, once your work is complete, you can use interactive rebase or reset to create new, better organized commits.

2. Squashing commits: No rebase required

coopy / posted more 2
Created Aug 4, 2013
more posted desc - edited
View posted more 2
some more posted body
coopy / posted more 2
Created Aug 4, 2013
more posted desc
View posted more 2
some more posted body
coopy / posted more
Created Aug 3, 2013
more posted desc
View posted more
some more posted body
coopy / posted
Created Aug 3, 2013
posted desc
View posted
posted body
You can’t perform that action at this time.