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
{ | |
"type": "AdaptiveCard", | |
"version": "1.0", | |
"body": [ | |
{ | |
"type": "ColumnSet", | |
"columns": [ | |
{ | |
"type": "Column", | |
"width": 1, |
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
import tweepy | |
import time | |
import datetime | |
import requests | |
import uuid | |
import pymongo | |
from pymongo import MongoClient | |
def limit_handler(cursor): |
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
# Login to Azure | |
az login | |
# This will also give you a list of your current subscriptions | |
# To get an organized list of subscriptions in a tabular format | |
az account list --output table | |
# If you are not set to the default Subscription you want to use. Issue this command | |
# Use az account set with the subscription ID or name you want to switch to | |
az account set --subscription "The Name of the Subcription Here" |
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
version: "3" | |
services: | |
web: | |
image: "fabianwilliams/fabsevalswebapi" | |
build: . | |
ports: | |
- "8000:80" | |
depends_on: | |
- db | |
db: |
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
Docker | |
docker-machine ls (this list all the machine that you have locally) | |
docker-machine start [machine name] | |
docker-machine stop [machine name] | |
docker-machine env [machine name] | |
docker-machine ip [machine name] | |
docker-machine status [machine name] | |
docker ps (this list all containers) |
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
#Understanding the Graph Metadata Model | |
https://graph.microsoft.com/beta/$metadata | |
#Get Information about Users | |
https://graph.microsoft.com/v1.0/users/[email protected] | |
#Now try it with Beta | |
https://graph.microsoft.com/beta/users/[email protected] | |
https://graph.microsoft.com/beta/users/[email protected] | |
#Now try it and pull only certain properties | |
https://graph.microsoft.com/beta/users/[email protected]?$select=displayName,aboutMe,skills |
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
//Calls to graph Api from Postman for Demos |
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
1. Navigate to the Directory you want your Project to be in | |
2. install -g express-generator | |
3. this will install Express Generator Globally on your system if it is not already installed | |
4. express projectNameHere | |
5. this creates a bunch of folders and files for you and will give you the scaffolding you need for your project | |
its install will include packages that may not be installed on your system and not in your packages.json file so | |
6. npm install | |
7. thats it. if you run npm start it will spin up your site | |
8. you can start to use and customize the app.js file typically i will switch the view engine to use ejs over jade | |
9. locate the line in app.js and change it from jade to ejs |
NewerOlder