Skip to content

Instantly share code, notes, and snippets.

View macanderson's full-sized avatar

Mac Anderson macanderson

View GitHub Profile
"""Path utilities for file and directory operations."""
import os
__all__ = [
'get_current_dir',
'get_parent_dir_name',
'get_pyproject_root',
'find_closest_directory_by_file_name',
'find_project_root',
---
components:
responses: {}
schemas:
Alert Rule Name:
description: The name of the alert rule.
examples:
- RepeatedHits
title: Alert Rule Name
type: string
@macanderson
macanderson / CSS Prefixer
Created August 1, 2013 03:15
Python script to prefix all class and javascript files for bootstrap (version 3 supported)
#!/usr/bin/env python
from __future__ import print_function
import sys, re
import os.path
""" The CSS classname/namespace prefix to prepend to all Bootstrap CSS classes """
CSS_CLASS_PREFIX = 'ns-'
# Not all CSS classes that are referenced in JavaScript are actually defined in the CSS script.
@macanderson
macanderson / getCurrentURL.cls
Created December 29, 2011 05:05
Apex Get Current URL Method
/**
* @description Various Apex methods for working with URLs
*
* @author Mac Anderson
*
* @version 1.0
*
* @moreinfo http://macscloud.com
*/