This file contains hidden or 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
''' | |
Installation: | |
1) Add this package as a python wrapper to search the comicvine api: | |
https://github.com/jessebraham/comicvine-search | |
I wasn't able to get this module to install so I copied it to the same folder as the .py file (or add to you env of course) | |
2) Replace [mylar api key] with your api key | |
3) Replace [mylar server address] with your server in the format: http://servername:port/ (make sure to include the slash at the end) | |
4) Replace [comicvine api key] with your api key |
This file contains hidden or 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
public String objectName = ''; //example 'Case' | |
public String layoutName = ''; //example: 'Case Layout' | |
new LayoutDescriber().run(objectName, layoutName); | |
// In anonymous Apex, you can define & run a class. | |
// In this script, using a class ensures all describe methods work, regardless of field-level security (FLS) | |
public without sharing class LayoutDescriber { | |
public void run(String objectName, String layoutName) { | |
layoutName = objectName + '-' + layoutName; |
This file contains hidden or 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
/** | |
* Copyright (c), Andrew Fawcett | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without modification, | |
* are permitted provided that the following conditions are met: | |
* | |
* - Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* - Redistributions in binary form must reproduce the above copyright notice, |