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
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
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
[user] | |
name = Full Name | |
email = [email protected] | |
[alias] | |
summary = log --oneline --decorate --branches --graph | |
summary-authors = log --graph --branches --format='%C(auto)%h%C(blue)<%ae>%Cgreen%ar%Creset %C(auto)%d%Creset%s' | |
csv = log --all --format='%H,%P,%ae,%aI,"%s"' | |
[core] | |
editor = emacs -nw |
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 | |
from wordcloud import WordCloud | |
import matplotlib.pyplot as plt | |
consumer_key = '' | |
consumer_secret = '' | |
access_token = '' | |
access_token_secret = '' |
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 os | |
import tweepy | |
consumer_key = os.environ['CONSUMER_KEY'] | |
consumer_secret = os.environ['CONSUMER_SECRET'] | |
access_token = os.environ['ACCESS_TOKEN'] | |
access_token_secret = os.environ['ACCESS_TOKEN_SECRET'] |
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
from datetime import datetime | |
import os | |
import re | |
import sys | |
import matplotlib.pyplot as plt | |
USER = "ajoy" | |
DIRNAME = 'pgn/' |
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 boto3 | |
import json | |
sqs = boto3.client('sqs', region_name='us-east-1') | |
queue = 'https://sqs.us-east-1.amazonaws.com/93423423423/boto-queue' | |
def push_to_queue(data, attrs): |
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
package com.project.pythonIntegration; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.InputStreamReader; | |
import java.io.StringWriter; | |
import java.util.Properties; | |
import org.python.core.PyObject; | |
import org.python.util.PythonInterpreter; |
OlderNewer