This file contains 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
paste <(fortune | cowsay -f ren) <(fortune | cowsay -f stimpy) | pr -t -e100 |
This file contains 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
export default { | |
data() { | |
return { | |
loading: false, | |
loadingText: null, | |
}; | |
}, | |
methods: { | |
load(promise, text) { |
This file contains 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
function mountWatch(propName, methodName) { | |
const mixin = { | |
mounted() { | |
this[methodName](); | |
}, | |
watch: { | |
[propName]() { | |
this[methodName](); | |
}, |
This file contains 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 New Bitbucket Eyebleach | |
// @namespace http://minge.party/ | |
// @version 0.1 | |
// @description Changes the color of the bitbucket sidebar to the old one. | |
// @author AlbinoDrought | |
// @match *://bitbucket.org/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
/** | |
v-bubble directive | |
Usage: | |
- v-bubble:eventName | |
- v-bubble:eventName="newEventName" | |
Examples: | |
- v-bubble:input is equivalent to @input="val => { $emit('input', val) }" | |
- v-bubble:input="select" is equivalent to @input="val => { $emit('select', val) }" |
This file contains 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 | |
namespace App\Http\Responses; | |
use Illuminate\Http\JsonResponse; | |
class NullableJsonResponse extends JsonResponse | |
{ | |
public function __construct($data = null, $status = 200, array $headers = [], $options = 0) | |
{ |
This file contains 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
#!/bin/sh | |
# create-index.sh | |
# Creates an ES6-compatible index.js file for all files in a folder. | |
# | |
# Usage: | |
# ./create-index.sh src/ | |
# Recursive Usage: | |
# ls -R src/ | grep : | sed 's/://' | xargs -I@ ./create-index.sh @ | |
# |
This file contains 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
/* | |
Ever have this issue? | |
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. | |
Swap your bindings in mounted() to: | |
this.bindEvent(serviceInstance, 'foo', () => { | |
console.log('hello world'); | |
}, true); |
This file contains 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 Anti-Squishy | |
// @version 0.0 | |
// @match https://bitbucket.org/*/issues | |
// @grant none | |
// ==/UserScript== | |
window.document.styleSheets[0].insertRule('@media (max-width:1200px){table.issues-list thead tr th:nth-child(1){min-width:500px}}', window.document.styleSheets[0].length); |
This file contains 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
# Press ctrl+a to amend the last commit with whatever is staged | |
bind status <Ctrl-A> !git commit --amend | |
# Press shift+p to push | |
# requires `git config --global push.default current` | |
bind status P !git push -u |