See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| /*-----QWidget-----*/ | |
| QWidget | |
| { | |
| background-color: #121212; | |
| color: #ffffff; | |
| border-color: #051a39; | |
| } |
| # ================================================================================================== | |
| # | |
| # NOTICE | |
| # | |
| # This gist is no longer maintained. It was moved to repo: | |
| # | |
| # https://github.com/maratori/golangci-lint-config | |
| # | |
| # Full history and all v2 releases are preserved in the repo. | |
| # |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| def calc_allocations(self, date, quantity, cap): | |
| """Figure out ideal allocations for a given date""" | |
| # { | |
| # coin_name: (percent_allocation, data) | |
| # } | |
| top_market = self.get_top_market(date, quantity) | |
| total_cap = sum([coin.market_cap for coin in top_market]) | |
| allocations = [{ |
| public class NamedParamStatement { | |
| public NamedParamStatement(Connection conn, String statementWithNames) throws SQLException { | |
| Pattern findParametersPattern = Pattern.compile("(?<!')(:[\\w]*)(?!')"); | |
| Matcher matcher = findParametersPattern.matcher(statementWithNames); | |
| while (matcher.find()) { | |
| fields.add(matcher.group().substring(1)); | |
| } | |
| prepStmt = conn.prepareStatement(statementWithNames.replaceAll(findParametersPattern.pattern(), "?")); | |
| } |
| var h = require('virtual-dom/h'); | |
| var diff = require('virtual-dom/diff'); | |
| var patch = require('virtual-dom/patch'); | |
| var createElement = require('virtual-dom/create-element'); | |
| var Delegator = require('./dom-delegator') | |
| var state = { | |
| clicks: function (ev) { | |
| delegator.unlistenTo('click') | |
| console.log(ev) |
| /* | |
| * Copyright (C) 2014 skyfish.jy@gmail.com | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| # Initial setup | |
| git clone -o framework -b develop https://github.com/laravel/laravel.git project-name | |
| cd project-name | |
| git checkout --orphan master | |
| git commit -m "Initial commit" | |
| # Pulling changes | |
| git fetch framework | |
| git merge --squash -m "Upgrade Laravel" framework/develop | |
| # Fix merge conflicts if any and commit |
Test with
$ sbt run
And then,
$ curl localhost:8080/mars/hi
$ curl localhost:8080/jupiter/hi