Skip to content

Instantly share code, notes, and snippets.

View headzoo's full-sized avatar
🎯
Focusing

Sean H headzoo

🎯
Focusing
View GitHub Profile
@headzoo
headzoo / script.user.js
Last active August 26, 2023 03:35
Tampermonkey script for DiscImg.
// ==UserScript==
// @name DiscImg Upload
// @namespace http://discimg.com/
// @version 0.1
// @description Upload images to DiscImg.
// @author contact@discimg.com
// @updateURL https://gist.githubusercontent.com/headzoo/85528e64de6642457cb1675cf3d3be4b/raw/
// @downloadURL https://gist.githubusercontent.com/headzoo/85528e64de6642457cb1675cf3d3be4b/raw/
// @match https://discuit.net/*
// @icon data:image/webp;base64,UklGRuIPAABXRUJQVlA4WAoAAAAwAAAAHwAAIwAASUNDUEgMAAAAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tc
@headzoo
headzoo / script.user.js
Last active August 17, 2023 00:41
Tampermonkey script that removes Discuit communities from the feeds.
// ==UserScript==
// @name Discuit Community Filter
// @namespace http://discuit.net/
// @version 0.1
// @description Exclude communities from your feeds on Discuit.
// @author You
// @match https://discuit.net/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @require https://raw.githubusercontent.com/soufianesakhi/node-creation-observer-js/master/release/node-creation-observer-latest.js
<?php
class UserController extends Controller
{
/**
* @Route("/u/{username}/favorites", name="profile_favorites")
*
* @param string $username
* @return Response
*/
public function favoritesAction(Request $request, $username)
@headzoo
headzoo / fetch.js
Last active October 18, 2017 22:32
fetch('/u/headzoo/favorites')
.then(function(resp) {
$('.up-profile__timeline').html(resp);
});
{% extends "AppBundle::base.html.twig" %} {% block title %}Account{% endblock %} {% block body %}
<h2 class="center-align up-page-title flow-text">
Account
</h2> {% include "AppBundle:_layout:flash-messages.html.twig" %}
<form method="post" enctype="multipart/form-data">
<div class="container">
<div class="row">
<div class="input-field col s6">
<input id="password" name="password" type="password" class="validate" autocomplete="off" />
<label for="password">Password</label>
import 'utils/polyfills';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Moment from 'react-moment';
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles';
import createPalette from 'material-ui/styles/palette';
import orange from 'material-ui/colors/orange';
import store from 'store/store';
import Room from 'components/Room';
@headzoo
headzoo / DelayLink.jsx
Created July 30, 2017 19:20
Wraps the React Router Link component and creates a delay after the link is clicked.
@headzoo
headzoo / designer.html
Last active August 29, 2015 14:19
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
@headzoo
headzoo / gist:f3fdd1d13c0af6fff2c4
Last active August 29, 2015 14:01
PhpStorm wrapper script for PHPUnit Skeleton Generator
#!/usr/bin/env php
<?php
/**
* PhpStorm wrapper script for PHPUnit Skeleton Generator
* ------------------------------------------------------
* This script is designed for use with projects which have the following directory structure:
* /project-dir
* /src
* /tests
* /vendor