brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| public async Task<string> CreateDocument(string collectionName, BsonDocument document) | |
| { | |
| string message = "nothing has happened"; | |
| var collection = _mongoDatabase.GetCollection<BsonDocument>(collectionName); | |
| //insert collection | |
| await collection.InsertOneAsync(document); | |
| message = "updated data"; | |
| return message; | |
| } |
| public async void DoLogic() | |
| { | |
| BsonDocument document; | |
| Console.WriteLine("This program will generate some data when option A is selected."); | |
| Console.WriteLine("Option B will find some data."); | |
| Console.WriteLine("Option C (any other input) will display data from database."); | |
| var input = Console.ReadLine(); |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using MongoDB.Bson; | |
| using MongoDB.Driver; | |
| using MongoDbWrapper; | |
| namespace MongoDbExampleDataGenerator |
| //pagination for all | |
| $scope.pagination = {}; | |
| $scope.pagination.pageSize = 3; | |
| $scope.pagination.currentPage = 1; | |
| $scope.pagination.totalPages = 1; | |
| $scope.pagination.totalItems = 0; | |
| $scope.pagination.hasNextPage = false; | |
| $scope.pagination.hasPreviousPage = false; | |
| function firstPage(fn){ |
| function mySexyMethod() { | |
| return new Promise(function (resolve, reject) { | |
| someAsync.method(params, function (err, data) { | |
| if (err) { | |
| return reject(err); | |
| } | |
| resolve(data); | |
| }) | |
| }); |
| # MIT License | |
| # Copyright (c) 2016 Chandler Abraham | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
| #!/usr/bin/env python | |
| # Pirate Radio | |
| # Author: Wynter Woods (Make Magazine) | |
| # Edited by @TRex22 (Jason Chalom) | |
| import os | |
| import sys | |
| import subprocess | |
| import configparser | |
| import re |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| #!/bin/bash | |
| # git config --global alias.addall '! ~/git_addall.sh' | |
| git diff|grep 'focus' --color | |
| git diff --name-only | xargs grep --color -Hn focus | |
| git diff|grep 'binding.pry' --color | |
| git diff --name-only | xargs grep --color -Hn binding.pry | |
| git add --all | |
| git status |