Curating Complexity: A Guide to Big-O Notation
Curating Complexity: A Guide to Big-O Notation
syntax on | |
set ruler " Show the line and column numbers of the cursor. | |
set formatoptions+=o " Continue comment marker in new lines. | |
set textwidth=0 " Hard-wrap long lines as you type them. | |
set modeline " Enable modeline. | |
set esckeys " Cursor keys in insert mode. | |
set linespace=0 " Set line-spacing to minimum. | |
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J) | |
" More natural splits | |
set splitbelow " Horizontal split below current. |
! This app uses the accelerometer to control a car hacked to use the | |
! RedBear BLE Shield and an Arduino. | |
redBearUUID$ = "713D0000-503E-4C75-BA94-3148F18D941E" | |
txUUID$ = "713D0003-503E-4C75-BA94-3148F18D941E" | |
! The reason I am putting a button over the drag area is because I want to fill | |
! it with a gradient representing the speed and direction, and the button is the | |
! only GUI element I know of that can draw a gradient. Unfortunately, to get | |
! the drag events, I have to disable the button, which messes up the colors. |
jenkins-stats.py is used to generate statics for jenkins server, so far it display the plugin's usage in each job, see related stackoverflow question:how can I know whether the plugin is used by any jobs in jenkins
python-requests module is required
__author__ = 'dkarchmer' | |
''' | |
This script emulates a stand-alone Python based client. It relies on Boto3 to access AWS, but | |
requires your Django server to have an API for your user to access Cognito based credentials | |
Because of Cognito, the client (this script) will only get temporary AWS credentials associated | |
to your user and only your user, and based on whatever you configure your AIM Policy to be. | |
Most Cognito examples demonstrate how to use Cognito for Mobile Apps, so this scripts demonstrate | |
how to create a stand-alone Python script but operating similarly to these apps. |
import json | |
import logging | |
from flask import Flask, g | |
from flask_oidc import OpenIDConnect | |
import requests | |
logging.basicConfig(level=logging.DEBUG) | |
app = Flask(__name__) |
#!/bin/bash | |
# only works atm if only one jdk package in downloads | |
DOWNLOADS=$HOME/Downloads | |
CURRENT_VERSION=$(java -version 2>&1) | |
JDK=` ls $DOWNLOADS | grep "jdk"` | |
STUDIO_URL=http://dl.google.com/android/studio/install/0.3.2/android-studio-bundle-132.893413-linux.tgz | |
if [ "uname -m" == "i386" -o "uname -m" == "i686" ]; then | |
ARCH=32 | |
else |