Commands to get commit statistics for a Git repository from the command line -
using git log
, git shortlog
and friends.
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
Context | |
======= | |
The first session should be the "context", which shall be composed minimally of: 1) a brief description of what we have, and; 2) a brief description of what we want to do. | |
Include references to complementary material when necessary, e.g.: link to github repo, docs, etc, but please make sure the ticket description is complete, meaning one can have a reasonable estimate of the effort by the content of the ticket alone. | |
To Do | |
==== |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
// One strategy is to include type info as the first 'n' parameters | |
fmt.Println(genericAdd("int", 1, 2)) | |
fmt.Println(genericAdd("string", "1", "2")) |
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 os | |
from myapp import app | |
secret_key = os.environ.get('SECRET_KEY', None) | |
if not secret_key: | |
raise ValueError('You must have "SECRET_KEY" variable') | |
app.config['SECRET_KEY'] = secret_key |
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
de | |
a | |
o | |
que | |
e | |
do | |
da | |
em | |
um | |
para |
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
File: APPNOTE.TXT - .ZIP File Format Specification | |
Version: 6.3.4 | |
Status: Final - replaces version 6.3.3 | |
Revised: October 1, 2014 | |
Copyright (c) 1989 - 2014 PKWARE Inc., All Rights Reserved. | |
1.0 Introduction | |
--------------- | |
1.1 Purpose |
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
class RectangularGrid { | |
public: | |
long long countRectangles(int width, int height) { | |
long long count = 0; | |
for(int w = 0; w < width; ++w) { | |
for(int h = 0; h < height; ++h) { | |
if( w == h ) continue; | |
count += (height-h) * (width-w); | |
} |
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
#include <vector> | |
#include <map> | |
using namespace std; | |
class YahtzeeScore { | |
public: | |
int maxPoints(vector<int> toss) { | |
map<int, int> sum; | |
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
#include <vector> | |
#include <string> | |
#include <algorithm> | |
#include <cmath> | |
using namespace std; | |
bool compare(string a, string b) { | |
return a.length() < b.length(); | |
} |
NewerOlder