| name | quiz |
|---|---|
| description | Quiz the user on a diff so they can explain the changes to colleagues before committing. 5–7 questions, mix of multiple choice and short answer, one at a time, two attempts each, score at the end. Use when the user invokes /quiz, or says "quiz me", "test my understanding", "make sure I understand this before I commit", "do I get these changes". Not a code review — this checks the user's understanding, not the code's quality. |
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
| git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D |
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
| /* ==UserStyle== | |
| @name ProtonMail DeepDark | |
| @namespace gitlab.com/RaitaroH/ProtonMail-DeepDark | |
| @homepageURL https://gitlab.com/RaitaroH/ProtonMail-DeepDark | |
| @version 1.0.4 | |
| @updateURL https://gitlab.com/RaitaroH/ProtonMail-DeepDark/raw/master/ProtonMail-DeepDark.user.css | |
| @description Emails should be written and read in the dark. May the dark be kinder on thine eyes. (PrtonMail dark theme) | |
| @author RaitaroH | |
| @license GNU-V3.0 | |
| ==/UserStyle== */ |
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
| /* =========================================== * | |
| * DARK BUBBLE GUM THEME | |
| * Version: 3.12.0 | |
| * Author: Cristiano Almeida | |
| * Website: www.csalmeida.com | |
| * Tweets @_csalmeida | |
| * =========================================== */ | |
| .headerDesktop-container { | |
| background-color: #1C1C1C; | |
| } |
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
| module Story exposing (Model, init, view) | |
| import Html exposing (Html, span, text) | |
| type alias Model = | |
| { id : Int | |
| , title: String | |
| } | |
| init : Int -> String -> Model |
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
| const config = Object.assign({}, require(`./webpack.${process.env.NODE_ENV}`), pkgOpts) | |
| config.entry.push(`${pkg}/build/init`) | |
| config.output.filename = `${pkg}.js` | |
| config.plugins.push( | |
| new HtmlWebpackPlugin({ | |
| favicon: 'src/favicon.ico', | |
| title: pkgOpts.name || 'Needs a name', | |
| }) | |
| ) | |
| const compiler = webpack(config) |
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
| license: gpl-3.0 |
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
| export function createCharacter(char) { | |
| return dispatch => { | |
| dispatch(submitCharacter(char)); | |
| return request.post('/new-character') | |
| .send(JSON.stringify(char)) | |
| .then((response) => { | |
| dispatch(routeToNewCharacter(response.body.id)); | |
| }, (error) => { | |
| dispatch(receiveCharError(error.message)); | |
| }); |
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
| # Use superagent's standard plugin architecture: | |
| # superagent.get('/some/url').use(agentInterceptor).end(function(res){...}); | |
| agentInterceptor = (res) -> | |
| Request = superagent.Request | |
| oldCb = Request.prototype.callback | |
| Request.prototype.callback = (err, r) -> | |
| switch r.status | |
| when 404 | |
| some404Func() |
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
| ### | |
| Multi-item carousel. | |
| Written by Kevin Whitaker | |
| Apply to a div to create a carousel out of a contained UL. | |
| Animation is handled by CSS. | |
| HTML structure looks like this: | |
| <div id="#some-id"> | |
| <div class="carousel-wrap"> | |
| <ul class="carousel-list"> |
NewerOlder