This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name DiscImg Upload | |
// @namespace http://discimg.com/ | |
// @version 0.1 | |
// @description Upload images to DiscImg. | |
// @author [email protected] | |
// @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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class UserController extends Controller | |
{ | |
/** | |
* @Route("/u/{username}/favorites", name="profile_favorites") | |
* | |
* @param string $username | |
* @return Response | |
*/ | |
public function favoritesAction(Request $request, $username) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch('/u/headzoo/favorites') | |
.then(function(resp) { | |
$('.up-profile__timeline').html(resp); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { Link } from 'react-router-dom'; | |
/** | |
* Wraps the React Router Link component and creates a delay after the link is clicked. | |
*/ | |
export default class DelayLink extends React.Component { | |
static propTypes = { | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |