Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details> tag!
<details>
Summary Goes Here| <?php | |
| function random_exception() | |
| { | |
| foreach(get_declared_classes() as $class) { | |
| $exceptions = []; | |
| if (substr($class, -9) === 'Exception') { | |
| $exceptions[] = $class; | |
| } | |
| $exception = $exceptions[array_rand($exceptions)]; |
| ca () { | |
| message=$(curl -s whatthecommit.com/index.txt) | |
| git add . | |
| git commit -a -m "$message"; | |
| } |
The list is now hosted on a repository so you can PR -> https://github.com/jeroenvdgulik/awesome-talks/blob/master/README.md
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| SHELL := /bin/bash | |
| .PHONY: phar clean help | |
| .DEFAULT_GOAL := help | |
| phar: ## Build a phar file | |
| mkdir -p dist/ | |
| rm -f dist/bownty-infra.phar | |
| php build.php | |
| chmod 0775 dist/bownty-infra.phar |
| { | |
| "require": { | |
| "silex/silex": "1.3.*", | |
| "symfony/twig-bridge": "2.7", | |
| "twig/twig": "1.23.*" | |
| } | |
| } |
| <?php | |
| namespace Xoip\Component\ValueObject; | |
| interface Collection extends \IteratorAggregate, \Countable | |
| { | |
| /** | |
| * Adds an element at the end of the collection. | |
| * | |
| * @param ValueObject $object The object to add. | |
| * |
| require 'net/http' | |
| require 'json' | |
| require 'uri' | |
| @token = '' | |
| def list_files | |
| ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
| params = { | |
| token: @token, |
| // ==UserScript== | |
| // @name Monster Minigame Auto-script | |
| // @namespace https://github.com/wchill/steamSummerMinigame | |
| // @description A script that runs the Steam Monster Minigame for you. Modified from mouseas's original version to include autoclick. | |
| // @version 1.0 | |
| // @match http://steamcommunity.com/minigame/towerattack* | |
| // @updateURL https://raw.githubusercontent.com/wchill/steamSummerMinigame/master/autoPlay.js | |
| // @downloadURL https://raw.githubusercontent.com/wchill/steamSummerMinigame/master/autoPlay.js | |
| // ==/UserScript== |